Advertisement
Guest User

Untitled

a guest
Apr 12th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. cat /etc/postfix/main.cf
  2. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  3.  
  4.  
  5. # Debian specific: Specifying a file name will cause the first
  6. # line of that file to be used as the name. The Debian default
  7. # is /etc/mailname.
  8. #myorigin = /etc/mailname
  9.  
  10. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  11. biff = no
  12.  
  13. # appending .domain is the MUA's job.
  14. append_dot_mydomain = no
  15.  
  16. # Uncomment the next line to generate "delayed mail" warnings
  17. #delay_warning_time = 4h
  18.  
  19. readme_directory = no
  20.  
  21. # TLS parameters
  22. smtpd_tls_cert_file = /etc/ssl/certs/iRedMail.crt
  23. smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
  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. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  29. # information on enabling SSL in the smtp client.
  30.  
  31. myhostname = mail.mydomain.ru
  32. alias_maps = hash:/etc/postfix/aliases
  33. alias_database = hash:/etc/postfix/aliases
  34. myorigin = mail.mydomain.ru
  35. mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
  36. relayhost =
  37. mynetworks = 127.0.0.0/8
  38. mailbox_command = /usr/lib/dovecot/deliver
  39. mailbox_size_limit = 0
  40. recipient_delimiter = +
  41. inet_interfaces = all
  42. inet_protocols = all
  43. virtual_alias_domains =
  44. allow_percent_hack = no
  45. swap_bangpath = no
  46. mydomain = mydomain.ru
  47. mynetworks_style = host
  48. smtpd_data_restrictions = reject_unauth_pipelining
  49. smtpd_reject_unlisted_recipient = yes
  50. smtpd_reject_unlisted_sender = yes
  51. smtpd_tls_protocols = !SSLv2 !SSLv3
  52. smtp_tls_protocols = !SSLv2 !SSLv3
  53. lmtp_tls_protocols = !SSLv2 !SSLv3
  54. smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
  55. smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
  56. lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
  57. smtp_tls_security_level = may
  58. smtp_tls_CAfile = $smtpd_tls_CAfile
  59. smtp_tls_loglevel = 0
  60. smtp_tls_note_starttls_offer = yes
  61. smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
  62. delay_warning_time = 0h
  63. maximal_queue_lifetime = 4h
  64. bounce_queue_lifetime = 4h
  65. proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
  66. smtp_data_init_timeout = 240s
  67. smtp_data_xfer_timeout = 600s
  68. smtpd_helo_required = yes
  69. smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
  70. queue_run_delay = 300s
  71. minimal_backoff_time = 300s
  72. maximal_backoff_time = 4000s
  73. enable_original_recipient = no
  74. disable_vrfy_command = yes
  75. home_mailbox = Maildir/
  76. allow_min_user = no
  77. message_size_limit = 15728640
  78. virtual_minimum_uid = 2000
  79. virtual_uid_maps = static:2000
  80. virtual_gid_maps = static:2000
  81. virtual_mailbox_base = /var/vmail
  82. transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
  83. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
  84. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
  85. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
  86. sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
  87. recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
  88. relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
  89. smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
  90. smtpd_sasl_auth_enable = yes
  91. smtpd_sasl_local_domain =
  92. broken_sasl_auth_clients = yes
  93. smtpd_sasl_security_options = noanonymous
  94. smtpd_tls_auth_only = yes
  95. smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  96. smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031,
  97. smtpd_tls_security_level = may
  98. smtpd_tls_loglevel = 0
  99. smtpd_tls_CAfile = /etc/ssl/certs/iRedMail.crt
  100. tls_random_source = dev:/dev/urandom
  101. virtual_transport = dovecot
  102. dovecot_destination_recipient_limit = 1
  103. smtpd_sasl_type = dovecot
  104. smtpd_sasl_path = private/dovecot-auth
  105. content_filter = smtp-amavis:[127.0.0.1]:10024
  106. smtp-amavis_destination_recipient_limit = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement