summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-10-11 20:53:43 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-10-11 20:53:43 +0000
commit8a7f68071929876c841153a15e72fe8703bdcd0a (patch)
tree7423ebccfa7ee64d3a08c26bed4b5f0014cd4d9c
parent48f4d7030532c7cdfa793670cf6ef801ea00e554 (diff)
Enforce valid Message-Id to help stop spammers
-rw-r--r--usr.sbin/sendmail/cf/cf/openbsd-proto.mc11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/sendmail/cf/cf/openbsd-proto.mc b/usr.sbin/sendmail/cf/cf/openbsd-proto.mc
index bd0368e0fa4..7225dc02461 100644
--- a/usr.sbin/sendmail/cf/cf/openbsd-proto.mc
+++ b/usr.sbin/sendmail/cf/cf/openbsd-proto.mc
@@ -18,8 +18,17 @@ divert(-1)
divert(0)dnl
include(`../m4/cf.m4')
-VERSIONID(`@(#)openbsd-proto.mc $Revision: 1.2 $')
+VERSIONID(`@(#)openbsd-proto.mc $Revision: 1.3 $')
OSTYPE(openbsd)
FEATURE(nouucp)
MAILER(local)
MAILER(smtp)
+dnl
+dnl Enforce valid Message-Id to help stop spammers
+dnl
+LOCAL_RULESETS
+HMessage-Id: $>CheckMessageId
+
+SCheckMessageId
+R< $+ @ $+ > $@ OK
+R$* $#error $: 553 Header Error