Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

MailScanner

Reply to Post Add a New Topic
UserPost

9:32 am
December 14, 2011


xpolp32

Member

posts 3

I know, that you hear this really often, but I´m new in LinuxEmbarassed. First of all thanks a lot for your super tutorial, everything works perfectly!

 

Now I want to secure my mail, but I have problem with Mailscanner. I followed your tutorial, but when I want to start this service, I have following error:

 

[root@mcit ~]# service MailScanner status
Can't locate Sys/SigAction.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
BEGIN failed–compilation aborted at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
Compilation failed in require at /usr/lib/MailScanner/MailScanner/Config.pm line 47.
Compilation failed in require.
BEGIN failed–compilation aborted.
Can't locate Sys/SigAction.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
BEGIN failed–compilation aborted at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
Compilation failed in require at /usr/lib/MailScanner/MailScanner/Config.pm line 47.
Compilation failed in require.
BEGIN failed–compilation aborted.
Can't locate Sys/SigAction.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
BEGIN failed–compilation aborted at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
Compilation failed in require at /usr/lib/MailScanner/MailScanner/Config.pm line 47.
Compilation failed in require.
BEGIN failed–compilation aborted.
Can't locate Sys/SigAction.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
BEGIN failed–compilation aborted at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
Compilation failed in require at /usr/lib/MailScanner/MailScanner/Config.pm line 47.
Compilation failed in require.
BEGIN failed–compilation aborted.
Can't locate Sys/SigAction.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
BEGIN failed–compilation aborted at /usr/lib/MailScanner/MailScanner/ConfigSQL.pm line 38.
Compilation failed in require at /usr/lib/MailScanner/MailScanner/Config.pm line 47.
Compilation failed in require.
BEGIN failed–compilation aborted.
/etc/init.d/MailScanner: řádek 84: [: =: očekáván unární operátor
Checking MailScanner daemons:
         MailScanner:                                      [SELHALO]
/etc/init.d/MailScanner: řádek 335: [: =: očekáván unární operátor
/etc/init.d/MailScanner: řádek 349: [: =: očekáván unární operátor

 

Can you please help me how to fix it?

 

Thanks,

 

Peter

9:31 pm
December 14, 2011


consultant

Admin

posts 353

Hi Peter,

 

The required dependencies are not installed. See MailScanner Setup Howto for steps on how to properly install MailScanner.

8:36 am
December 16, 2011


xpolp32

Member

posts 3

Thanks a lot for your help. I didn´t install one perl packageEmbarassed.

 

Now I have (hopefully) last error. When I want to stop postfix and start mailscanner I got this from shell:

[root@mcit ~]# chkconfig postfix off
[root@mcit ~]# chkconfig clamd on
[root@mcit ~]# chkconfig MailScanner on
[root@mcit ~]# service clamd start
Starting Clam AntiVirus Daemon: ERROR: TCP: bind() error: Address already in use
                                                           [SELHALO]
[root@mcit ~]# service MailScanner start
Starting MailScanner daemons:
         incoming postfix:                                 [  OK  ]
         outgoing postfix:                                 [  OK  ]
         MailScanner:                                      [  OK  ]
[root@mcit ~]#

I don´t what ClamAV means with that error. Would you be so kind and help me again?

6:52 pm
December 17, 2011


consultant

Admin

posts 353

Hi Peter,

 

It means the clam port 3310 is already used. You have to look which of your services uses the port 3310.

5:05 am
December 19, 2011


xpolp32

Member

posts 3

Hello,

 

I did the nmap and it says, that my opened ports are:

 

Starting Nmap 5.21 ( http://nmap.org ) at 2011-12-19 10:47 CET
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000019s latency).
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 991 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
80/tcp  open  http
110/tcp open  pop3
111/tcp open  rpcbind
143/tcp open  imap
631/tcp open  ipp
993/tcp open  imaps

 

I ran the start / stop commands again and it gived me another type of error:

[root@mcit ~]# chkconfig postfix off
[root@mcit ~]# chkconfig clamd on
[root@mcit ~]# chkconfig MailScanner on
[root@mcit ~]# service clamd start
Starting Clam AntiVirus Daemon: ERROR: /var/log/clamav/clamd.log is locked by another process
ERROR: Can't initialize the internal logger
                                                           [SELHALO]
[root@mcit ~]# service MailScanner start
Starting MailScanner daemons:
         incoming postfix:                                 [  OK  ]
         outgoing postfix:                                 [  OK  ]
         MailScanner:                                      [  OK  ]
[root@mcit ~]#

 

I followed the advice to look into the clamd.log, but I don´t see anything wrong there. Am I right?

 

Mon Dec 19 10:10:28 2011 -> SelfCheck: Database status OK.
Mon Dec 19 10:20:28 2011 -> SelfCheck: Database status OK.
Mon Dec 19 10:30:28 2011 -> SelfCheck: Database status OK.
Mon Dec 19 10:40:28 2011 -> SelfCheck: Database status OK.
Mon Dec 19 10:50:28 2011 -> SelfCheck: Database status OK.

6:54 pm
December 20, 2011


consultant

Admin

posts 353

It looks like clamd is running already.

Reply to Post

Reply to Topic:
MailScanner

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
1 + 9
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
21 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 343
Posts: 1062

Membership:

There are 966 Members
There have been 91 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 46
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: waveney, achal, niesul14, hesaum, sreevinodss, nasonov

Administrators: consultant (353 Posts)