daily pastebin goal
92%
SHARE
TWEET

Untitled

a guest Feb 7th, 2019 7 in 3 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3. header_checks = regexp:/etc/postfix/header_checks
  4.  
  5. #testowe
  6. disable_vrfy_command = yes
  7. allow_percent_hack = no
  8. swap_bangpath = no
  9. policyd-spf_time_limit = 3600
  10.  
  11. # Debian specific:  Specifying a file name will cause the first
  12. # line of that file to be used as the name.  The Debian default
  13. # is /etc/mailname.
  14. myorigin = /etc/mailname
  15. #myorigin = DOMENA.pl
  16.  
  17. #smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  18. biff = no
  19.  
  20. # appending .domain is the MUA's job.
  21. append_dot_mydomain = no
  22.  
  23. # Uncomment the next line to generate "delayed mail" warnings
  24. delay_warning_time = 4h
  25.  
  26. readme_directory = no
  27.  
  28. # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
  29. # fresh installs.
  30. compatibility_level = 2
  31.  
  32. smtpd_helo_required = yes
  33. #smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:/etc/postfix/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, check_helo_access regexp:/etc/postfix/blacklist_helo
  34.  
  35. # TLS parameters
  36. #smtpd_tls_cert_file = /etc/ssl/certs/mailserver.pem
  37. #smtpd_tls_key_file = /etc/ssl/private/mailserver.pem
  38. smtpd_tls_cert_file = /etc/letsencrypt/live/mail.DOMENA.pl/fullchain.pem
  39. smtpd_tls_key_file = /etc/letsencrypt/live/mail.DOMENA.pl/privkey.pem
  40. smtpd_use_tls=yes
  41. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  42. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  43.  
  44. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  45. # information on enabling SSL in the smtp client.
  46.  
  47. smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination
  48.  
  49. smtpd_client_restrictions = permit_mynetworks,
  50.         permit_sasl_authenticated,
  51.         reject_unauth_destination,
  52.         reject_rbl_client zen.spamhaus.org,
  53.     reject_rbl_client dbl.spamhaus.org,
  54.     reject_rbl_client sbl.spamhaus.org,
  55.     reject_rbl_client pbl.spamhaus.org,
  56.         reject_rbl_client bl.spamcop.net,
  57.         reject_rbl_client cbl.abuseat.org,
  58.     reject_rbl_client sbl-xbl.spamhaus.org,
  59.     reject_rbl_client b.barracudacentral.org,
  60. #   reject_rbl_client dnsbl.sorbs.net,
  61.         permit
  62.  
  63. #dodane
  64. smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_checks,
  65.  permit_mynetworks,
  66.  permit_sasl_authenticated,
  67.  reject_unauth_destination,
  68.  check_policy_service unix:private/policyd-spf,
  69.  reject_rbl_client dynamic.rbl.tld,
  70.  reject_rhsbl_recipient revdns.rbl.tld,
  71.  reject_rhsbl_helo revdns.rbl.tld,
  72.  reject_unknown_recipient_domain,
  73.  reject_unauth_pipelining,
  74.  #check_policy_service inet:127.0.0.1:60000,
  75.  permit
  76.  
  77. myhostname = mail.DOMENA.pl
  78. alias_maps = hash:/etc/aliases
  79. alias_database = hash:/etc/aliases
  80. myorigin = /etc/mailname
  81. mydestination = $myhostname, localhost.localdomain, localhost
  82. relayhost =  
  83. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  84. mailbox_size_limit = 0
  85. recipient_delimiter = +
  86. inet_interfaces = all
  87. #inet_protocols = all
  88. inet_protocols=ipv4
  89.  
  90. virtual_transport = lmtp:unix:private/dovecot-lmtp
  91.  
  92.  
  93. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
  94. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  95. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
  96. smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3
  97. smtpd_sasl_type = dovecot
  98. smtpd_sasl_path = private/auth
  99. smtpd_sasl_auth_enable = yes
  100. smtpd_tls_security_level = may
  101. smtpd_tls_auth_only = yes
  102.  
  103.  
  104. #virtual_mailbox_base = /var/vmail/
  105.  
  106. milter_default_action = accept
  107. milter_protocol = 6
  108. smtpd_milters = inet:localhost:8891, inet:localhost:54321
  109. non_smtpd_milters = inet:localhost:8891, inet:localhost:54321
  110. #smtpd_milters = local:/opendkim/opendkim.sock
  111. #non_smtpd_milters = local:/opendkim/opendkim.sock
  112.  
  113. content_filter = smtp-amavis:[127.0.0.1]:10024
  114.  
  115. #spamassassin_destination_recipient_limit = 1
  116. #mailbox_command = /usr/lib/dovecot/deliver
  117.  
  118. mailbox_command = /usr/lib/dovecot/dovecot-lda
  119.  
  120. #recipient_bcc_maps = mysql:/etc/postfix/mysql_vacation.cf
  121.  
  122.  
  123. #transport_maps = hash:/etc/postfix/transport
  124. #dovecot_destination_recipient_limit = 1
  125.  
  126.  
  127. mailbox_transport = lmtp:unix:private/dovecot-lmtp
  128.  
  129. smtpd_delay_reject=yes
  130. #smtpd_delay_reject = no;
  131. #message_size_limit = 52428800
  132. message_size_limit = 104857600
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top