Those documents are obsolete, please use the Nethence Documentation
Dnsbl-milter on RHEL
note -- this is only necessary for postoffice smtp server, with Sendmail simply use the FEATURE dnsbl consecutively.
Note. DNSBL-milter requires sendmail-devel -- libmilter to compile.
On Redhat systems,
rpm -q sendmail-devel
Note. sendmail-milter is probably needed too
Add the milter group and user,
useradd -M -s /sbin/nologin -g milter milter
grep ^milter /etc/group
grep ^milter /etc/passwd
Create the folder for the pid and the unix socket,
mkdir -p milter/
chown milter:milter milter/
chmod 700 milter/
I need the very latest version of dnsbl-milter (http://dnsbl-milter.sourceforge.net/) to get that option,
-s Do not stamp messages with X-DNSBL-MILTER header
Version 1.2 doesn't has it and it is mandatory to work with the postoffice smtp server.
So I'm getting the development version through git (http://dnsbl-milter.git.sourceforge.net/git/dnsbl-milter/dnsbl-milter.git),
git clone git://dnsbl-milter.git.sourceforge.net/gitroot/dnsbl-milter/dnsbl-milter
cp init.d/dnsbl-milter /etc/init.d/
Note. if you don't have git already, you can get those packages from EPEL (http://fedoraproject.org/wiki/EPEL),
Ready to go
Register, start and enable the daemon,
chkconfig --add dnsbl-milter
service dnsbl-milter restart
chkconfig dnsbl-milter on
Check that everything's fine,
ps aux | grep dnsbl
chkconfig --list | grep dnsbl-milter
ls -l /var/run/milter/
You can now configure your smtp daemon to use that unix socket as milter and reload/restart it.
For dnsbl-mitler to work with postoffice smtp server, and when using something else as 'spam=bounce' like for example 'spam=accept' or 'spam=folder:path', you'll have to disable the stamping of X-DNSBL-MILTER headers,
change (add '-s'),
DPARMS="-s --user milter --group milter --bind unix:$SOCKET"
This is a typical set of lines you should see in your logs, once this is up and running,
Jan 14 09:34:56 bsd dnsbl-milter: s0E8YtqU096676: [22.214.171.124] [126.96.36.199] is blacklisted on b.barracudacentral.org
Jan 14 09:34:56 bsd sm-mta: s0E8YtqU096676: Milter: from=<firstname.lastname@example.org>, reject=550 5.7.1 Client address [188.8.131.52] blocked. Listed on Barracuda Reputation Block List (BRBL). See http://www.barracudacentral.org/lookups?ip_address=184.108.40.206
Jan 14 09:34:57 bsd sm-mta: s0E8YtqU096676: from=<email@example.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=IPv4, relay=[220.127.116.11]
Last update: Sep 13, 2014