#!/bin/sh
A="$1"; shift
exec qmail-start.orig "|@BINDIR@/esets_mda '$A'"' -- --sender="$SENDER" --recipient="$RECIPIENT"' "$@"
This will start Qmail using esets_mda for local deliveries. However, the original delivery specification is passed to
qmail-local through esets_mda. Note that in this configuration esets_mda will use Qmail's recognized exit codes (see
the qmail-command(8) man page). Lastly, replace qmail-start using commands:
mv /var/qmail/bin/qmail-start /var/qmail/bin/qmail-start.orig
ln -s qmail-start.esets /var/qmail/bin/qmail-start
Restart Qmail.
Bi-directional email messages scanning
The objective of this installation is to insert esets_mda before qmail-queue, which queues all mails before delivery.
Assuming Qmail is installed in the /var/qmail directory, in the [mda] section of the ESETS configuration file, set the
following parameter:
mda_path = "/var/qmail/bin/qmail-queue.esets"
Restart the ESETS daemon. Lastly, replace qmail-queue using these commands:
mv /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.esets
ln -s @BINDIR@/esets_mda /var/qmail/bin/qmail-queue
Restarting Qmail is unnecessary. All messages enqueued from now will be scanned by ESETS. Note that in this
configuration esets_mda will use qmail-queue's exit codes (see the qmail-queue(8) man page).
9.4 Setting ESETS for MTA Exim version 3
Inbound email messages scanning
The objective of this installation is to create an Exim transport from esets_mda for local users. In the [mda] section of
the ESETS configuration file set the following parameter:
mda_path = "/usr/sbin/exim"
In the above, /usr/sbin/exim is the full path to Exim binary. Restart the ESETS daemon. Next, add the following
transport (on any line) 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
user = mail
In the above example, 'mail' is one of Exim's 'trusted_users'. Now add the following director to the top of the list of
Exim directors:
esets_director:
driver = smartuser
condition = "${if eq {$received_protocol}{esets-scanned} {0}{1}}"
transport = esets_transport
verify = false
This will send all unscanned mails for local users to esets_mda; esets_mda 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 also add this router to the top of the Exim router list:
esets_router:
driver = domainlist
route_list = "* localhost byname"
condition = "${if eq {$received_protocol}{esets-scanned} {0}{1}}"
transport = esets_transport
verify = false
26
Need help?
Do you have a question about the MAIL SECURITY - FOR LINUX BSD AND SOLARIS and is the answer not in the manual?
Questions and answers