summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkmos <kmos@cvs.openbsd.org>2019-07-24 15:31:54 +0000
committerkmos <kmos@cvs.openbsd.org>2019-07-24 15:31:54 +0000
commit46d0bbef01d8614fcb67e54feaced1d675fe9f30 (patch)
tree76c9de0329c879509cd7087e20303b02853c67bb
parent00f811f480d30c29f6d88bae20bb832d360acfe8 (diff)
Stop using reserved words in the smtpd.conf configuration examples
in the default smtpd.conf and smtpd.conf(5) manual page. This eliminates ambiguity in our documentation examples that can cause confusion. Input and OK deraadt@ schwarze@ kn@
-rw-r--r--etc/mail/smtpd.conf12
-rw-r--r--usr.sbin/smtpd/smtpd.conf.540
2 files changed, 26 insertions, 26 deletions
diff --git a/etc/mail/smtpd.conf b/etc/mail/smtpd.conf
index a570aa36c71..a9717751d0c 100644
--- a/etc/mail/smtpd.conf
+++ b/etc/mail/smtpd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: smtpd.conf,v 1.11 2018/06/04 21:10:58 jmc Exp $
+# $OpenBSD: smtpd.conf,v 1.12 2019/07/24 15:31:53 kmos Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
@@ -9,11 +9,11 @@ table aliases file:/etc/mail/aliases
#
listen on lo0
-action "local" mbox alias <aliases>
-action "relay" relay
+action "local_mail" mbox alias <aliases>
+action "outbound" relay
# Uncomment the following to accept external mail for domain "example.org"
#
-# match from any for domain "example.org" action "local"
-match for local action "local"
-match for any action "relay"
+# match from any for domain "example.org" action "local_mail"
+match for local action "local_mail"
+match for any action "outbound"
diff --git a/usr.sbin/smtpd/smtpd.conf.5 b/usr.sbin/smtpd/smtpd.conf.5
index e9ca99ed9d7..2013faeeec0 100644
--- a/usr.sbin/smtpd/smtpd.conf.5
+++ b/usr.sbin/smtpd/smtpd.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: smtpd.conf.5,v 1.210 2018/12/22 08:54:02 gilles Exp $
+.\" $OpenBSD: smtpd.conf.5,v 1.211 2019/07/24 15:31:53 kmos Exp $
.\"
.\" Copyright (c) 2008 Janne Johansson <jj@openbsd.org>
.\" Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -17,7 +17,7 @@
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.\"
-.Dd $Mdocdate: December 22 2018 $
+.Dd $Mdocdate: July 24 2019 $
.Dt SMTPD.CONF 5
.Os
.Sh NAME
@@ -871,12 +871,12 @@ table secrets file:/etc/mail/secrets
listen on lo0
-action "local" mbox alias <aliases>
-action "relay" relay host smtp+tls://bob@smtp.example.com \e
+action "local_mail" mbox alias <aliases>
+action "outbound" relay host smtp+tls://bob@smtp.example.com \e
auth <secrets>
-match for local action "local"
-match for any action "relay"
+match for local action "local_mail"
+match for any action "outbound"
.Ed
.Pp
In this second example,
@@ -908,12 +908,12 @@ listen on egress tls pki mail.example.com auth
action mda_with_aliases mda "/path/to/mda \-f \-" alias <aliases>
action mda_without_aliases mda "/path/to/mda \-f \-"
-action "relay" relay
+action "outbound" relay
match for local action mda_with_aliases
match from any for domain example.com action mda_without_aliases
-match for any action "relay"
-match auth from any for any action "relay"
+match for any action "outbound"
+match auth from any for any action "outbound"
.Ed
.Pp
For sites that wish to sign messages using DKIM, the
@@ -929,13 +929,13 @@ table aliases file:/etc/mail/aliases
listen on lo0
listen on lo0 port 10028 tag DKIM
-action "mbox" mbox alias <aliases>
-action "relay" relay
-action relay_dkim relay host smtp://127.0.0.1:10027
+action "local_mail" mbox alias <aliases>
+action "outbound" relay
+action "relay_dkim" relay host smtp://127.0.0.1:10027
-match for local action "mbox"
-match tag DKIM for any action "relay"
-match for any action relay_dkim
+match for local action "local_mail"
+match tag DKIM for any action "outbound"
+match for any action "relay_dkim"
.Ed
.Pp
Sites that accept non-local messages may be able to cut down on the
@@ -952,14 +952,14 @@ table other-relays file:/etc/mail/other-relays
listen on lo0
listen on egress
-action "mbox" mbox alias <aliases>
-action "relay" relay
+action "local_mail" mbox alias <aliases>
+action "outbound" relay
-match for local action "mbox"
-match for any action "relay"
+match for local action "local_mail"
+match for any action "outbound"
match !from src <other-relays> mail\-from "@example.com" for any \e
reject
-match from any for domain example.com action "mbox"
+match from any for domain example.com action "local_mail"
.Ed
.Sh SEE ALSO
.Xr mailer.conf 5 ,