summaryrefslogtreecommitdiff
path: root/etc/mail
diff options
context:
space:
mode:
Diffstat (limited to 'etc/mail')
-rw-r--r--etc/mail/Makefile4
-rw-r--r--etc/mail/spamd.conf68
2 files changed, 71 insertions, 1 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index 83d3f9eb651..8fc6665bcce 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2004/08/14 17:06:03 millert Exp $
+# $OpenBSD: Makefile,v 1.5 2007/02/27 02:22:01 beck Exp $
#
# Generate the various .db versions from their source files.
# The sendmail .mc files are not built here. They live in
@@ -43,6 +43,8 @@ distribution:
${DESTDIR}/etc/mail/trusted-users
${INSTALL} -c -o root -g wheel -m 644 virtusertable \
${DESTDIR}/etc/mail/virtusertable
+ ${INSTALL} -c -o root -g wheel -m 644 spamd.conf \
+ ${DESTDIR}/etc/mail/spamd.conf
makemap hash ${DESTDIR}/etc/mail/virtusertable < virtusertable
@for db in access.db aliases.db genericstable.db mailertable.db \
virtusertable.db; do \
diff --git a/etc/mail/spamd.conf b/etc/mail/spamd.conf
new file mode 100644
index 00000000000..aa282ab9a3e
--- /dev/null
+++ b/etc/mail/spamd.conf
@@ -0,0 +1,68 @@
+# $OpenBSD: spamd.conf,v 1.1 2007/02/27 02:22:01 beck Exp $
+#
+# spamd config file, read by spamd-setup(8) for spamd(8)
+#
+# See spamd.conf(5)
+#
+# Configures whitelists and blacklists for spamd
+#
+# Strings follow getcap(3) convention escapes, other than you
+# can have a bare colon (:) inside a quoted string and it
+# will deal with it. See spamd-setup(8) for more details.
+#
+# "all" must be here, and defines the order in which lists are applied.
+# Whitelists apply to the previous blacklist. More than one whitelist
+# may be applied to each blacklist.
+#
+# As of November 2004, a place to search for black lists is
+# http://spamlinks.net/filter-bl.htm
+#
+# Some of the URLs below point to www.openbsd.org locations. Those
+# files are likely to be mirrored to other OpenBSD www mirrors located
+# around the world. Hence, it is possible to edit this file and rewrite
+# www.openbsd.org with, for instance, to www.de.openbsd.org
+
+all:\
+ :uatraps:nixspam:china:korea:
+
+# University of Alberta greytrap hits
+# Addresses stay in it for 24 hours from time they misbehave.
+uatraps:\
+ :black:\
+ :msg="Your address %A has sent mail to a ualberta.ca spamtrap\n\
+ within the last 24 hours":\
+ :method=http:\
+ :file=www.openbsd.org/spamd/traplist.gz
+
+# Nixspam recent sources list.
+# Mirrored from http://www.heise.de/ix/nixspam
+nixspam:\
+ :black:\
+ :msg="Your address %A is in the nixspam list\n\
+ See http://www.heise.de/ix/nixspam/dnsbl_en/ for details":\
+ :method=http:\
+ :file=www.openbsd.org/spamd/nixspam.gz
+
+# Mirrored from http://www.okean.com/chinacidr.txt
+china:\
+ :black:\
+ :msg="SPAM. Your address %A appears to be from China\n\
+ See http://www.okean.com/asianspamblocks.html for more details":\
+ :method=http:\
+ :file=www.openbsd.org/spamd/chinacidr.txt.gz:
+
+# Mirrored from http://www.okean.com/koreacidr.txt
+korea:\
+ :black:\
+ :msg="SPAM. Your address %A appears to be from Korea\n\
+ See http://www.okean.com/asianspamblocks.html for more details":\
+ :method=http:\
+ :file=www.openbsd.org/spamd/koreacidr.txt.gz:
+
+# Whitelists are done like this, and must be added to "all" after each
+# blacklist from which you want the addresses in the whitelist removed.
+#
+#whitelist:\
+# :white:\
+# :method=file:\
+# :file=/var/db/whitelist.txt: