Xyberviri

Postfix_o365_relay_settings.md

Jul 17th, 2017
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #main.cf:
  2. relayhost = [smtp.office365.com]:587
  3.  
  4. #settings for authentication to o365
  5. smtp_sasl_auth_enable = yes
  6. smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
  7. smtp_sasl_security_options = noanonymous
  8. smtp_tls_security_level = may
  9.  
  10. # Relay from this server setting
  11. sender_canonical_maps = regexp:/etc/postfix/sender_canonical
  12.  
  13. # Relay from other server setting
  14. sender_canonical_classes = envelope_sender, header_sender
  15. smtp_header_checks = regexp:/etc/postfix/header_check
  16.  
  17. #header_check:
  18. /From:.*/ REPLACE From: email@o365.address
  19.  
  20. #sasl_passwd:
  21. [smtp.office365.com]:587 email@o365.address:password
  22.  
  23. #sender_canonical:
  24. /.+/ email@o365.address
  25.  
  26. #other setup
  27. https://geekdudes.wordpress.com/2018/04/11/configuring-postfix-as-relay-for-office-365/
Advertisement
Add Comment
Please, Sign In to add comment