Guest User

Untitled

a guest
Apr 16th, 2015
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3. # Debian specific: Specifying a file name will cause the first
  4. # line of that file to be used as the name. The Debian default
  5. # is /etc/mailname.
  6. #myorigin = /etc/mailname
  7.  
  8. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  9. biff = no
  10.  
  11. # appending .domain is the MUA's job.
  12. append_dot_mydomain = no
  13.  
  14. # Uncomment the next line to generate "delayed mail" warnings
  15. #delay_warning_time = 4h
  16.  
  17. readme_directory = no
  18.  
  19. # TLS parameters
  20. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  21. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  22. smtpd_use_tls=yes
  23. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  24. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  25.  
  26. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  27. # information on enabling SSL in the smtp client.
  28.  
  29. myhostname = darkmachine.org
  30. alias_maps = hash:/etc/aliases
  31. alias_database = hash:/etc/aliases
  32. myorigin = /etc/mailname
  33. mydestination = localhost
  34. relayhost =
  35. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  36. mailbox_size_limit = 0
  37. recipient_delimiter = +
  38. inet_interfaces = all
  39.  
  40. unknown_local_recipient_reject_code = 550
  41.  
  42. disable_vrfy_command = yes
  43. smtpd_delay_reject = yes
  44. smtpd_helo_required = yes
  45.  
  46. virtual_mailbox_base = /var/mail
  47. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  48. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  49. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  50.  
  51. virtual_minimum_uid = 8
  52. virtual_uid_maps = static:8
  53. virtual_gid_maps = static:8
  54.  
  55. virtual_transport = dovecot
  56. local_transport = virtual
  57. dovecot_destination_recipient_limit = 1
  58.  
  59. smtpd_sasl_auth_enable = yes
  60. smtpd_sasl_exceptions_networks = $mynetworks
  61. smtpd_sasl_security_options = noanonymous
  62. broken_sasl_auth_clients = yes
  63. smtpd_sasl_type = dovecot
  64. smtpd_sasl_path = private/auth
  65.  
  66. smtpd_helo_restrictions = reject_invalid_hostname, permit_mynetworks, reject_non_fqdn_hostname, reject_unknown_hostname, permit
  67.  
  68. smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
  69.  
  70. smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_pipelining, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, permit
  71.  
  72. smtpd_client_restrictions = reject_rbl_client list.dsbl.org, reject_rbl_client bl.spamcop.net, reject_unknown_client, check_policy_service inet:127.0.0.1:10023, permit
Advertisement
Add Comment
Please, Sign In to add comment