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