Debian Testing/Unstable, Exim4 and MailScanner 4

Desai, Jason jase at SENSIS.COM
Mon Jun 21 20:31:00 IST 2004


Not the conventional setup, but here is how I do things.  I have exim set up
to use split config, so that it generates the config file from the various
files in /etc/exim4/conf.d using update-exim.conf.

I put the following in a file called
/etc/exim4/conf.d/main/01_exim4-config_mailscanner_options

===================

.ifdef MS_OUT
SPOOLDIR = /var/spool/exim.out
.else
SPOOLDIR = /var/spool/exim.in
queue_only = true
queue_only_override = false
.endif

====================

Then in /etc/default/exim4 I have

====================
# /etc/default/exim4
EX4DEF_VERSION=''

# 'combined' -   one daemon running queue and listening on SMTP port
# 'no'       -   no daemon running the queue
# 'separate' -   two separate daemons
# setting this to 'no' will also disable queueruns from
/etc/ppp/ip-up.d/exim4
QUEUERUNNER='separate'
# how often should we run the queue
QUEUEINTERVAL='30m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS='-DMS_OUT=1'
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# options for daemon listening on port 25
SMTPLISTENEROPTIONS=''
=====================

With things set up as above, you can use the normal debian /etc/init.d/exim4
script to start and stop exim.

And the relevant options in MailScanner.conf:

Run As User = Debian-exim
Run As Group = Debian-exim
Incoming Queue Dir = /var/spool/exim.in/input
Outgoing Queue Dir = /var/spool/exim.out/input
MTA = exim
Sendmail = /usr/lib/sendmail
Sendmail2 = /usr/sbin/exim4 -DMS_OUT


Hope this helps you out.

Jase

Pimperton, Alex R M wrote:
> Hi
>
> Can anybody write a simple how-to with example scripts for getting
> mailscanner working with exim4 on debian?

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list