Advertisement
trupsalms

Untitled

May 3rd, 2022
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. # This file was automatically installed on 2022-05-02T14:37:30.062679
  2. inet_interfaces = all
  3. inet_protocols = all
  4. myhostname = mail.tits.com
  5. myorigin = $myhostname
  6. mydestination = $myhostname
  7. mynetworks = 127.0.0.0/8
  8. smtpd_banner = $myhostname ESMTP
  9. biff = no
  10. unknown_local_recipient_reject_code = 550
  11. unverified_recipient_reject_code = 550
  12.  
  13. # appending .domain is the MUA's job.
  14. append_dot_mydomain = no
  15.  
  16. readme_directory = no
  17.  
  18. mailbox_size_limit = 0
  19. message_size_limit = 11534336
  20. recipient_delimiter = +
  21.  
  22. alias_maps = hash:/etc/aliases
  23. alias_database = hash:/etc/aliases
  24.  
  25. ## Proxy maps
  26. proxy_read_maps =
  27. proxy:unix:passwd.byname
  28. proxy:mysql:/etc/postfix/sql-domains.cf
  29. proxy:mysql:/etc/postfix/sql-domain-aliases.cf
  30. proxy:mysql:/etc/postfix/sql-aliases.cf
  31. proxy:mysql:/etc/postfix/sql-relaydomains.cf
  32. proxy:mysql:/etc/postfix/sql-maintain.cf
  33. proxy:mysql:/etc/postfix/sql-relay-recipient-verification.cf
  34. proxy:mysql:/etc/postfix/sql-sender-login-map.cf
  35. proxy:mysql:/etc/postfix/sql-spliteddomains-transport.cf
  36. proxy:mysql:/etc/postfix/sql-transport.cf
  37.  
  38. ## TLS settings
  39. #
  40. smtpd_use_tls = yes
  41. smtpd_tls_auth_only = no
  42. smtpd_tls_CApath = /etc/ssl/certs
  43. cert = sanitized
  44. smtpd_tls_dh1024_param_file = ${config_directory}/dh2048.pem
  45. smtpd_tls_loglevel = 1
  46. smtpd_tls_session_cache_database = btree:$data_directory/smtpd_tls_session_cache
  47. smtpd_tls_security_level = may
  48. smtpd_tls_received_header = yes
  49.  
  50. # Disallow SSLv2 and SSLv3, only accept secure ciphers
  51. smtpd_tls_protocols = !SSLv2, !SSLv3
  52. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
  53. smtpd_tls_mandatory_ciphers = high
  54. smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5 , DES, ADH, RC4, PSD, SRP, 3DES, eNULL
  55. smtpd_tls_exclude_ciphers = aNULL, MD5 , DES, ADH, RC4, PSD, SRP, 3DES, eNULL
  56.  
  57. # Enable elliptic curve cryptography
  58. smtpd_tls_eecdh_grade = strong
  59.  
  60. # Use TLS if this is supported by the remote SMTP server, otherwise use plaintext.
  61. smtp_tls_CApath = /etc/ssl/certs
  62. smtp_tls_security_level = may
  63. smtp_tls_loglevel = 1
  64. smtp_tls_exclude_ciphers = EXPORT, LOW
  65.  
  66. ## Virtual transport settings
  67. #
  68. virtual_transport = lmtp:unix:private/dovecot-lmtp
  69.  
  70. virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql-domains.cf
  71. # Define the domain list as hash file or as list in the config file.
  72. virtual_alias_domains = proxy:mysql:/etc/postfix/sql-domain-aliases.cf
  73. virtual_alias_maps =
  74. # Define the domain list as hash file or as list in the config file.
  75. #virtual_alias_domains = hash:/etc/postfix/virtual_domains
  76. proxy:mysql:/etc/postfix/sql-aliases.cf
  77.  
  78. ## Relay domains
  79. #
  80. relay_domains =
  81. proxy:mysql:/etc/postfix/sql-relaydomains.cf
  82. transport_maps =
  83. hash:/etc/postfix/sender_map
  84. proxy:mysql:/etc/postfix/sql-transport.cf
  85. proxy:mysql:/etc/postfix/sql-spliteddomains-transport.cf
  86.  
  87. ## SASL authentication through Dovecot
  88. #
  89. smtpd_sasl_type = dovecot
  90. smtpd_sasl_path = private/auth
  91. smtpd_sasl_auth_enable = yes
  92. broken_sasl_auth_clients = yes
  93. smtpd_sasl_security_options = noanonymous
  94.  
  95. ## SMTP session policies
  96. #
  97.  
  98. # We require HELO to check it later
  99. smtpd_helo_required = yes
  100.  
  101. # We do not let others find out which recipients are valid
  102. disable_vrfy_command = yes
  103.  
  104. # MTA to MTA communication on Port 25. We expect (!) the other party to
  105. # specify messages as required by RFC 821.
  106. strict_rfc821_envelopes = yes
  107.  
  108. # Verify cache setup
  109. address_verify_map = proxy:btree:$data_directory/verify_cache
  110.  
  111. proxy_write_maps =
  112. $smtp_sasl_auth_cache_name
  113. $lmtp_sasl_auth_cache_name
  114. $address_verify_map
  115.  
  116. # OpenDKIM setup
  117. smtpd_milters = inet:127.0.0.1:12345
  118. non_smtpd_milters = inet:127.0.0.1:12345
  119. milter_default_action = accept
  120. milter_content_timeout = 30s
  121.  
  122. # List of authorized senders
  123. smtpd_sender_login_maps =
  124. proxy:mysql:/etc/postfix/sql-sender-login-map.cf
  125.  
  126. # Recipient restriction rules
  127. smtpd_recipient_restrictions =
  128. check_policy_service inet:127.0.0.1:9999
  129. permit_mynetworks
  130. permit_sasl_authenticated
  131. check_recipient_access
  132. proxy:mysql:/etc/postfix/sql-maintain.cf
  133. proxy:mysql:/etc/postfix/sql-relay-recipient-verification.cf
  134. reject_unverified_recipient
  135. reject_unauth_destination
  136. reject_non_fqdn_sender
  137. reject_non_fqdn_recipient
  138. reject_non_fqdn_helo_hostname
  139.  
  140. ## Postcreen settings
  141. #
  142. postscreen_access_list =
  143. permit_mynetworks
  144. cidr:/etc/postfix/postscreen_spf_whitelist.cidr
  145. postscreen_blacklist_action = enforce
  146.  
  147. # Use some DNSBL
  148. postscreen_dnsbl_sites =
  149. zen.spamhaus.org*3
  150. bl.spameatingmonkey.net*2
  151. bl.spamcop.net
  152. dnsbl.sorbs.net
  153. postscreen_dnsbl_threshold = 3
  154. postscreen_dnsbl_action = enforce
  155.  
  156. postscreen_greet_banner = Welcome, please wait...
  157. postscreen_greet_action = enforce
  158.  
  159. #postscreen_pipelining_enable = yes
  160. #postscreen_pipelining_action = enforce
  161.  
  162. #postscreen_non_smtp_command_enable = yes
  163. #postscreen_non_smtp_command_action = enforce
  164.  
  165. #postscreen_bare_newline_enable = yes
  166. #postscreen_bare_newline_action = enforce
  167.  
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement