aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Faurot <eric@faurot.net>2013-10-02 20:43:03 +0200
committerEric Faurot <eric@faurot.net>2013-10-02 20:43:03 +0200
commit01b73906924424c0296a9c196a83b830718b2908 (patch)
tree0a045907214c9fcbeff6460bb7eeeed70e0f06c8
parentdocument userinfo tables. (diff)
downloadOpenSMTPD-01b73906924424c0296a9c196a83b830718b2908.tar.xz
OpenSMTPD-01b73906924424c0296a9c196a83b830718b2908.zip
document addrname table
-rw-r--r--smtpd/table.520
1 files changed, 19 insertions, 1 deletions
diff --git a/smtpd/table.5 b/smtpd/table.5
index 6f4b5706..0cf10ea0 100644
--- a/smtpd/table.5
+++ b/smtpd/table.5
@@ -201,7 +201,25 @@ Bla bla
.Ss Mailaddr tables
Bla bla
.Ss Addrname tables
-Bla bla
+Addrname tables are user to map IP addresses to hostnames.
+They can be used in both listen context and relay context:
+.Bd -literal -offset indent
+listen on 0.0.0.0 hostnames <addrname>
+accept for any relay hostnames <addrname>
+.Ed
+.Pp
+In listen context, the table is used to lookup the server name to advertise
+depending on the local address of the socket on which a connection is accepted.
+In relay context, the table is used to determine the host name for the HELO
+sequence of the SMTP protocol, depending on the local address used for the
+outgoing connection.
+.Pp
+The format is a mapping from inet4 or inet6 addresses to hostnames:
+.Bd -literal -offset indent
+::1 localhost
+127.0.0.1 localhost
+88.190.23.165 www.opensmtpd.org
+.Ed
.Sh SEE ALSO
.Xr smtpd.conf 5
.Xr makemap 8 ,