TABLE(5) File Formats Manual TABLE(5) (NAME) table - OpenSMTPD (DESCRIPTION) smtpd(8) . smtpd.conf(5) . (TABLE TYPES) : (lists) (mappings). . (static) : table mylist { value1, value2, value3 } table mymapping { key1 = value1, key2 = value2, key3 = value3 } `file' . value1 value2 value3 : key1: value1 key2 value2 key3 value3 . (`#') . : # @list makemap(8) (Berkeley database) . `file' Berkeley DB : table name file:/path/to/file table name db:/path/to/file.db (Aliasing tables) . : . action name method alias action name method virtual
aliases(5) : user1 otheruser user2 otheruser1,otheruser2 user3 otheruser@example.com (catch-all) smtpd.conf(5) aliases(5) : user1 otheruser user2@example.org otheruser1,otheruser2 @example.org otheruser@example.com @ catchall@example.com . : listen on interface auth [...] senders
(Domain tables) . match for domain
action name match helo
[...] action name HELO . `static', `file' dbopen(3), (wildcard) : example.org *.example.org (Credentials tables) . : listen on interface tls [...] auth
action name relay host relay-url auth
(listener): user1 $2b$10$hIJ4QfMcp.90nJwKqGbKM.MybArjHOTpEtoTV.DgLYAiThuoYmTSe user2 $2b$10$bwSmUOBGcZGamIfRuXGTvuTo3VLbPG9k5yeKNMBtULBhksV5KdGsK encrypt smtpctl(8) . (relay) username:password : label1 user:password . . (Netaddr tables) IPv4 IPv6 . : match from src
action name <> ( ) . netaddr (netmasks) : 192.168.1.1 [::1] 192.168.1.0/24 IPv6 . (Userinfo tables) UID GID . action name method userbase
userinfo : joe 1000:100:/home/virtual/joe jack 1000:100:/home/virtual/jack joe jack UID GID . forward(5) . (alias table) . : joe@example.org joe jack@example.com jack (Source tables) IPv4 IPv6 . : action name relay src
. source : 192.168.1.2 192.168.1.3 [::1] [::2] IPv6 . (Mailaddr tables) . : match mail-from
action name match rcpt-to
action name mailaddr . <<*>> (wildcard) . mailaddr : user @domain user@domain user@*.domain (Addrname tables) IP . : listen on interface hostnames
action name relay helo-src
. HELO SMTP. inet4 inet6 : [::1] localhost 127.0.0.1 localhost 88.190.23.165 www.opensmtpd.org IPv6 . (SEE ALSO) smtpd.conf(5), makemap(8), smtpd(8) Linux 6.12.107+deb13-amd64 May 2, 2024 Linux 6.12.107+deb13-amd64