Guest User

Untitled

a guest
Jan 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. alias_maps = hash:/etc/aliases
  2. compatibility_level = 2
  3. local_recipient_maps = $alias_maps
  4. mydestination = localhost.$mydomain, localhost
  5. mydomain = $myhostname
  6. relay_domains = $mydestination, hash:/etc/postfix/relay
  7. setgid_group = maildrop
  8. smtpd_helo_required = yes
  9. smtpd_helo_restrictions = permit_sasl_authenticated, reject_unknown_hostname
  10. smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, reject_unknown_client, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unverified_recipient
  11. smtpd_relay_restrictions = permit_sasl_authenticated, reject_unauth_destination, reject_unknown_client, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unverified_recipient
  12. smtpd_sasl_auth_enable = yes
  13. smtpd_sasl_local_domain = $myhostname
  14. smtpd_sasl_path = private/auth
  15. smtpd_sasl_type = dovecot
  16. smtpd_sender_restrictions = permit_sasl_authenticated, reject_unauth_destination, reject_unknown_client, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unverified_recipient
  17. strict_rfc821_envelopes = yes
  18. virtual_alias_domains = $myhostname
  19. virtual_alias_maps = hash:/etc/postfix/virtual
  20. virtual_gid_maps = static:303
  21. virtual_mailbox_base = /srv/vmail
  22. virtual_mailbox_domains = $myhostname, subdom.$myhostname
  23. virtual_mailbox_lock = fcntl
  24. virtual_minimum_uid = 303
  25. virtual_transport = lmtp:unix:private/dovecot-lmtp
  26. virtual_uid_maps = static:303
  27.  
  28. postmaster@example.ua user@example.ua
  29.  
  30. NOQUEUE: reject: RCPT from forward7m.cmail.yandex.net[5.255.216.200]: 450 4.1.1 <postmaster@example.ua>: Recipient address rejected: unverified address: host example.ua[private/dovecot-lmtp] said: 550 5.1.1 <postmaster@example.ua> User doesn't exist: postmaster@example.ua (in reply to RCPT TO command); from=<user@yandex.ua> to=<postmaster@example.ua> proto=ESMTP helo=<forward7m.cmail.yandex.net>
  31.  
  32. compatibility_level = 2
  33. stress = yes
  34. biff = no
  35. disable_vrfy_command = yes
  36. strict_rfc821_envelopes = yes
  37.  
  38. myhostname = example.ua
  39. mydomain = $myhostname
  40. mydestination = localhost.$mydomain, localhost
  41. inet_interfaces = $myhostname, localhost
  42.  
  43. smtpd_recipient_restrictions = reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unknown_helo_hostname, reject_unknown_client_hostname, reject_rbl_client zen.spamhaus.org
  44. smtpd_relay_restrictions = permit_inet_interfaces, permit_sasl_authenticated, reject_unauth_destination
  45. smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce
  46. smtpd_etrn_restrictions = reject
  47.  
  48. smtp_use_tls = yes
  49. smtp_enforce_tls = yes
  50. smtp_tls_security_level = encrypt
  51. smtp_helo_timeout = 10s
  52. smtp_rcpt_timeout = 10s
  53. smtp_tls_CAfile = /etc/ssl/ca-bundle.pem
  54. smtp_tls_CApath = /etc/ssl/certs
  55. smtp_tls_cert_file = /etc/apache2/ssl.crt/example.ua.crt
  56. smtp_tls_key_file = /etc/apache2/ssl.key/example.ua.key
  57. smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache
  58. smtp_tls_session_cache_timeout = 1d
  59.  
  60. smtpd_use_tls = yes
  61. smtpd_enforce_tls = yes
  62. smtpd_helo_required = yes
  63. smtpd_tls_auth_only = yes
  64. smtpd_tls_security_level = encrypt
  65. smtpd_recipient_limit = 25
  66. smtpd_reject_unlisted_recipient = yes
  67. smtpd_reject_unlisted_sender = yes
  68. smtpd_sasl_auth_enable = yes
  69. smtpd_sasl_local_domain = $myhostname
  70. smtpd_sasl_path = private/auth
  71. smtpd_sasl_type = dovecot
  72. smtpd_tls_CAfile = /etc/ssl/ca-bundle.pem
  73. smtpd_tls_CApath = /etc/ssl/certs
  74. smtpd_tls_cert_file = /etc/apache2/ssl.crt/example.ua.crt
  75. smtpd_tls_key_file = /etc/apache2/ssl.key/example.ua.key
  76. smtpd_tls_received_header = yes
  77. smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
  78. smtpd_tls_session_cache_timeout = 1d
  79.  
  80. virtual_alias_domains =
  81. virtual_alias_maps = hash:/etc/postfix/virtual
  82. virtual_mailbox_domains = $myhostname, subdomain.$myhostname
  83.  
  84. virtual_mailbox_base = /srv/vmail
  85. virtual_mailbox_lock = fcntl
  86. virtual_minimum_uid = 303
  87. virtual_uid_maps = static:303
  88. virtual_gid_maps = static:303
  89. virtual_transport = lmtp:unix:private/dovecot-lmtp
  90.  
  91. # example.ua
  92. postmaster@example.ua user@example.ua
  93. abuse@example.ua user@example.ua
  94.  
  95. # subdomain.example.ua
  96. postmaster@subdomain.example.ua user@example.ua
  97. abuse@subdomain.example.ua user@example.ua
Add Comment
Please, Sign In to add comment