22
4.3. Content Filtering in MTA
Content ltering method is in the present a well known method used to screen and/or exclude certain dened
information from the Internet or its part. Concerning an e-mail server system the best place to implement content
ltering method is the MTA agent as an e-mail communication trac nod. The advantage of such an implementation
is that it allows one to scan e-mails inbound as well as outbound in the same implementation algorithm. On the other
hand the content ltering method is MTA dependent. The ESET comes with four content lters built for most common
MTA, i.e. MTA Sendmail, Postx, Exim and QMail. These are reviewed in the following sections.
4.3.1. Content ltering in MTA Postx
The MTA Postx content lter requirements are fullled by nod32smtp daemon. To congure nod32smtp for this
purpose the following parameters must be specied in section [smtp] of the main NOD32 conguration le.
agent_enabled = yes
listen_addr = “localhost“
listen_port=2526
server_addr = “localhost“
server_port=2525
After reread of the newly created NOD32 conguration using command:
/etc/init.d/nod32d reload
the nod32smtp module will listen on port 2526 and will forward all communication from this port to the local port
2525.
In the next step, add the following specication into the ’/etc/postx/master.cf’ conguration le.
localhost:2525inetn-n--smtpd
-ocontent_lter=
-omyhostname=nod32.yourdomain.com
Note that the ’yourdomain.com’ part of the
’myhostname’ parameter must be in your case replaced
by an appropriate server’s domain specication. Note also
that the MTA Postx does not like when the ’yourdomain.
com’ part of ’myshostname’ parameter above matches
domain name specied in the parameter ’myhostname’
of the ’/etc/postx/main.cf’ conguration le. The trick
to overcome this problem relies on using IP address in
’myhostname’ parameter of ’/etc/postx/main.cf’ while
DNS name of the domain name used in ’/etc/postx/
master.cf’.
Finally, add ’content_lter’ specication into ’/
etc/postx/main.cf’ conguration le by entering the
following command.
postconf-e“content_lter=smtp:localhost:2526“
Entire entire process described above is illustrated in gure 4-4.
TCP port 2525
POSTFIX
CLEANUP
SMTP
SMTPD LOCAL
QUEUE
PICKUP
TCP port 2526
SMTPD SMTP
NOD32SMPT
Figure 4-4. Bidirectional scanning scheme of an nod32smtp
module working as a content lter.
NOD32 for Linux/BSD Mail Server