dmzconf/hosts/krov/opensmtpd12/etc/smtpd.conf

29 lines
986 B
Plaintext

# $OpenBSD: smtpd.conf,v 1.10 2018/05/24 11:40:17 gilles Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
table sendcreds file:/etc/sendcreds
table aliases file:/etc/aliases
filter "dkimsign" proc-exec "filter-dkimsign -d krov.dmz.rs -s selector1 -k /etc/dkim/selector1.private"
pki krov.dmz.rs cert "/etc/letsencrypt/live/krov.dmz.rs/fullchain.pem"
pki krov.dmz.rs key "/etc/letsencrypt/live/krov.dmz.rs/privkey.pem"
# To accept external mail, replace with: listen on all
#
listen on eth0
listen on eth0 port 587 auth sendcreds tls-require pki "krov.dmz.rs" filter "dkimsign"
#action "local" maildir alias <aliases>
action "relay" relay
action "backup" relay backup
# 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 from any for domain dmz.rs action "backup"
match from auth for any action "relay"