Last active
March 9, 2023 10:30
-
-
Save bitsmanent/424ffa9403232e6579de4af0f484c33d to your computer and use it in GitHub Desktop.
OpenSMTPD configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# opensmtpd smtpd.conf | |
# | |
# Current version: | |
# https://github.com/OpenSMTPD/OpenSMTPD/issues/1171#issuecomment-1139450955 | |
# | |
# Installed additional packages: | |
# debhelper libdb-dev libpam0g-dev libevent-dev bison | |
# | |
# Also note: /etc/smtpd created by hand. | |
srvname="INSERT_SERVER_NAME" | |
srvaddr="INSERT_SERVER_ADDR" | |
pki $srvname cert "/etc/smtpd/mail.crt" | |
pki $srvname key "/etc/smtpd/mail.key" | |
table creds "/etc/smtpd/creds" | |
table vdoms "/etc/smtpd/vdoms" | |
table vusers "/etc/smtpd/vusers" | |
# Requires: opensmtpd-filter-dkimsign | |
filter "dkimsign" proc-exec "filter-dkimsign -d INSERT_SERVER_HOST -s mail -k /etc/smtpd/mail.key" user _dkimsign group _dkimsign | |
listen on $srvaddr port 25 tls pki $srvname hostname $srvname filter "dkimsign" | |
#listen on $srvaddr port 465 smtps mask-src pki $srvname auth <creds> filter "dkimsign" | |
listen on $srvaddr port 587 tls-require mask-src pki $srvname auth <creds> filter "dkimsign" | |
action recv maildir "~/Maildir" virtual <vusers> | |
action send relay | |
match from any for domain <vdoms> action recv | |
match from auth for any action send |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment