Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 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 = /usr/share/doc/postfix
  19.  
  20. # TLS parameters
  21. smtpd_tls_cert_file = /etc/postfix/smtpd.cert
  22. smtpd_tls_key_file = /etc/postfix/smtpd.key
  23. smtpd_use_tls = yes
  24. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  25. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  26.  
  27. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  28. # information on enabling SSL in the smtp client.
  29.  
  30. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  31. myhostname = mail.0network.e
  32. alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  33. alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  34. myorigin = /etc/mailname
  35. mydestination = localhost, localhost.localdomain
  36. mydomain = mail.0network.eu
  37. relayhost =
  38. mynetworks = 127.0.0.0/8 [::1]/128, 188.213.31.155
  39. mailbox_size_limit = 0
  40. recipient_delimiter = +
  41. inet_interfaces = all
  42. html_directory = /usr/share/doc/postfix/html
  43. virtual_alias_domains =
  44. virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
  45. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  46. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  47. virtual_mailbox_base = /var/vmail
  48. virtual_uid_maps = mysql:/etc/postfix/mysql-virtual_uids.cf
  49. virtual_gid_maps = mysql:/etc/postfix/mysql-virtual_gids.cf
  50. sender_bcc_maps = proxy:mysql:/etc/postfix/mysql-virtual_outgoing_bcc.cf
  51. inet_protocols = all
  52. smtpd_sasl_auth_enable = yes
  53. broken_sasl_auth_clients = yes
  54. smtpd_sasl_authenticated_header = yes
  55. smtpd_restriction_classes = greylisting
  56. greylisting = check_policy_service inet:127.0.0.1:10023
  57. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
  58. smtpd_tls_security_level = may
  59. smtpd_data_restrictions = reject_unauth_pipelining
  60. smtpd_delay_reject = yes
  61. transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
  62. relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
  63. relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
  64. smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf
  65. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $sender_bcc_maps $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps
  66. smtpd_helo_required = yes
  67. policy-spf_time_limit = 3600s
  68. smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:/etc/postfix/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, reject_invalid_helo_hostname, reject_unknown_helo_hostname, check_helo_access regexp:/etc/postfix/blacklist_helo
  69. smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/tag_as_originating.re , permit_mynetworks, permit_sasl_authenticated, check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf, check_sender_access regexp:/etc/postfix/tag_as_foreign.re
  70. smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
  71. smtpd_client_message_rate_limit = 100
  72. strict_rfc821_envelopes = yes
  73. maildrop_destination_concurrency_limit = 1
  74. maildrop_destination_recipient_limit = 1
  75. virtual_transport = dovecot
  76. header_checks = regexp:/etc/postfix/header_checks
  77. mime_header_checks = regexp:/etc/postfix/mime_header_checks
  78. nested_header_checks = regexp:/etc/postfix/nested_header_checks
  79. body_checks = regexp:/etc/postfix/body_checks
  80. owner_request_special = no
  81. smtp_tls_security_level = may
  82. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
  83. smtpd_tls_protocols = !SSLv2,!SSLv3
  84. smtp_tls_protocols = !SSLv2,!SSLv3
  85. smtpd_tls_exclude_ciphers = RC4, aNULL
  86. smtp_tls_exclude_ciphers = RC4, aNULL
  87. dovecot_destination_recipient_limit = 1
  88. smtpd_sasl_type = dovecot
  89. smtpd_sasl_path = private/auth
  90. message_size_limit = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement