Install required packages.
yum install cyrus-sasl-sql cyrus-sasl-plain cyrus-sasl-lib -y
append following in /etc/postfix/main.cf
relayhost = [smtp-mail.outlook.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_generic_maps = hash:/etc/postfix/generic
smtp_tls_security_level = may
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
update generic file with sender email address, else outlook.com server will reject your mails.
/etc/postfix/generic
@localdomain.local your_id@outlook.com
/etc/postfix/sasl_passwd
smtp-mail.outlook.com your_id@outlook.com:your_password
restart service
postmap /etc/postfix/generic
postmap /etc/postfix/sasl_passwd
service postfix restart
No comments:
Post a Comment