Postfix¶
Installation¶
aptitude install postfix
Configurations¶
Relay SMTP¶
Edit /etc/postfix/main.cf
relayhost = [smtp.domain.tld]: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 =
Create /etc/postfix/sasl_passwd
[smtp.domain.tld]:587 username:password
Update postfix lookup table
postmap /etc/postfix/sasl_passwd
Make sur /etc/postfix/sasl_passwd.db is owned by postfix
chown postfix /etc/postfix/sasl_passwd.db
Reload Postfix
service postfix reload
Change default root mail : http://anandarajpandey.com/2014/09/10/how-to-change-default-root-email-address-linux-postfix-centos/
Errors¶
SASL authentication failed; cannot authenticate to server server.domain.tld[xxx.xxx.xxx.xxx]: no mechanism available
Install libsasl2-modules, restart postfix