Advertisement
Guest User

Untitled

a guest
Nov 11th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3.  
  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.  
  9. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) is ready to be MARVELOUS
  10. biff = no
  11.  
  12. # appending .domain is the MUA's job.
  13. append_dot_mydomain = no
  14.  
  15. # Uncomment the next line to generate "delayed mail" warnings
  16. #delay_warning_time = 4h
  17.  
  18. readme_directory = no
  19.  
  20. # TLS parameters
  21. smtpd_tls_cert_file= /etc/ssl/mail.example.org.crt
  22. smtpd_tls_key_file= /etc/ssl/mail.example.org.key
  23. smtpd_tls_CAfile = /etc/ssl/mail.example.org.ca-bundle
  24. smtpd_use_tls=yes
  25. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  26. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  27.  
  28. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  29. myhostname = mail.example.org
  30. mydomain = example.org
  31. alias_maps = hash:/etc/aliases
  32. alias_database = hash:/etc/aliases
  33. myorigin = /etc/mailname
  34. mydestination =
  35. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  36. mailbox_size_limit = 0
  37. recipient_delimiter = +
  38. inet_interfaces = all
  39. inet_protocols = all
  40. message_size_limit = 102400000
  41.  
  42. # G Suite
  43. relayhost = [smtp-relay.gmail.com]:587
  44. smtp_use_tls = yes
  45. smtp_tls_security_level = encrypt
  46. smtp_tls_note_starttls_offer = yes
  47.  
  48. smtpd_sasl_auth_enable = yes
  49. broken_sasl_auth_clients = yes
  50. smtpd_sasl_type = dovecot
  51. smtpd_sasl_path = private/auth
  52. smtpd_sasl_security_options = noanonymous
  53. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  54.  
  55. virtual_transport = lmtp:unix:private/dovecot-lmtp
  56.  
  57. virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
  58. virtual_alias_maps =
  59. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
  60. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
  61. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
  62. virtual_mailbox_maps =
  63. proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,
  64. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf
  65.  
  66. virtual_uid_maps = static:5000
  67. virtual_gid_maps = static:5000
  68.  
  69. * smtp:[smtp-relay.gmail.com]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement