26
NOD32 conguration le. In case the absolute path to the exim is ‘/usr/sbin/exim‘ the parameter ‘mda_path‘ will be
as follows:
mda_path=“/usr/sbin/exim“
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 Exim.
Note that our product provides you with the option to dene NOD32 scanner 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 ‚exim‘ specied by the ‘mda_path‘ parameter. Thus, for instance to pass command line
option --user to nod32mda agent, the parameter ‘command‘ dened in TRANSPORTS CONFIGURATION entry must by
as follows:
command=/usr/bin/nod32mda-oMrvirus-scanned$local_part@$domain\
----user$local_part
resp. in case of RedHat Ready and Novell (SuSE) Ready variation of this anti-virus product used, the ’command’
parameter has to be dened as follows:
command=/opt/eset/nod32/bin/nod32mda-oMrvirus-scanned$local_part@$domain\
----user$local_part
4.3.5. Content ltering in MTA Qmail
Nod32pipe can serve as a content-lter for Qmail. However, you need to download and compile the qmail-qlter
program, version 2.0 or newer. Following instructions do not require you to use the QMAILQUEUE patch. We assume your
qmail is installed in ’/var/qmail’. First create the script ’/var/qmail/bin/qmail-nod32pipe’ with the following content
and run chmod a+x on it:
#!/bin/sh
exportQQF_QMAILQUEUE=/var/qmail/bin/qmail-queue.nod32save
execqmail-qlter/usr/bin/nod32pipe
Note that in RedHat Ready and/or Novell (SuSE) Ready variation of this anti-virus product the absolute path of
nod32pipe module is dierent, so in this case an appropriate script content will be as follows:
#!/bin/sh
exportQQF_QMAILQUEUE=/var/qmail/bin/qmail-queue.nod32save
execqmail-qlter/opt/eset/nod32/bin/nod32pipe
Next, enter the following commands:
mv/var/qmail/bin/qmail-queue/var/qmail/bin/qmail-queue.nod32save
ln-s/var/qmail/bin/qmail-nod32pipe/var/qmail/bin/qmail-queue
In this conguration, in case of infection or temporary error, nod32pipe will automatically (based on present
environment variables) use QMail’s recognized exit codes (31, 71 or 99, see qmail-queue(8) and qmail-qlter(1) manual
pages for details). It will also ask nod32d to use the user specic conguration based on the rst envelope recipient.
NOD32 for Linux/BSD Mail Server