infrastructure-doc/configuration-files/baguette/mail/smtpd.conf

44 lines
1.3 KiB
Plaintext

# $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
pki "mail" cert "/etc/ssl/netlib.re.fullchain.pem"
pki "mail" key "/etc/ssl/private/netlib.re.key"
table aliases file:/etc/mail/aliases
table credentials passwd:/etc/mail/credentials
table virtuals file:/etc/mail/virtuals
# Filter potential spam with rspamd
filter "rspamd" proc-exec "/usr/local/libexec/smtpd/filter-rspamd"
# To accept external mail, replace with: listen on all
#
#listen on socket
listen on lo0
# listen on "192.168.122.132"
#listen on "192.168.122.132" \
# tls pki "mail" \
# hostname "mail.netlib.re" filter "rspamd"
#
## Authorize people to send messages from our server
#listen on "192.168.122.132" port submission \
# tls-require pki "mail" \
# hostname "mail.netlib.re" \
# auth <credentials> filter "rspamd"
action "local_mail" mbox alias <aliases>
action "domain_mail" \
maildir "/var/vmail/netlib.re/%{dest.user}" \
virtual <virtuals>
action "outbound" relay
#match from any for domain "netlib.re" action "domain_mail"
match from local for local action "local_mail"
# Authorize alpha to send mails
#match from src "192.168.122.84" for any action "outbound"
match from local for any action "outbound"
match auth from any for any action "outbound"