Guest User

Untitled

a guest
Apr 20th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. # postfix config file
  2.  
  3. # uncomment for debugging if needed
  4. #soft_bounce=yes
  5.  
  6. # postfix main
  7. mail_owner = postfix
  8. setgid_group = postdrop
  9. delay_warning_time = 4
  10.  
  11. # postfix paths
  12. html_directory = no
  13. command_directory = /usr/sbin
  14. daemon_directory = /usr/libexec/postfix
  15. queue_directory = /var/spool/postfix
  16. sendmail_path = /usr/sbin/sendmail.postfix
  17. newaliases_path = /usr/bin/newaliases.postfix
  18. mailq_path = /usr/bin/mailq.postfix
  19. manpage_directory = /usr/share/man
  20.  
  21. # network settings
  22. inet_interfaces = all
  23. mydomain = domaine.fr
  24. myhostname = domaine.fr
  25. mynetworks = $config_directory/mynetworks
  26. mydestination = domaine.fr, localhost.domaine.fr, localhost
  27. relay_domains = proxy:mysql:/etc/postfix/mysql-relay_domains_maps.cf
  28.  
  29. # mail delivery
  30. recipient_delimiter = +
  31.  
  32. # mappings
  33. alias_maps = hash:/etc/aliases
  34. alias_database = hash:/etc/aliases
  35. transport_maps = hash:/etc/postfix/transport
  36. #local_recipient_maps =
  37.  
  38. # virtual setup
  39. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_alias_default_maps.cf, proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf, regexp:/etc/postfix/virtual_regexp
  40. virtual_mailbox_base = /var/vmail
  41. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains_maps.cf
  42. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf, proxy:mysql:/etc/postfix/mysql-virtual_alias_pipe_maps.cf
  43. virtual_minimum_uid = 101
  44. virtual_uid_maps = static:101
  45. virtual_gid_maps = static:12
  46. virtual_transport = dovecot
  47. dovecot_destination_recipient_limit = 1
  48.  
  49. # debugging
  50. debug_peer_level = 2
  51. debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  52. xxgdb $daemon_directory/$process_name $process_id & sleep 5
  53.  
  54. # authentication
  55. smtpd_sasl_auth_enable = yes
  56. smtpd_sasl_security_options = noanonymous
  57. smtpd_sasl_local_domain = $myhostname
  58. broken_sasl_auth_clients = yes
  59. smtpd_sasl_type = dovecot
  60. smtpd_sasl_path = private/auth
  61.  
  62. # tls config
  63. smtp_use_tls = yes
  64. smtpd_use_tls = yes
  65. smtpd_tls_security_level = may
  66. smtpd_tls_loglevel = 1
  67. smtpd_tls_received_header = yes
  68. smtpd_tls_session_cache_timeout = 3600s
  69. tls_random_source = dev:/dev/urandom
  70. smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
  71. # Change mail.example.com.* to your host name
  72. smtpd_tls_key_file = /etc/pki/tls/private/hostname.key
  73. smtpd_tls_cert_file = /etc/pki/tls/certs/hostname.bundle
  74.  
  75. # rules restrictions
  76. smtpd_client_restrictions = reject_unknown_client
  77. smtpd_helo_restrictions =
  78. smtpd_sender_restrictions =
  79. smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_client_access hash:/etc/postfix/sender_whitelist, check_client_access hash:/etc/postfix/sender_blacklist, reject_unauth_destination, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net
  80.  
  81. smtpd_helo_required = yes
  82. unknown_local_recipient_reject_code = 550
  83. disable_vrfy_command = yes
  84. smtpd_data_restrictions = reject_unauth_pipelining
  85.  
  86. # Other options
  87. # email size limit ~20Meg
  88. message_size_limit = 204800000
  89. mailbox_size_limit = 2048000000
  90.  
  91. # Limit 500 emails per hour per email address
  92. anvil_rate_time_unit = 3600s
  93. smtpd_client_message_rate_limit = 500
  94.  
  95. # Vacation Scripts
  96. vacation_destination_recipient_limit = 1
  97. recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql-virtual_vacation.cf
  98. smtpd_milters = inet:127.0.0.1:8891
  99. non_smtpd_milters = $smtpd_milters
  100. milter_default_action = accept
  101. milter_protocol = 2
Advertisement
Add Comment
Please, Sign In to add comment