Advertisement
Guest User

Untitled

a guest
Apr 30th, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. command_directory = /usr/sbin
  2. daemon_directory = /usr/libexec/postfix
  3. data_directory = /var/lib/postfix
  4. mail_owner = postfix
  5. myhostname = host.mydomain.tld
  6. mydomain = mydomain.tld
  7. myorigin = mydomain.tld
  8. unknown_local_recipient_reject_code = 1
  9. recipient_delimiter = +
  10. mail_spool_directory = /var/mail
  11. debug_peer_level = 2
  12. debugger_command =
  13. PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  14. ddd $daemon_directory/$process_name $process_id & sleep 5
  15. sendmail_path = /usr/sbin/sendmail
  16. newaliases_path = /usr/bin/newaliases
  17. mailq_path = /usr/bin/mailq
  18. setgid_group = postdrop
  19. html_directory = no
  20. manpage_directory = /usr/share/man
  21. sample_directory = /etc/postfix
  22. readme_directory = no
  23. inet_protocols = ipv4
  24. meta_directory = /etc/postfix
  25. shlib_directory = /usr/lib64/postfix/${mail_version}
  26. home_mailbox = .maildir/
  27. virtual_transport = dovecot
  28. smtpd_sasl_auth_enable = yes
  29. smtpd_sasl_type = dovecot
  30. smtpd_sasl_path = private/auth
  31. virtual_alias_maps = mysql:/etc/postfix/sql_virtual_alias_maps.cf
  32. virtual_mailbox_domains = mysql:/etc/postfix/sql_virtual_domain_maps.cf
  33. virtual_mailbox_maps = mysql:/etc/postfix/sql_virtual_mailbox_maps.cf
  34. local_recipient_maps = $virtual_mailbox_maps
  35. smtpd_sender_restrictions = reject_non_fqdn_sender
  36. smtpd_reject_unlisted_sender = yes
  37. smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_recipient,permit_sasl_authenticated,reject_unauth_destination
  38. compatibility_level = 2
  39. virtual_uid_maps = static:5000
  40. virtual_gid_maps = static:5000
  41. virtual_mailbox_base = /var/mail
  42. virtual_transport = dovecot
  43. smtpd_tls_security_level=may
  44. smtpd_tls_cert_file=/path/to/fullchain.pem
  45. smtpd_tls_key_file=/path/to/privkey.pem
  46. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  47. smtp_tls_security_level=may
  48. smtpd_tls_cert_file=/path/to/fullchain.pem
  49. smtpd_tls_key_file=/path/to/privkey.pem
  50. smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
  51. smtp_tls_mandatory_ciphers=high
  52. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  53. smtpd_tls_dh1024_param_file = /path/to/dh_1024.pem
  54. smtpd_tls_dh512_param_file = /path/to/dh_512.pem
  55. #smtpd_tls_eecdh_grade = strong
  56. smtpd_tls_eecdh_grade = ultra
  57. tls_preempt_cipherlist = yes
  58. smtpd_tls_loglevel = 1
  59. smtp_tls_loglevel = 1
  60. smtpd_helo_required = yes
  61. disable_vrfy_command = yes
  62. smtpd_banner = $myhostname ESMTP NO UCE
  63. biff = no
  64. default_process_limit = 20
  65. maximal_queue_lifetime = 1h
  66. bounce_queue_lifetime = 1h
  67. maximal_backoff_time = 15m
  68. minimal_backoff_time = 5m
  69. queue_run_delay = 5m
  70. smtpd_milters = inet:localhost:11332
  71. non_smtpd_milters = inet:localhost:11332
  72. milter_protocol = 6
  73. milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
  74. milter_default_action = accept
  75. smtpd_relay_restrictions = reject_non_fqdn_recipient
  76. reject_unknown_recipient_domain
  77. permit_mynetworks
  78. reject_unauth_destination
  79. smtpd_client_restrictions = permit_mynetworks
  80. check_client_access hash:/etc/postfix/without_ptr
  81. smtpd_helo_required = yes
  82. smtpd_helo_restrictions = permit_mynetworks
  83. reject_invalid_helo_hostname
  84. reject_non_fqdn_helo_hostname
  85. reject_unknown_helo_hostname
  86. smtpd_data_restrictions = reject_unauth_pipelining
  87. reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_mynetworks,permit_sasl_authenticated,reject
  88. postscreen_access_list = permit_mynetworks
  89. cidr:/etc/postfix/postscreen_access
  90. postscreen_blacklist_action = drop
  91. postscreen_greet_action = drop
  92. postscreen_dnsbl_threshold = 2
  93. postscreen_dnsbl_sites = ix.dnsbl.manitu.net*2
  94. zen.spamhaus.org*2
  95. postscreen_dnsbl_action = drop
  96. mailbox_size_limit = 0
  97. message_size_limit = 52428800
  98. append_dot_mydomain = no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement