Setting ESETS for MTA Exim version 4

Inbound email message scanning

The goal 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 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_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 omit this line in esets_router:

domains = +local_domains