Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. /etc/postfix/main.cf:
  2. virtual_alias_domains = example.com (...other hosted domains here if needed...)
  3. virtual_alias_maps = hash:/etc/postfix/virtual
  4.  
  5. /etc/postfix/virtual:
  6. postmaster@example.com postmaster
  7. info@example.com joe
  8. sales@example.com jane
  9. (...virtual aliases for more domains...)
  10.  
  11. /etc/postfix/main.cf:
  12.  
  13. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  14. biff = no
  15. append_dot_mydomain = no
  16. readme_directory = no
  17. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  18. mailbox_size_limit = 0
  19. recipient_delimiter = +
  20. inet_interfaces = loopback-only
  21. inet_protocols = all
  22. smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
  23. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  24. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  25. smtpd_use_tls=yes
  26. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  27. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  28. smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
  29. myhostname = pcelgery
  30. alias_maps = hash:/etc/aliases
  31. alias_database = hash:/etc/aliases
  32. mydestination = pcelgery, localhost.com, localhost
  33. relayhost = smtp.zoho.com:587
  34. smtp_sasl_auth_enable = yes
  35. smtp_sasl_password_maps = hash:/etc/postfix/password
  36. smtp_generic_maps = hash:/etc/postfix/generic
  37. smtp_sasl_security_options = noanonymous
  38. smtp_always_send_ehlo = yes
  39. smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  40. smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination
  41.  
  42. /etc/postfix/generic:
  43. root info@g3eo.com
  44.  
  45. /etc/postfix/password:
  46. smtp.zoho.com:587 info@g3eo.com:DonaldMcDonaldKangreBurger
  47.  
  48. /etc/postfix/smtp_header_checks:
  49. /^From:.*/ REPLACE From:info@g3eo.com
  50.  
  51. /etc/postfix/tls_policy:
  52. smtp.zoho.com:587 encrypt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement