HowTo: MailScanner 4.24 for Exim 4.24

Anyone has an idea .

I play with all the configes 2 night in a row .
The services works . start stop etc .
The server is working but dont show the mail scanner header also he doesnt scan .

The log shows :

MailScanner[3859]: MailScanner child caught a SIGHUP
MailScanner[3197]: MailScanner child caught a SIGHUP
MailScanner[3840]: MailScanner child caught a SIGHUP
MailScanner[3883]: MailScanner child caught a SIGHUP
MailScanner[3871]: MailScanner child caught a SIGHUP
MailScanner[7512]: MailScanner E-Mail Virus Scanner version 4.26.8 starting...
MailScanner[7512]: Using locktype = posix
MailScanner[7512]: Creating hardcoded struct_flock subroutine for linux (Linux-type)
MailScanner[8308]: MailScanner E-Mail Virus Scanner version 4.26.8 starting...
MailScanner[8308]: Using locktype = posix
MailScanner[8308]: Creating hardcoded struct_flock subroutine for linux (Linux-type)
MailScanner[8813]: MailScanner E-Mail Virus Scanner version 4.26.8 starting...
MailScanner[8813]: Using locktype = posix
MailScanner[8813]: Creating hardcoded struct_flock subroutine for linux (Linux-type)
MailScanner[8828]: MailScanner E-Mail Virus Scanner version 4.26.8 starting...
MailScanner[8828]: Using locktype = posix
MailScanner[8828]: Creating hardcoded struct_flock subroutine for linux (Linux-type)
MailScanner[8832]: MailScanner E-Mail Virus Scanner version 4.26.8 starting...
MailScanner[8832]: Using locktype = posix
MailScanner[8832]: Creating hardcoded struct_flock subroutine for linux (Linux-type)



after restarting mail scanner .

Thanks for any help .

Regards ,
:D
 
Watje6 said:
Hello,

When a mail is sent by webmail it adds the header that the email is scanned by mailscanner, but when a mail is sent from another server to an mailbox on our server it doesn't scan the email (also doesn't add the header lines).

Anybody knows where to find our prob ?
Same problem here :(
 
service exim stop
service mailscanner stop
service mailscanner start

mailscanner should start the exim daemons itself.

Chris
 
Hi ,

I second you on that , when i do :

service exim stop
service MailScanner stop
service MailScanner start

Exim doesnt get any messages at all , in other words the MTA doesnt work .

Also befor it seems that it all working exim , mailscanner but the emails that get to mailboxes doesnt include the mail scaner header like mentioed here .

:eek:
 
Last edited:
try adding service exim start after those 3, not enirely sure - not used mailscanner for some time now.

Chris
 
I've modified the Howto since I had a similar problem after a reboot. I reread the procedure and saw that the last steps were not clear.

The "test the MTA" procedure is there to check that emails are placed in the right folders, but after checking this, we should launch MailScanner with the proper commands.

*********************************
Officially launch MailScanner
*********************************
Now that we've checked that everything is working, we can officially launch Mailscanner on the server.

# service exim stop
# service MailScanner stop
# service MailScanner start

If properly configured, Mailscanner will launch exim and scan your emails.


---
It worked fine for me, let's hope it's OK for you too. Thank you to all the repliers of this thread.
 
Hi I get after setting all settings the follow:

[root@resellers2 root]# service MailScanner stop
Shutting down MailScanner daemons:
MailScanner: [FAILED]
incoming exim: [ OK ]
outgoing exim: [ OK ]
[root@resellers2 root]# service exim restart
Shutting down exim:
Starting exim: exim: bad time value -q15mTS=: abandoned
[FAILED]
[root@resellers2 root]# service MailScanner start
Starting MailScanner daemons:
incoming exim: [ OK ]
outgoing exim: [ OK ]
MailScanner: Can't locate Archive/Zip.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 . /usr/lib/MailScanner) at /usr/lib/MailScanner/MailScanner/Message.pm line 46.
BEGIN failed--compilation aborted at /usr/lib/MailScanner/MailScanner/Message.pm line 46.
Compilation failed in require at /usr/sbin/MailScanner line 52.
BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 52.
[ OK ]

Any Tips?
 
I'm no expert, but I see two problems,

Your queue settings are wrong (typo or corrupt)

It seems MailScanner was not properly installed since it now complains about missing modules.
 
interfasys said:
I'm no expert, but I see two problems,

Your queue settings are wrong (typo or corrupt)

I do in putty - SSH the follow command: mkdir

interfasys said:

It seems MailScanner was not properly installed since it now complains about missing modules.

It is installed, I reinstall the mailscanner version: MailScanner-4.28.6-1
 
I do all the steps again but at the Test MTA it goes wrong (same problem)

Will somebody do the instal for my for a payment?
 
Since I am still figuring out Exim, MailScanner, ClamAV..etal I am a bit lost as to where ClamAV is logging any found viruses.

I installed this reporting script for ClamAV http://pandaemail.sourceforge.net/av-tools/ but am not showing any hits.... which is a good thing... and understand that there is not alot of email traffic on this particular server, so I am kinda feeling around in the dark a bit.

I see a /var/log/clamav dir but it is empty... some logging to /var/log/messages such as clamav updates..etc

How about a breakdown on where MailScanner, SpamAssassin, Exim and ClamAV are logging information to using the setup described in this thread?

UPDATE: Seems like everything is getting logged to /var/log/maillog which is what I used when setting up this script but the reporting script works on a weekly basis and March 14 was the last day of the last week so since I just installed all of these scripts and submitted a virus test email last night it won't show up....patience grasshopper.
 
Last edited:
It logs all mailscanner/clamav activities to /var/log/maillog.

If no virusses show up after installing, run 'freshclam' to install the virus information files (or to update them), this should be done after install since they aren't installed or downloaded when you install clamav.

Perhaps you could use the mailscanner-mrtg howto (it's somewhere on the site :D)
 
Ok... so I have killed spamd.. which is SpamAssassin and re-edited the exim.conf to put it back the way it should be for this install.

Did some reading about MailScanner and found this:

# Do you want to find spam using the "SpamAssassin" package?
# This can also be the filename of a ruleset.
Use SpamAssassin = yes

was set to =no but I changed to =yes then restarted MailScanner successfully.

but I am still not seeing any headers in the email with any type of scoring.. just that it's clean.. no viruses.

Ever since I killed SpamAssassin there are no emails with SA headers....

You sure about the installation instructions in this thread or am I missing something?
 
You won't get SA headers, but Mailscanner headers.

Here are mine :
X-interfaSys-MailScanner-Information: Scanned by interfaSys
X-interfaSys-MailScanner: Found to be clean
X-interfaSys-MailScanner-SpamCheck: n'est pas un polluriel,
SpamAssassin (score=0, requis 5)
 
Back
Top