Main index
Clients
Spamd-source Server
Route Server
Announce mailing list |
Sample spamd.conf client-side configurationHere 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
And a spamd.conf configuration file, for spamd-setup. /etc/mail/spamd.conf#!/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 # 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 |
|
|