HowTo: MailScanner 4.24 for Exim 4.24

That's my point.. I'm not getting:

X-interfaSys-MailScanner-SpamCheck: n'est pas un polluriel,
SpamAssassin (score=0, requis 5)

in any language :D

In fact.. here are the last three header lines from the email I received from this site regarding your post above:

X-American-MailScanner-Information: Please contact the ISP for more information
X-American-MailScanner: Found to be clean
X-MailScanner-From: [email protected]3

You might also want to take a look at my other thread I created to keep things clear:

http://www.directadmin.com/forum/showthread.php?s=&threadid=2493
 
Last edited:
interfasys:

I just found out that the mail is not going to /var/spool/exim.in/input/

Do you have an idea what can be wrong ?
Wrong setting or something like that ?

Cedric
 
To all:
I've added this in the MailScanner config section :
Use SpamAssassin = yes
Always Include SpamAssassin Report = yes

This should help people get started with SA.

ircman,
I'm sorry, I have no idea =/
 
Not sure ClamAV is updating, you say in your instructions to:

*********************************
Antivirus Auto-update
*********************************
Modify ClamAV scanner
# pico -w /usr/lib/MailScanner/clamav-autoupdate
Change this:
$PackageDir = "/usr";
$LogFile = "/var/log/clam-update.log";
$LockFile = "/var/log/ClamAVBusy.lock";

but that log doesn't exist in /var/log/

and the clamav-autoupdate has this line:

Sys::Syslog::openlog("ClamAV-autoupdate", 'pid, nowait', 'mail');

Should the log be renamed to ClamAV-autoupdate or ???? Or am I not looking at the right thing.
 
Last edited:
I am still investigating but here is something else that needs to be added as it doesn't exist:

# cd /var/log
# touch clam-update.log
# chmod 644 clam-update.log
# chown clamav:clamav clam-update.log

OR

# chown mail:mail clam-update.log

just not sure which user as MailScanner basically takes over running CA from what I can tell... look at the file

/usr/lib/MailScanner/clamav-wrapper

/usr/lib/MailScanner/clamav-autoupdate refers to this log but the log didn't exist.
 
Last edited:
Complicated

Well I'm trying to follow this rather complex thread and have followed page 1 instructions to the letter!

Some email gets scanned but I don't see anything in the headers of clean email even though the parameter is 'yes' in the config file.

If I ps aux|grep exim I get

mail 22876 0.0 0.1 6240 1808 ? S 15:08 0:00 /usr/sbin/exim -bd -C /etc/exim_outgoing.conf -q15m -oP /var/run/exim.pid

root 22898 0.0 0.1 6236 1796 ? S 15:08 0:00 /usr/sbin/exim -C /etc/exim.conf -bd

mail 22901 0.0 0.1 6232 1780 ? S 15:08 0:00 /usr/sbin/exim -C /etc/exim_outgoing.conf -q15m

root 22937 0.0 0.0 3576 636 pts/0 S 15:08 0:00 grep exim

Is that correct? I started with

service exim stop
service MailScanner stop
killall exim
service MailScanner start

but do I have too many exim processes or not?

I also noticed when running exim as a standalone process (the test step 1 in the start of this thread) that emails never appear in
/var/spool/exim.in/input as they are meant to.

<QUOTE>Try to send an email to an account that the exim is handling. When the email arrives it should be placed in the /var/spool/exim.in/input
directory. If it doesn't then the exim incoming process isn't working properly.</QUOTE>

Any ideas?
 
Very confused

I am getting a little confused - can someone help me understand what is happening here

According to Olivers first post with the setup instructions we have to run two exim Daemons - one to receive normal SMTP traffic and the other to move messages for MailScanner - that's fine.

However the instructions tell us to edit /etc/exim.conf and set

spool_directory = /var/spool/exim.in

However we then edit /etc/MailScanner/MailScanner.conf and tell MailScanner that the messages can be found at

Incoming Queue Dir = /var/spool/exim.in/input

I keep sending messages to the server and yet they never appear in /var/spool/exim.in/input

Have I misunderstood something here?

Thanks

Steve
 
MailScanner[14368]:
Cannot create temporary Work Dir /var/spool/MailScanner/incoming/14368.
Are the permissions and ownership of /var/spool/MailScanner/incoming
correct?


Any idea? Found it in maillog
 
Last edited:
hi,

how can i make sure my mailscanner + Clamav is working and scanning emails? It seems like the error is still on-going...

thanks
 
fail MailScanner

Exim delivers messages to /var/spool/exim.in/input correctly.

But when MailScanner started ... nothing happens !! ... and MailScanner process dissapear in few minutes.

Where can I find the MailScanner logs? the /var/log/maillog isn't exist, and /var/spool/exim/msglog/* don't write anything about MailScanner ... only the "arrival" of the e-mail.

Thanks in advance !!
 
How can i delete MailScanner + ClamAV + SpamAssassin? And get everything back to normal? My outgoing email isnt working etc...somehow.
 
rpm -e clamav

edit the exim init script to the normal
and move back your exim backup then restart exim
 
Did that,

but seems like MailScanner still there
did rm -rf /etc/MailScanner and some other MailScanner folders

how do i remove it completely? Cause service MailScanner start etc.. still works

Also, remove SpamAssassin? Thanks
 
Last edited:
Try to remove the mailscanner init script

rm -f /etc/init.d/MailScanner

As for SpamAssassin, comment the spamassasin transport and director section in exim.conf
 
clamav link on first page of howto not working

Just FYI, the clamav link on the first page of this howto is broken. need to host that file elsewhere, find another provider, or update the howto for clamav-0.70rc-1.i386.rpm which is the only version available on that site now.
 
Hello,

Remember that Syslog service must be started.

The MailScanner process dies everytime until I started Syslog service !!!

Xavi
 
not being scanned?

Im not seeing anything telling me that is being scanned in the headers.
 
Back
Top