summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2019-11-26 20:42:36 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2019-11-26 20:42:36 +0000
commit0884c7446f2bf335c2d5c58613028fb6277d815f (patch)
tree68747f4f0a882f5826f023c3c25db1ae943a9230 /usr.sbin/smtpd
parent98bb2be26a3c7033fbc680f13bc75483d64ce247 (diff)
document that listen on socket can have filters attached
original diff from Ryan Kavanagh <rak@debian.org>, slightly rearranged
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/smtpd.conf.530
1 files changed, 20 insertions, 10 deletions
diff --git a/usr.sbin/smtpd/smtpd.conf.5 b/usr.sbin/smtpd/smtpd.conf.5
index adcf09bc392..e819a1925c4 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.231 2019/11/26 07:50:01 gilles Exp $
+.\" $OpenBSD: smtpd.conf.5,v 1.232 2019/11/26 20:42:35 gilles Exp $
.\"
.\" Copyright (c) 2008 Janne Johansson <jj@openbsd.org>
.\" Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -536,19 +536,29 @@ With the
option, clients must also provide a valid certificate
to establish an SMTP session.
.El
-.It Ic listen on Cm socket Oo Ar mask-src Oc Op Cm tag Ar tag
+.It Ic listen on Cm socket Oc Op Ar options
Listen for incoming SMTP connections on the Unix domain socket
.Pa /var/run/smtpd.sock .
This is done by default, even if the directive is absent.
-If the
-.Cm mask-src
-option is specified, printing of the HELO name, hostname, and IP
-address of the originating host is suppressed in Received: header lines.
-If the
-.Cm tag
-option is specified,
-sessions initiated from the socket will be tagged
+.Pp
+The
+.Ar options
+are as follows:
+.Bl -tag -width Ds
+.It Ic filter Ar name
+Apply filter
+.Ar name
+on connections handled by this listener.
+.It Cm mask-src
+Omit the
+.Sy from
+part when prepending
+.Dq Received
+headers.
+.It Cm tag Ar tag
+Clients connecting to the listener are tagged with the given
.Ar tag .
+.El
.It Ic match Ar options Cm action Ar name
If at least one mail envelope matches the
.Ar options