Advertisement
Guest User

postfix main.cf

a guest
Dec 7th, 2013
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 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.  
  10. # Added for test
  11. #smtpd_client_restrictions = permit_mynetworks, reject
  12.  
  13. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  14. biff = no
  15.  
  16. # appending .domain is the MUA's job.
  17. append_dot_mydomain = no
  18.  
  19. # Uncomment the next line to generate "delayed mail" warnings
  20. #delay_warning_time = 4h
  21.  
  22. readme_directory = no
  23.  
  24. # TLS parameters
  25. smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
  26. smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
  27. smtpd_use_tls=yes
  28. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  29. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  30.  
  31. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  32. # information on enabling SSL in the smtp client.
  33.  
  34. myhostname = example.info
  35. alias_maps = hash:/etc/postfix/aliases
  36. alias_database = hash:/etc/postfix/aliases
  37. mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
  38. relayhost =
  39. mynetworks = 127.0.0.0/8
  40. mailbox_command = /usr/lib/dovecot/deliver
  41. mailbox_size_limit = 0
  42. recipient_delimiter = +
  43. inet_interfaces = all
  44. inet_protocols = ipv4
  45. virtual_alias_domains =
  46. myorigin = example.info
  47. mydomain = example.info
  48. mynetworks_style = subnet
  49. smtpd_data_restrictions = reject_unauth_pipelining
  50. smtpd_reject_unlisted_recipient = yes
  51. smtpd_reject_unlisted_sender = yes
  52. smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_sender_login_mismatch, reject_unknown_sender_domain
  53. delay_warning_time = 0h
  54. maximal_queue_lifetime = 1d
  55. bounce_queue_lifetime = 1d
  56. 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
  57. smtp_data_init_timeout = 240s
  58. smtp_data_xfer_timeout = 600s
  59. smtpd_helo_required = yes
  60. smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
  61. queue_run_delay = 300s
  62. minimal_backoff_time = 300s
  63. maximal_backoff_time = 4000s
  64. enable_original_recipient = no
  65. disable_vrfy_command = yes
  66. home_mailbox = Maildir/
  67. allow_min_user = no
  68. message_size_limit = 15728640
  69. virtual_minimum_uid = 1000
  70. virtual_uid_maps = static:1000
  71. virtual_gid_maps = static:1000
  72. virtual_mailbox_base = /var/vmail
  73. transport_maps = proxy:ldap:/etc/postfix/ldap/transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap/transport_maps_domain.cf
  74. virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf, proxy:ldap:/etc/postfix/ldap/catchall_maps.cf
  75. virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_domains.cf
  76. virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_maps.cf
  77. sender_bcc_maps = proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_domain.cf
  78. recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_domain.cf
  79. relay_domains = $mydestination, proxy:ldap:/etc/postfix/ldap/relay_domains.cf
  80. smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf
  81. smtpd_sasl_auth_enable = yes
  82. smtpd_sasl_local_domain =
  83. broken_sasl_auth_clients = yes
  84. smtpd_sasl_security_options = noanonymous
  85. smtpd_sasl_authenticated_header = no
  86. 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, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
  87. smtpd_tls_security_level = may
  88. smtpd_tls_loglevel = 0
  89. smtpd_tls_CAfile = /etc/ssl/certs/iRedMail_CA.pem
  90. tls_random_source = dev:/dev/urandom
  91. # Uncomment below line to enable policyd sender throttle.
  92. smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10032
  93. virtual_transport = dovecot
  94. dovecot_destination_recipient_limit = 1
  95. smtpd_sasl_type = dovecot
  96. smtpd_sasl_path = ./dovecot-auth
  97. content_filter = smtp-amavis:[127.0.0.1]:10024
  98. smtp-amavis_destination_recipient_limit = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement