HP-UX Mailing Solutions White Paper
1. Start the Regex daemon:
#/sbin/init.d/regex-init start
The daemon starts and listens on the /var/milter-regex/milter-regex.sock socket.
NOTE: You must not run the milter program as a superuser.
A new user regex is created for the milter-regex tool and the new user regex runs as
a regex user.
2. Edit the /opt/iexpress/milter-regex/conf/milter-regex.conf file as per your
requirement. For information on the configuration options, see the manpage for
milter-regex available at /opt/iexpress/milter-regex/conf/
milter-regex.man.
NOTE: The public domain Regex tool contains HP specific changes. The support for filtering
with IPF is also added to the Regex tool.
3. Restart the Regex tool:
#/sbin/init.d/regex-init stop
#/sbin/init.d/regex-init start
Configuring the Sendmail Server with Milter-Regex
Follow this procedure to configure the Sendmail server with Milter-Regex:
1. Follow the steps in “Configuring Milter-Regex on an HP-UX System” (page 32) to configure
Regex as a filter program on a HP-UX system.
2. Specify the program name as milter-regex:
Enter the name of the filter: e.g. progA
>milter-regex
3. Specify the socket name as /var/milter-regex/milter-regex.sock:
Enter the description of the socket used in the filter
e.g.:
unix:/var/run/f1.sock
inet6:999@localhost
inet:3333@localhost
> local:/var/milter-regex/milter-regex.sock
4. Specify the controlling flag:
Define the controlling flags for the filter
Enter R if you want to reject the connection if filter is unavailable
Enter T if you want to temporarily fail.
> T
5. Press enter to create the regex entry in the sendmail.cf.gen file as a filter program with
default time settings.
NOTE: Default timeouts have been added for filter: milter_prog
Building sendmail.cf.gen...
6. Replace the /etc/mail/sendmail.cf file with the sendmail.cf.gen file, preserving
any site-specific customized configuration or you can manually edit the following options
in the /etc/mail/sendmail.cf file (without performing the previous steps):
# Input mail filters
O InputMailFilters=<already-configured-milters>, milter-regex
You may need to add milter-regex to already defined milters separated with a comma
……………………..
# Milter options
#O Milter.LogLevel
No need to add the following macros in case they have been defined for any milter that is already configured.
O Milter.macros.connect=j, _, {daemon_name}, {if_name}, {if_addr}
O Milter.macros.helo={tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}
Anti-Spam and Anti-Virus Solutions in HP-UX Sendmail 33