Synopsis: small update to man smtpd.conf to include from local syntax
Category: documentation
Environment:
System : OpenBSD 6.6
Details : OpenBSD 6.6-current (GENERIC.MP) #509: Tue Dec 3
19:03:47 MST 2019
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
Description:
man smtpd.conf doesn't yet include the new "from local" syntax in
EXAMPLES section
The man page is not wrong. However, I think "from local" can be
included in
the section about forwarding email to other servers. I've tested it
with several servers.
I don't know if this next bit should also be in the man page, but in
order to get forwarding to work, I fill in the well-known aliases
on the sending machine with a different domain than the actual
hostname. For example, the server that sends email may have
foo.my.local in /etc/myname, but I fill in [email protected]
in the well-known aliases in /etc/mail/aliases. The receiving
server of course needs a match statement for that fictional domain.
How-To-Repeat:
man smtpd.conf
Fix:
Index: usr.sbin/smtpd/smtpd.conf.5
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/smtpd.conf.5,v
retrieving revision 1.236
diff -u -p -u -r1.236 smtpd.conf.5
--- usr.sbin/smtpd/smtpd.conf.5 5 Dec 2019 14:49:35 -0000 1.236
+++ usr.sbin/smtpd/smtpd.conf.5 5 Dec 2019 17:12:34 -0000
@@ -1151,8 +1151,8 @@ action "local_mail" mbox alias <aliases>
action "outbound" relay host smtp+tls://[email protected] \e
auth <secrets>
-match for local action "local_mail"
-match for any action "outbound"
+match from local for local action "local_mail"
+match from local for any action "outbound"
.Ed
.Pp
In this second example,