Mailscanner and Exim with "split_spool_directory = true"

Julian Field mailscanner at ecs.soton.ac.uk
Sat Mar 1 16:36:52 GMT 2003


At 16:14 01/03/2003, you wrote:
>Julian Field <mailscanner at ECS.SOTON.AC.UK> wrote:
> >At 15:19 28/02/2003, you wrote:
> >>Is it possible to use mailscanner with exim when split_spool_directory
> >>is set to true.  I have not had any success with this option while using
> >>mailscanner.
> >
> >No it isn't I'm afraid. Sorry about that.
>
>I haven't got around to investigating this properly, but I have a couple
>of thoughts on the matter. You ought to be able to have a split spool
>directory on the smtp listener by using a configuration like
>         Incoming Queue Dir = /var/spool/exim.in/input/*
>but there isn't much point in this because the incoming spool dir
>should always be small. split_spool is much more important for the
>outgoing Exim because it's doing all the retries, and because of its
>support for turning the option on and off with messages already in the
>spool, it may be possible to make MailScanner just leave the messages
>in /var/spool/exim/input and rely on Exim to move them into the correct
>subdirectory.

What you can currently do to split your outgoing spool dir up into several
is to use a ruleset to calculate "Outgoing Queue Dir" so that, for example,
internal messages get 1 queue while external (leaving your site) messages
go in another queue. You run a queue-runner Exim process for each of your
outgoing queues. I have seen this done with sendmail to quite good effect.

Gets you speed on internal messages separate from the potentially large
queue of mail leaving your site bound for other (slow) SMTP servers.

>BTW I'm using Exim with MailScanner with only one Exim configuration file
>by using a trick, as follows. In the Exim configuration file put
>         SPOOL = /var/spool/exim
>         spool_directory = SPOOL
>i.e. use a macro to define the spool directory. The you invoke the SMTP
>listening exim with a command-line macro definition to override the one
>in the configuration file, and -odq to turn off immediate delivery:
>         exim -bd -odq -DSPOOL=/var/spool/exim.in
>and the outgoing/queue-running exim with an extra option to make it
>create a pid file which it won't do by default (because it has no -bd):
>         exim -q15m -oP /var/spool/exim/exim-daemon.pid
>The Sendmail and Sendmail2 options in MailScanner can then be the same
>and without command line options.  Unlike the recommended configuration
>this means that locally-generated email will bypass MailScanner, which
>should be OK if you don't have users on the machine.
>
>Tony.
>--
>f.a.n.finch  <dot at dotat.at>  http://dotat.at/
>THE WASH TO NORTH FORELAND: SOUTHWEST BACKING SOUTHEAST 3 OR 4 OCCASIONALLY 5,
>BUT LATER VEERING SOUTH OR SOUTHWEST. RAIN FOR A TIME. MODERATE OR GOOD.
>MAINLY SLIGHT, BUT LOCALLY MODERATE AT FIRST.

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list