Chapter 5. NOD32LMS configuration
5.2.2.5. Setting MTA Exim version 3 (more general)
An MTA Exim version 3 stores its configuration in the file /etc/exim/exim.conf (resp.
/etc/exim.conf). The procedure described here will therefore be done only with this one file
and of course with the main NOD32LMS configuration file (/etc/nod32/nod32.cfg).
Please, note that the configuration described here is MDA independent by means it can be used
in cooperation with any MDA already working with Postfix MTA. First before any further steps,
please make a back-up of the original main Exim configuration file (for instance with the name
/etc/exim/exim.conf.orig). Now let’s look inside the content of the exim configuration file. It is
typicaly compound from the TRANSPORTERS and DIRECTORS sections. In order to configure
exim to use NOD32LMS one has to define special DIRECTOR section
# DIRECTORS CONFIGURATION
nod32_director:
driver = smartuser
condition = "${if eq {$received_protocol}{virus-scanned} {0}{1}}"
transport = nod32_transport
verify = false
The above section has to be placed as a first entry of the DIRECTORS CONFIGURATIONS
section.
One has also define appropriate TRANSPORTER section responsible to deliver e-mail messages
to nod32mda agent.
# TRANSPORTS CONFIGURATION
nod32_transport:
driver = pipe
command = /usr/bin/nod32mda $local_part@$domain
user = mail
group = mail
Be sure that the ’user’ (usually ’mail’) used in the above setting is listed in a ’trusted_users’ list
for this parameter.
Also be sure that the option ’qualify_domain’ is undefined or set to your fully qualified domain
name.
With the above setting we have ensured that all the e-mail messages sent to user belonging to
local domain will now be primarily sent to module nod32mda. Still there remains the second
part of the modification to provide that all messages processed by nod32mda will be sent to
the appropriate MAILBOX. In order to do so, we have to modify the parameter ’mda_path’
within the section [mda] of the main NOD32LMS configuration file (/etc/nod32/nod32.cfg) in
a following way.
mda_path = "/usr/local/sbin/exim-deliver"
Now it is necessary to create the script file ’/usr/local/sbin/exim-deliver’ with the following
content.
22