I find it useful to reject spam that pretends to come from my domain.
I'm sure others would too.  Also fixes a typo and makes white space
consistent.

 - todd

Index: usr.sbin/smtpd/smtpd.conf.5
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/smtpd.conf.5,v
retrieving revision 1.123
diff -u -r1.123 smtpd.conf.5
--- usr.sbin/smtpd/smtpd.conf.5 13 Dec 2014 13:36:03 -0000      1.123
+++ usr.sbin/smtpd/smtpd.conf.5 16 Dec 2014 13:41:25 -0000
@@ -964,7 +964,7 @@
 table aliases db:/etc/mail/aliases.db
 
 accept for local alias <aliases> deliver to mda "/path/to/mda \-f \-"
-accept from any for domain example.org \e
+accept from any for domain example.com \e
        deliver to mda "/path/to/mda \-f \-"
 accept for any relay
 .Ed
@@ -979,10 +979,33 @@
 .Bd -literal -offset indent
 listen on lo0
 listen on lo0 port 10028 tag DKIM
+
 table aliases db:/etc/mail/aliases.db
+
 accept for local alias <aliases> deliver to mbox
 accept tagged DKIM for any relay
 accept from local for any relay via smtp://127.0.0.1:10027
+.Ed
+.Pp
+Sites that accept non-local messages may be able to cut down on the
+volume of spam received by rejecting forged messages that claim
+to be from the local domain.
+The table
+.Em other-relays
+can be used to specify the IP addresses of relays that may legitimately
+originate mail with your domain as the sender.
+.Bd -literal -offset indent
+listen on lo0
+listen on egress
+
+table aliases   db:/etc/mail/aliases.db
+table other-relays "/etc/mail/other-relays"
+
+accept for local alias <aliases> deliver to mbox
+accept from local for any relay
+reject from ! source <other-relays> sender "@example.com" for any
+accept from any for domain example.com \e
+       alias <aliases> deliver to mbox
 .Ed
 .Sh SEE ALSO
 .Xr mailer.conf 5 ,

Reply via email to