16
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 ‘mailbox_command‘ option has to be dened
in the following way.
postconf-e’mailbox_command=nod32mda-d“$USER““$EXTENSION“\
----user“$USER“’
With this setting a special section [user], if dened in NOD32 conguration le, will be used by main NOD32 daemon
for scanning.
4.1.2.3. Setting NOD32MDA in Qmail MTA
The delivery options in the Qmail program are congured via the command line parameters at the time of program
execution or by using short scripts where the appropriate command line statements are stored. In the following text we
assume that the Qmail is installed in a ’/var/qmail’ directory and there is a QMail’s starting script ’rc’ within this directory
that is always executed at the start-up of Qmail by running the standard statement
qmailctlstart
In a simplest case the script ‘/var/qmail/rc‘ is of the following content:
#!/bin/sh
execenv-PATH=“/var/qmail/bin:$PATH“\
qmail-start./Maildir/sploggerqmail
Note the rst qmail-start argument instructing qmail where to deliver e-mail messages to. This time it is a special
directory structure located in ’./Maildir/’ within the local user home directory. However, generally there are also other
possible variants of the argument. For instance - ./Mailbox - that instructs qmail to deliver e-mail messages to the
MAILBOX le located at the local user home directory or - ‘|preline procmail‘ - to use the ‘procmail‘ MDA as a local
delivery agent, etc. See dot-qmail(5) manual page to get detailed information on this topic.
In order to instruct qmail to use nod32mda module in the message delivery process, you have to prepend the rst
command line argument of qmail-start with the absolute path of nod32mda module, i.e. the starting script ‘var/qmail/
rc‘ will contain:
#!/bin/sh
execenv-PATH=“/var/qmail/bin:$PATH“\
qmail-start’|/usr/bin/nod32mda’./Maildir/sploggerqmail
Note that the nod32mda module absolute path is dierent in the RedHat Ready and/or Novell (SuSE) Ready variation
of NOD32 for Linux Mail Server, so the starting script ‘var/qmail/rc‘ in that case will appear to be of the form
#!/bin/sh
execenv-PATH=“/var/qmail/bin:$PATH“\
qmail-start’|/opt/eset/nod32/bin/nod32mda’./Maildir/sploggerqmail
Note that there is space before the second character ‚ and no space after it. Keep also in mind that the argument -
./Maildir/ - is used this time only as an example and in your case you must prepend argument used in your original ‚/
var/qmail/rc‘ script.
With above modications you have ensured that all the e-mail messages originally sent to MDA will be catched by
NOD32 for Linux/BSD Mail Server