Installation manual

28
9.5 Setting ESETS for MTA Exim version 4
Inbound email message scanning
The goal of this installation is to create an Exim transport from
esets_m d a
for local users. In the
[mda ]
section of the ESETS
configuration file, set this parameter:
mda_path = "/usr/sbin/exim"
or, if you are using FreeBSD, this parameter:
mda_path = "/usr/local/sbin/exim"
where /usr/sbin/exim (or /usr/local/sbin/exim) is the full path to the Exim binary. Then restart the ESETS daemon. Add this
router to the top of the Exim router list:
esets_router:
driver = accept
domains = +local_domains
condition = "${if eq {$received_protocol}{esets-scanned} {0}{1}}"
transport = esets_transport
verify = false
and this transport (at whatever location) to the list of Exim transports:
esets_transport:
driver = pipe
command = @BINDIR@/esets_mda -oi -oMr esets-scanned $local_part@$domain \
-- --sender=$sender_address --recipient=$local_part@$domain
This will send all unscanned mails for local users to
esets_m d a
;
esets_m d a
will then send them back to Exim for further
processing. To re-read the newly created configuration, restart Exim.
Bi-directional email message scanning
The goal of this installation is to create an Exim transport from esets_mda for all mail. Perform all steps from the previous
section, but omit this line in esets_router:
domains = +local_domains
9.6 Setting ESETS for MTA ZMailer
Inbound email message scanning
The goal of this installation is to use
esets_m d a
as ZMailer’s local delivery agent. However, you must have a real MDA
installed, such as procmail. In the
[mda ]
section of the ESETS configuration file, set this parameter:
mda_path = "/path/to/procmail"
and restart the ESETS daemon. Procmail doesn‘t support the full email address as a recipient, so comment out this line in
ZMailer‘s router.cf prepending a ‘#‘:
localdoesdomain=1
Next, in the
‘loca l/*
clause of scheduler.conf, replace your current delivery command with:
command="sm -c $channel esets"
and append this line to sm.conf (replace your.hostname.com with your FQDN):
esets sSPfn @BINDIR@/esets_mda esets_mda -a $h -d $u -- --sender $g --recipient $u@your.hostname.com
Finally, restart ZMailer.
Bi-directional email messages scanning
The goal of this installation is to use
esets_zmfi
as ZMailer‘s SMTP contentfilter. First start the ESETS daemon. Then add this
line to smtpserver.conf:
PARAM contentfilter @BINDIR@/esets_zmfi
and restart ZMailer.
Please note that this will scan only the email messages coming through the smtpserver. Also, make sure that your smtp-policy
is filtering all email according to your needs.