Advertisement
Guest User

main.cf

a guest
Mar 27th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3. myhostname = mydomain.on.a.dyndns.provider
  4. # Debian specific: Specifying a file name will cause the first
  5. # line of that file to be used as the name. The Debian default
  6. # is /etc/mailname.
  7. myorigin = /etc/mailname
  8. mydestination =
  9. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  10. mailbox_size_limit = 0
  11. recipient_delimiter = +
  12. inet_interfaces = all
  13. relay_domains = $mydestination
  14. alias_maps = hash:/etc/aliases
  15. alias_database = hash:/etc/aliases
  16. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  17. # appending .domain is the MUA's job.
  18. append_dot_mydomain = no
  19. message_size_limit = 40000000
  20. notify_classes = bounce, resource, software, delay, policy
  21. show_user_unknown_table_name = no
  22. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
  23. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  24. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql
  25. -email2email.cf
  26. virtual_transport = lmtp:unix:private/dovecot-lmtp
  27.  
  28. # TLS parameters
  29. smtpd_tls_cert_file = /etc/letsencrypt/live/mydomain/cert.pem
  30. smtpd_tls_key_file = /etc/letsencrypt/live/mydomain/privkey.pem
  31. smtpd_use_tls = yes
  32. smtpd_tls_auth_only = yes
  33. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  34. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  35. smtpd_tls_security_level = may
  36. smtpd_tls_protocols = !SSLv2, !SSLv3
  37.  
  38. # SASL settings
  39. smtpd_sasl_type = dovecot
  40. smtpd_sasl_path = private/auth
  41. smtpd_sasl_auth_enable = yes
  42.  
  43. # Relay over Google settings
  44. relayhost = smtp.gmail.com:587
  45. smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement