17
nod32mda module rst. Still there remains to provide that all messages processed by nod32mda will be passed back to
QMail’s program for further message delivery. To do so, just modify parameter ‚mda_path‘ within section [mda] of main
NOD32 conguration le in the following way:
mda_path=“/var/qmail/bin/qmail-nod32mda“
Create the script ’/var/qmail/bin/qmail-nod32mda’ with the following content and run command ‚chmod a+x‘ on
it:
#!/bin/sh
execqmail-local--“$USER““$HOME““$LOCAL““““$EXT““$HOST““$SENDER““$1“
Using this script the nod32mda will automatically (based on present environment variables) use QMail’s recognized
exit codes related with the ’temporary error status’ and also ’infected e-mail message status’ (see also qmail-command(8)
manual page to get information on exit codes of Qmail).
To reread the newly created NOD32 conguration, enter the following command:
/etc/init.d/nod32d reload
To accomplish the whole procedure, one has to restart the MTA Qmail.
Note that NOD32LMS/NOD32BMS provides you with the possibility to dene NOD32 scanning engine parameters
individually for recipient users (resp. recipient domains). In this case it is necessary to pass the information about the
recipient user to nod32mda module using its command line interface.Note that in case you would like to pass any
command line parameter to the whole nod32mda agent it is necessary to prepend the parameter by sentence ’--’,
otherwise the parameter will be assumed to be passed to original MDA specied by the ’mda_path’ parameter. Thus
for instance to pass command line option --user to nod32mda agent the ’/var/qmail/rc’ script shall be of the following
content,
#!/bin/sh
execenv-PATH=“/var/qmail/bin:$PATH“\
qmail-start’|/usr/bin/nod32mda’./Maildir/’\
----user“$USER“’sploggerqmail
respectively in case you use RedHat Ready and/or Novell (SuSE) Ready variation of NOD32 for Linux Mail Server the
’/var/qmail/rc’ script shall be slightly dierent.
#!/bin/sh
execenv-PATH=“/var/qmail/bin:$PATH“\
qmail-start’|/opt/eset/nod32/bin/nod32mda’./Maildir/’\
----user“$USER“’sploggerqmail
4.1.2.4. Setting NOD32MDA in MTA Exim version 3
Let’s look inside the exim conguration le ’/etc/exim/exim.conf’ (resp. in older versions ’/etc/exim.conf’) to
become familiarwith its content. It is typically compound from the so-called TRANSPORTERS CONFIGURATION section
and DIRECTORS CONFIGURATION section. In order to congure exim to use NOD32LMS/NOD32BMS you have to dene
special DIRECTORS CONFIGURATION entry in a following way:
#DIRECTORSCONFIGURATION
nod32_director:
driver=smartuser
chapter 4 / Integration with E-mail Messaging System