Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Created December 30, 2019 07:51
Show Gist options
  • Save alexalouit/e88cf00cfc9718f7fa68fbeccd9d497b to your computer and use it in GitHub Desktop.
Save alexalouit/e88cf00cfc9718f7fa68fbeccd9d497b to your computer and use it in GitHub Desktop.
proxmox: authenticate smtp relay
$ apt-get update
$ apt-get install -y libsasl2-modules
$ nano /etc/postfix/main.cf
relayhost = [mail.server.com]:587
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_sasl_security_options =
$ nano /etc/postfix/sasl_passwd
[mail.server.com]:587 [email protected]:password
$ /etc/init.d/postfix reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment