HP-UX Mailing Solutions White Paper
NOTE: Default timeouts have been added for filter: milter_prog
Building sendmail.cf.gen...
6. Copy the created sendmail.cf.gen file as /etc/mail/sendmail.cf file, preserving
any site-specific customized configuration or add the following to the /etc/mail/
sendmail.cf file.
# Input mail filters
O InputMailFilters=<already-configured-milters>, clamav-milter
You may need to add clamav-milter to already defined milters separated with a comma
……………………..
# Milter options
#O Milter.LogLevel
O Milter.macros.connect=j, _, {daemon_name}, {if_name}, {if_addr}
O Milter.macros.helo={tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}
O Milter.macros.envfrom=i, {auth_type}, {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host},
{mai
l_addr}
O Milter.macros.envrcpt={rcpt_mailer}, {rcpt_host}, {rcpt_addr}
O Milter.macros.eom={msg_id}
……………………
######################################################################
######################################################################
#####
##### MAIL FILTER DEFINITIONS
#####
######################################################################
######################################################################
X<already-configured-milters>, S=local:/var/run/f1.sock, F=T, T=C:5m;S:10s;R:10s;E:5m
Xclamav-milter, S=/var/run/clamav/clmilter.sock, F=T, T=C:5m;S:10s;R:10s;E:5m
Add the definition of clamav-milter as an milter program
7. Restart the Sendmail daemons:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Verifying the Clam-AV Configuration
Follow this procedure to verify the Clam-AV configuration:
1. Ensure that the output of the mtail command does not contain errors or warnings.
2. Send a test mail and verify if the mail is delivered properly.
3. Ensure that the filter program is running on the system:
#ps -ef | grep milter_prog
root 6480 5573 1 11:03:37 pts/1 0:00 grep milter
root 6476 1099 0 11:03:30 pts/0 0:00 ./milter_prog -p /var/run/f1.sock
Milter-Regex Support
Milter-Regex is a Sendmail milter plugin that rejects mail based on regular expressions matching
SMTP envelope parameters, mail headers, and body.
Configuring Milter-Regex with Sendmail on an HP-UX System
This section discusses the prerequisites and procedure to configure Milter-Regex with Sendmail
on an HP-UX system.
Prerequisites
Following are the prerequisites for configuring Milter-Regex with Sendmail:
• The Sendmail 8.13.3 software
NOTE: Sendmail 8.13.3 is available in the core HP-UX 11i v3 operating system.
• The Milter-Regex software
Configuring Milter-Regex on an HP-UX System
Follow this procedure to configure Milter-Regex on an HP-UX system:
32