This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
openbsd:mail:opensmtpd2 [2020/08/10 22:59] baytuch |
openbsd:mail:opensmtpd2 [2020/08/12 13:36] baytuch |
||
---|---|---|---|
Line 42: | Line 42: | ||
listen on lo0 port 10028 tag DKIM mask-src | listen on lo0 port 10028 tag DKIM mask-src | ||
listen on egress port 25 tls pki example.com mask-src filter { check_rdns check_fcrdns } | listen on egress port 25 tls pki example.com mask-src filter { check_rdns check_fcrdns } | ||
- | #listen on egress port 587 tls-require pki example.com auth <passwd> mask-src filter { check_rdns check_fcrdns } | + | listen on egress port 587 tls-require tag AUTH pki grape.ircnow.org auth <passwd> mask-src filter { check_rdns check_fcrdns } |
action "local_mail" mbox alias <aliases> | action "local_mail" mbox alias <aliases> | ||
action "relay_dkim" relay host smtp://127.0.0.1:10027 | action "relay_dkim" relay host smtp://127.0.0.1:10027 | ||
action "relay" relay | action "relay" relay | ||
- | #action "lmtp" lmtp "/var/dovecot/lmtp" rcpt-to virtual <vusers> | + | action "lmtp" lmtp "/var/dovecot/lmtp" rcpt-to virtual <vusers> |
- | match from local for local action "local_mail" | + | match from local for rcpt-to regex "^root@|^abuse@|^security@" action "local_mail" |
- | #match from local for domain <domains> action "lmtp" | + | match from local for domain <domains> action "lmtp" |
match tag DKIM for any action "relay" | match tag DKIM for any action "relay" | ||
match from local for any action "relay_dkim" | match from local for any action "relay_dkim" | ||
match from src <hosts> for any action "relay_dkim" | match from src <hosts> for any action "relay_dkim" | ||
- | #match from any for domain <domains> action "lmtp" | + | match from any tag AUTH for any action "relay_dkim" |
+ | match from any for domain <domains> action "lmtp" | ||
</code> | </code> | ||