Skip to content

Instantly share code, notes, and snippets.

@M66B
Last active June 17, 2021 17:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save M66B/e8757f8bab1dfd4cc609c2f91b7db8d4 to your computer and use it in GitHub Desktop.
Save M66B/e8757f8bab1dfd4cc609c2f91b7db8d4 to your computer and use it in GitHub Desktop.
pki example.com key "/etc/letsencrypt/live/example.com/privkey.pem"
pki example.com certificate "/etc/letsencrypt/live/example.com/fullchain.pem"
listen on lo mask-source
listen on 1.2.3.4 port 25 tls pki example.com auth-optional hostname example.com
listen on 1.2.3.4 port 465 smtps pki example.com auth hostname example.com mask-source
listen on 1.2.3.4 port 587 tls-require pki example.com auth hostname example.com mask-source
table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table virtuals file:/etc/mail/virtuals
table authinfo file:/etc/mail/authinfo
accept from any for domain <domains> virtual <virtuals> deliver to mda "/usr/bin/rspamc --mime --exec \"/usr/lib/dovecot/deliver -d %{dest:lowercase|strip} -f %{sender} -a %{rcpt}\""
accept from local for local alias <aliases> deliver to mda "/usr/bin/rspamc --mime --exec \"/usr/lib/dovecot/deliver -d %{dest:lowercase|strip} -f %{sender} -a %{rcpt}\""
accept from local for any relay via "tls+auth://sparkpost@smtp.sparkpostmail.com:587" auth <authinfo> verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment