Main
index

Clients
Overview
pf.conf configuration
bgpd.conf configuration
spamd.conf configuration

Spamd-source Server
Coming soon

Route Server
Overview
bgpd.conf configuration
pf.conf configuration

Announce mailing list
Papers
Hosting is generously provided by Sonic.net

 

Sample spamd.conf client-side configuration


Here is a method to simply block all addresses on the BLACK list. This has the advantage of being simple for the Client system administrator, however it require that the Client system administrator determine which list blocked the remote server.

Below is a simple script for cron to update BLACK lists. It will print the host IP address of each entry to the /var/db/spamd.black file, then run spamd-setup (which will be configured next). Here, we use the fact that the Route Serve marks all distributed BLACK list routes with the Community string 65066:666. It is designed to be run from cron at a frequency faster than the greylist pass time, (for example, every 20 minutes) so that the trapped lists are updated on a regular basis.

/usr/local/sbin/bgp-spamd.black.sh
#!/bin/sh
AS=65066

bgpctl show rib community ${AS}:666 | 
	sed -e '1,4d' -e 's/\/.*$//' -e 's/[ \*\>]*//' > /var/db/spamd.black

/usr/libexec/spamd-setup

# EOF
And a spamd.conf configuration file, for spamd-setup. /etc/mail/spamd.conf
# Configuration file for spamd.conf

all:\
        :bgp-spamd:

bgp-spamd:\
         :black:\
         :msg="Your address %A has sent mail to a spamtrap\n\
          within the last 24 hours":\
         :method=file:\
         :file=/var/db/spamd.black:

# EOF
© 2013-2017 Peter Hessler