The last thing is to make Postx accept mail on port 2525 and continue processing it. Add this
entry to Postx master.cf le:
localhost:2525 inet n - n - - smtpd
-ocontent_lter=
-o myhostname=esets.yourdomain.com
-o local_recipient_maps=
-o relay_recipient_maps=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-omynetworks=127.0.0.0/8
just replace yourdomain.com with your hostname after rst dot. Make sure all but the rst line
is indented. For reread of newly created conguration, reload Postx.
Note: In case you have SELinux enabled, which prevents Postfix to listen on 2525 (e.g. Fedora Core >=
5), run this command: semanage -a -t smtp_port_t -p tcp 2525
A.2. Setting ESETS for MTA Sendmail
A.2.1. Inbound e-mail messages scanning
Warning: This installation is not compatible with SELinux. Either disable SELinux or follow
the next section.
The goal of this installation is to insert esets_mda before Sendmail’s original MDA.
Note: On FreeBSD, Sendmail may be communicating with MDA using LMTP. However, esets_mda does
not understand LMTP. So if you have FEATURE(local_lmtp) in `hostname`.mc, comment it out
now and recreate sendmail.cf.
The currently used MDA can be found in the le sendmail.cf in section Mlocal: parameters ‘P’
(executable) and ‘A’ (its name and arguments).
First set‘mda_path’ in [mda] section of ESETS conguration le to the currently used MDA
executable (Sendmail’s ‘P’ parameter) and restart ESETS daemon.
Then add to le sendmail.mc (or `hostname`.mc on FreeBSD and Solaris) before all MAILER
denitions these lines:
dene(`LOCAL_MAILER_PATH’,`@BINDIR@/esets_mda’)dnl
dene(`LOCAL_MAILER_ARGS’,
`esets_mda original_arguments -- --sender $f --recipient $u@$j’)dnl
whereoriginal_argumentsisSendmail’s‘A’parameterwithoutthename(rstword).
In the last, recreate sendmail.cf and restart Sendmail.
Appendix A. ESETS setup process description