Advertisement
Guest User

Untitled

a guest
Oct 30th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. # see /usr/share/postfix/main.cf.dist for a commented, fuller
  2. # version of this file.
  3.  
  4. # Do not change these directory settings - they are critical to Postfix
  5. # operation.
  6. command_directory = /usr/sbin
  7. daemon_directory = /usr/lib/postfix
  8. #program_directory = /usr/lib/postfix
  9. disable_vrfy_command = yes
  10.  
  11. myhostname = hobbiton.<domain>.no
  12. mydestination = $myhostname
  13. mynetworks = 192.168.9.0/24, 192.168.99.0/24, 127.0.0.0/8, 192.168.100.0/24
  14.  
  15. smtpd_banner = $myhostname ESMTP
  16. #smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  17. setgid_group = postdrop
  18. biff = no
  19.  
  20. # appending .domain is the MUA's job.
  21. append_dot_mydomain = no
  22.  
  23. alias_maps = hash:/etc/aliases
  24. alias_database = hash:/etc/aliases
  25.  
  26. virtual_mailbox_base = /var/spool/mail/virtual/
  27. virtual_uid_maps = static:102
  28. virtual_gid_maps = static:103
  29.  
  30. # removed
  31. transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
  32. #virtual_maps = mysql:/etc/postfix/virtual.cf
  33. #virtual_mailbox_maps = proxy:mysql:/etc/postfix/mailbox.cf
  34.  
  35. # added in the convertion from regular stupid db stuff to postfix admin
  36. # if anything breaks, comment out this and uncomment the previous paragraph
  37. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  38. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  39. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  40. virtual_transport = virtual
  41.  
  42. #alias_maps = hash:/var/lib/mailman/data/aliases
  43. #virtual_maps = hash:/var/lib/mailman/data/virtual-mailman
  44. #owner_request_special = no
  45.  
  46. # sasl related
  47. smtpd_sasl_type = dovecot
  48. smtpd_sasl_path = private/auth
  49. smtpd_sasl_auth_enable = yes
  50. smtpd_sasl_authenticated_header = yes
  51. broken_sasl_auth_clients = yes
  52.  
  53. # tls
  54. smtp_use_tls = yes
  55. smtp_tls_loglevel = 1
  56. smtp_bind_address6 = 2a00:e08:xxxx:xxxx:xxxx:xxxx
  57.  
  58. smtpd_use_tls = yes
  59. smtpd_tls_key_file = /etc/letsencrypt/live/mail.<domain>.no/privkey.pem
  60. smtpd_tls_cert_file = /etc/letsencrypt/live/mail.<domain>.no/cert.pem
  61. smtpd_tls_CAfile = /etc/letsencrypt/live/mail.<domain>.no/chain.pem
  62. smtpd_tls_loglevel = 1
  63. smtpd_tls_received_header = yes
  64. smtpd_tls_session_cache_timeout = 3600s
  65. smtpd_tls_security_level = may
  66. smtpd_tls_ciphers = high
  67. smtpd_tls_exclude_ciphers = aNULL, MD5, DES, 3DES, DES-CBC3-SHA, RC4-SHA, AES256-SHA, AES128-SHA
  68. tls_random_source = dev:/dev/urandom
  69.  
  70. home_mailbox = Maildir/
  71. soft_bounce = no
  72. message_size_limit = 102400000
  73. virtual_mailbox_limit = 102400001
  74. mailbox_size_limit = 102400001
  75.  
  76. # restrictions
  77. smtpd_recipient_restrictions =
  78. reject_unknown_sender_domain,
  79. reject_unknown_recipient_domain,
  80. permit_sasl_authenticated,
  81. permit_mynetworks,
  82. reject_invalid_helo_hostname,
  83. reject_unauth_destination,
  84. check_policy_service inet:127.0.0.1:10040,
  85. check_policy_service unix:private/policy-spf,
  86. permit
  87.  
  88. smtpd_restriction_classes = check_postgrey
  89. check_postgrey = check_policy_service inet:127.0.0.1:60000
  90.  
  91. smtpd_data_restrictions =
  92. reject_unauth_pipelining,
  93. permit
  94.  
  95. content_filter = amavis:[127.0.0.1]:10024
  96. receive_override_options = no_address_mappings
  97. #transport_maps = mysql:/etc/postfix/transport.cf
  98. smtpd_helo_required = yes
  99. #inet_protocols = ipv4
  100. inet_protocols = all
  101.  
  102. policy-spf_time_limit = 3600s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement