Annotation of src/etc/spamd.conf, Revision 1.11
1.11 ! david 1: # $OpenBSD: spamd.conf,v 1.10 2004/11/04 13:29:35 otto Exp $
1.1 beck 2: #
1.3 beck 3: # spamd config file, read by spamd-setup(8) for spamd(8)
4: #
5: # See spamd.conf(5)
1.1 beck 6: #
7: # Configures whitelists and blacklists for spamd
8: #
9: # Strings follow getcap(3) convention escapes, other than you
10: # can have a bare colon (:) inside a quoted string and it
11: # will deal with it. See spamd-setup(8) for more details.
12: #
13: # "all" must be here, and defines the order in which lists are applied
14: # whitelists apply to the previous blacklist. more than one whitelist
1.5 david 15: # may be applied to each blacklist
1.7 deraadt 16: #
1.10 otto 17: # As of November 2004, a place to search for black lists is
1.11 ! david 18: # http://spamlinks.net/filter-bl.htm
1.7 deraadt 19: #
1.9 deraadt 20: # Some of the URLs below point to www.openbsd.org locations. Those
21: # files are likely to be mirrored to other OpenBSD www mirrors located
22: # around the world. Hence, it is possible to edit this file and rewrite
23: # www.openbsd.org with, for instance, to www.de.openbsd.org
1.1 beck 24:
25: all:\
1.6 deraadt 26: :spamhaus:china:korea:
27:
1.9 deraadt 28: # Mirrored from http://spfilter.openrbl.org/data/sbl/SBL.cidr.bz2
1.6 deraadt 29: spamhaus:\
30: :black:\
31: :msg="SPAM. Your address %A is in the Spamhaus Block List\n\
1.9 deraadt 32: See http://www.spamhaus.org/sbl and\
33: http://www.abuse.net/sbl.phtml?IP=%A for more details":\
1.6 deraadt 34: :method=http:\
1.9 deraadt 35: :file=www.openbsd.org/spamd/SBL.cidr.gz
1.1 beck 36:
1.9 deraadt 37: # Mirrored from http://www.spews.org/spews_list_level1.txt
1.1 beck 38: spews1:\
1.8 deraadt 39: :black:\
40: :msg="SPAM. Your address %A is in the spews level 1 database\n\
1.1 beck 41: See http://www.spews.org/ask.cgi?x=%A for more details":\
1.8 deraadt 42: :method=http:\
1.9 deraadt 43: :file=www.openbsd.org/spamd/spews_list_level1.txt.gz
1.1 beck 44:
1.9 deraadt 45: # Mirrored from http://www.spews.org/spews_list_level2.txt
1.1 beck 46: spews2:\
1.8 deraadt 47: :black:\
48: :msg="SPAM. Your address %A is in the spews level 2 database\n\
1.1 beck 49: See http://www.spews.org/ask.cgi?x=%A for more details":\
1.8 deraadt 50: :method=http:\
1.9 deraadt 51: :file=www.openbsd.org/spamd/spews_list_level2.txt.gz
1.1 beck 52:
1.9 deraadt 53: # Mirrored from http://www.okean.com/chinacidr.txt
1.1 beck 54: china:\
1.8 deraadt 55: :black:\
1.3 beck 56: :msg="SPAM. Your address %A appears to be from China\n\
1.1 beck 57: See http://www.okean.com/asianspamblocks.html for more details":\
1.8 deraadt 58: :method=http:\
1.9 deraadt 59: :file=www.openbsd.org/spamd/chinacidr.txt.gz
1.1 beck 60:
1.9 deraadt 61: # Mirrored from http://www.okean.com/koreacidr.txt
1.1 beck 62: korea:\
1.8 deraadt 63: :black:\
1.3 beck 64: :msg="SPAM. Your address %A appears to be from Korea\n\
1.1 beck 65: See http://www.okean.com/asianspamblocks.html for more details":\
1.8 deraadt 66: :method=http:\
1.9 deraadt 67: :file=www.openbsd.org/spamd/koreacidr.txt.gz
1.1 beck 68:
69:
70: # Whitelists are done like this, and must be added to "all" after each
71: # blacklist from which you want the addresses in the whitelist removed.
72: #
73: #whitelist:\
1.8 deraadt 74: # :white:\
75: # :file=/var/mail/whitelist.txt
1.4 dhartmei 76:
77: relaydb-black:\
78: :black:\
79: :msg="SPAM. Your address %A is in my relaydb list.":\
80: :method=exec:\
81: :file=relaydb -4lb:
82:
83: relaydb-white:\
84: :white:\
85: :method=exec:\
86: :file=relaydb -4lw: