Advertisement
Justin_SE

main.cf

Feb 15th, 2016
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. soft_bounce = no
  2. queue_directory = /var/spool/postfix
  3. command_directory = /usr/sbin
  4. daemon_directory = /usr/libexec/postfix
  5. mail_owner = postfix
  6.  
  7. # The default_privs parameter specifies the default rights used by
  8. # the local delivery agent for delivery to external file or command.
  9. # These rights are used in the absence of a recipient user context.
  10. # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
  11. #
  12. #default_privs = nobody
  13.  
  14. myhostname = mail.mycompany.com
  15. mydomain = mycompany.com
  16.  
  17. #Next Line is added from shisaa.jp config
  18. myorigin = mycompany.com
  19.  
  20. mydestination = $myhostname, localhost
  21. unknown_local_recipient_reject_code = 550
  22.  
  23. mynetworks_style = host
  24. mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
  25. local_destination_recipient_limit = 300
  26. local_destination_concurrency_limit = 5
  27. recipient_delimiter=+
  28.  
  29. virtual_alias_maps = hash:/etc/postfix/virtual
  30.  
  31. header_checks = regexp:/etc/postfix/header_checks
  32. mime_header_checks = pcre:/etc/postfix/body_checks
  33. smtpd_banner = $myhostname
  34.  
  35. debug_peer_level = 2
  36. debugger_command =
  37. PATH=/bin:/usr/bin:/usr/bin:/usr/X11R6/bin
  38. xxgdb $daemon_directory/$process_name $process_id & sleep 5
  39.  
  40. sendmail_path = /usr/sbin/sendmail.postfix
  41. newaliases_path = /usr/bin/newaliases.postfix
  42. mailq_path = /usr/bin/mailq.postfix
  43. setgid_group = postdrop
  44. html_directory = no
  45. manpage_directory = /usr/share/man
  46. sample_directory = /usr/share/doc/postfix-2.6.6/samples
  47. readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
  48.  
  49. smtpd_tls_security_level = may
  50. smtpd_tls_received_header = yes
  51. smtpd_tls_auth_only = no
  52.  
  53. ## loglevel 3 or 4 can be used during troubleshooting ##
  54. smtpd_tls_loglevel = 1
  55.  
  56. ## server will announce STARTTLS ##
  57. smtp_tls_note_starttls_offer = yes
  58.  
  59. smtpd_tls_session_cache_timeout = 3600s
  60.  
  61. smtpd_sasl_auth_enable = yes
  62. smtpd_sasl_application_name = smtpd
  63. smtpd_recipient_restrictions = permit_sasl_authenticated,
  64. permit_mynetworks,
  65. reject_unauth_destination,
  66. reject_invalid_hostname,
  67. reject_non_fqdn_hostname,
  68. reject_non_fqdn_sender,
  69. reject_non_fqdn_recipient,
  70. reject_unknown_sender_domain,
  71. reject_unknown_recipient_domain,
  72. reject_unauth_pipelining,
  73. reject_rbl_client zen.spamhaus.org,
  74. reject_rbl_client bl.spamcop.net,
  75. reject_rbl_client dnsbl.njabl.org,
  76. reject_rbl_client dnsbl.sorbs.net,
  77. permit
  78.  
  79. smtpd_sasl_security_options = noanonymous
  80. smtpd_sasl_local_domain =
  81. broken_sasl_auth_clients = yes
  82.  
  83. smtpd_helo_required = yes
  84.  
  85. #smtpd_tls_key_file = /etc/postfix/certs/key.pem
  86. #smtpd_tls_cert_file = /etc/postfix/certs/cert.pem
  87.  
  88. smtpd_tls_key_file = /etc/pki/tls/certs/mail.mycompany.com/mail.mycompany.com.key
  89. smtpd_tls_cert_file = /etc/pki/tls/certs/mail.mycompany.com/mail.mycompany.com_bundle.crt
  90.  
  91. smtpd_tls_CAfile = /etc/pki/tls/certs/mail.mycompany.com/mail.mycompany.com.pem
  92. stmp_tls_CAfile = $smtpd_tls_CAfile
  93.  
  94. local_recipient_maps =
  95. virtual_transport = dovecot
  96. dovecot_destination_recipient_limit = 1
  97. virtual_uid_maps = static:200
  98. virtual_gid_maps = static:1000
  99. transport_maps = pgsql:/etc/postfix/pgsql/transport.cf
  100. virtual_mailbox_base = /home/mail
  101. virtual_mailbox_maps = pgsql:/etc/postfix/pgsql/mailboxes.cf
  102. virtual_alias_maps = pgsql:/etc/postfix/pgsql/virtual.cf
  103. mydestination = $mydomain, $myhostname
  104.  
  105. content_filter = amavisfeed:[127.0.0.1]:10024
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement