Re: [Exim] Exim4 + Mailscanner

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: exim
CC: exim-users
Subject: Re: [Exim] Exim4 + Mailscanner
"Julian Bartels" <exim@???> wrote:
>
>Has somebody a Howto to get Exim4 together with Mailscanner?
>I tried it with the Howto for Exim3, but no chance ...
>
>I have exim4 installed (with virtualhosting-support via mysql) and mailscanner!
>Exim4 is working, but I need to know how I can tell mailscanner to scan the mails ...


This question might get more answers on the MailScanner list
http://www.jiscmail.ac.uk/lists/mailscanner.html

You should be OK with MailScanner's Exim install guide
http://www.sng.ecs.soton.ac.uk/mailscanner/install/exim.shtml
if you follow the "queue_only" alternative.

However, if your mail server doesn't have local users (which implies
that it's OK for locally-generated mail to bypass MailScanner) then
there's another way of configuring it which is more like the Sendmail
setup, and has the advantage of only needing one Exim configuration for
both incoming mail and onward delivery after MailScanner has processed it.

Put this in the configuration file:

    SPOOL_DIRECTORY = /var/spool/exim
    spool_directory = SPOOL_DIRECTORY


Incoming mail is handled by running Exim like this:

    exim -bd -odq -DSPOOL_DIRECTORY=/var/spool/exim.in


(-odq turns on queue_only, and there's no -q10m option because
that would cause mail to be delivered from the incoming queue
rather than going through MailScanner.)

Outgoing mail is handled by a separate Exim queue runner:

    exim -q10m


Then in MailScanner's configuration you want:

    Incoming Queue Dir = /var/spool/exim.in
    Outgoing Queue Dir = /var/spool/exim
    MTA                = exim
    Sendmail           = /usr/local/sbin/exim


and no Sendmail2 option.

Tony.
--
f.a.n.finch <dot@???> http://dotat.at/
NORTH FITZROY SOLE LUNDY FASTNET: NORTHWEST BACKING SOUTHWEST 5 OR 6,
OCCASIONALLY 7, PERHAPS GALE 8 LATER. SHOWERS THEN RAIN. GOOD BECOMING
MODERATE.