summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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