Chapter 5. NOD32LMS configuration
that will give us the full path to the binary file by return. Now, in order to involve module
nod32mda into the message processing, we have to replace the MDA maildrop with the module
nod32mda. Write the following command in order to do so:
postconf -e "mailbox_command = nod32mda -d \"$USER\" \"$EXTENSION\""
Note: Please keep in mind that the switches used in ’mailbox_command’ after the MDA compo-
nent must stay the same as in the original configuration file, otherwise the current configuration
may not work properly.
With the above modifications we have ensured that all the messages originally sent by MTA
for delivery to MAILBOX (by using an original MDA) will now be primarily sent to mod-
ule nod32mda. Still there is the second part of modification to provide that all messages pro-
cessed by nod32mda will be sent to the original MDA. 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) to the original MDA component. The original MDA component can be
at this stage of the procedure still found in the back-up file (/etc/postfix/main.cf.orig) you have
created. Thus assuming your original MDA component is (/usr/bin/maildrop) the appropriate
parameter of the main NOD32LMS configuration file will look like this:
mda_path = "/usr/bin/maildrop"
To accomplish the whole procedure, one has to restart both the MTA Postfix and the daemon
nod32d.
5.2.2.3. Setting Qmail MTA
The delivery options in the Qmail program are configured 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 we assume that the Qmail is installed in a /var/qmail
directory and there is a Qmail’s starting script called usually ’rc’ within this directory that is
always executed at the start-up of Qmail by running the standard statement
qmailctl start
In a simplest case the script (/var/qmail/rc) is of the following content.
#!/bin/sh
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/ splogger qmail
Please note that this script is configured to deliver messages to a special directory structure
’./Maildir’ located within a local user home directory, as the first parameter of the qmail-start
execution command is ’./Maildir/’. There are, indeed, more possibilities to be written at the
place of the first command line parameter (for instance ./Mailbox to deliver the locally delivered
18