Advertisement
Guest User

main.cf

a guest
Feb 13th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 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 (Debian/GNU)
  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_session_cache_database = btree:${data_directory}/smtpd_scache
  22. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  23.  
  24. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  25. # information on enabling SSL in the smtp client.
  26.  
  27. myhostname = mail.customs.gov.md
  28. alias_maps = hash:/etc/aliases
  29. alias_database = hash:/etc/aliases
  30. myorigin = /etc/mailname
  31. mydestination = mail.customs.gov.md, localhost
  32. relayhost =
  33. mynetworks = 127.0.0.0/8 87.248.174.64/26 188.237.135.149/32 192.168.0.0/22 10.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  34. mailbox_size_limit = 0
  35. message_size_limit = 104857600
  36. recipient_delimiter = +
  37. inet_interfaces = all
  38.  
  39. # TLS parameters
  40. #smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  41. #smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  42. smtpd_tls_CAfile = /etc/ssl/mx/Certum/CA.cer
  43. smtpd_tls_cert_file=/etc/ssl/mx/Certum/server.pem
  44. smtpd_tls_key_file=/etc/ssl/mx/Certum/private.key
  45. smtpd_use_tls=yes
  46.  
  47. # Virtual Transport
  48. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  49. virtual_alias_maps =
  50. proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
  51. proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf,
  52. proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_catchall_maps.cf
  53. virtual_mailbox_maps =
  54. proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf,
  55. proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_mailbox_maps.cf
  56. virtual_mailbox_base = /var/vmail
  57. virtual_minimum_uid = 999
  58. virtual_uid_maps = static:999
  59. virtual_gid_maps = static:8
  60. virtual_transport = dovecot
  61. dovecot_destination_recipient_limit = 1
  62.  
  63. #transport_maps = hash:/etc/postfix/transport
  64. #virtual_transport = virtual
  65.  
  66.  
  67. # SASL
  68. smtpd_sasl_auth_enable = yes
  69. smtpd_sasl_type = dovecot
  70. smtpd_sasl_path = private/auth
  71. broken_sasl_auth_clients = yes
  72. smtpd_sasl_exceptions_networks = $mynetworks
  73.  
  74. ## spam
  75.  
  76. smtpd_sender_restrictions =
  77. reject_non_fqdn_sender,
  78. reject_unknown_sender_domain,
  79. smtpd_recipient_restrictions =
  80. permit_sasl_authenticated,
  81. permit_mynetworks,
  82. reject_unauth_destination,
  83. reject_invalid_hostname,
  84. reject_unauth_pipelining,
  85. reject_non_fqdn_sender,
  86. reject_non_fqdn_recipient,
  87. reject_non_fqdn_hostname,
  88. reject_unknown_recipient_domain,
  89. reject_rbl_client zem.spamhaus.org,
  90. reject_rbl_client bl.spamcop.net,
  91. reject_rbl_client cbl.abuseat.org,
  92. permit
  93.  
  94. ### new auth
  95. smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
  96. smtpd_sasl_security_options = noanonymous
  97. smtpd_tls_auth_only = yes
  98.  
  99. # amavis
  100. content_filter = smtp-amavis:[127.0.0.1]:10024
  101. receive_override_options = no_address_mappings
  102.  
  103. # copy all mail to admin
  104.  
  105. always_bcc = store@vsi.md
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement