Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2013
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3.  
  4. # Debian specific: Specifying a file name will cause the first
  5. # line of that file to be used as the name. The Debian default
  6. # is /etc/mailname.
  7. #myorigin = /etc/mailname
  8.  
  9. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  10. biff = no
  11.  
  12. # appending .domain is the MUA's job.
  13. append_dot_mydomain = no
  14.  
  15. # Uncomment the next line to generate "delayed mail" warnings
  16. #delay_warning_time = 4h
  17.  
  18. readme_directory = no
  19.  
  20. # TLS parameters
  21. smtpd_tls_cert_file=/etc/postfix/sslcert/mailserver.crt
  22. smtpd_tls_key_file=/etc/postfix/sslcert/mailserver.key
  23. smtpd_use_tls=yes
  24. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  25. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  26.  
  27. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  28. # information on enabling SSL in the smtp client.
  29.  
  30. myhostname = antribute.eu
  31. alias_maps = hash:/etc/aliases
  32. alias_database = hash:/etc/aliases
  33. myorigin = /etc/mailname
  34. mydestination = localhost
  35. relayhost =
  36. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  37. mailbox_command = procmail -a "$EXTENSION"
  38. mailbox_size_limit = 0
  39. recipient_delimiter = +
  40. inet_interfaces = all
  41.  
  42. # a bit more spam protection
  43. disable_vrfy_command = yes
  44.  
  45.  
  46. # Authentification
  47. smtpd_sasl_type=dovecot
  48. smtpd_sasl_path=private/auth_dovecot
  49. smtpd_sasl_auth_enable = yes
  50. smtpd_sasl_authenticated_header = yes
  51. broken_sasl_auth_clients = yes
  52.  
  53. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps
  54.  
  55. smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf
  56.  
  57. smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
  58. reject_unknown_sender_domain
  59.  
  60. smtpd_recipient_restrictions = permit_sasl_authenticated
  61. permit_mynetworks
  62. reject_unauth_destination
  63.  
  64.  
  65. # Virtual mailboxes
  66. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  67. virtual_mailbox_base = /var/vmail/
  68. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  69. virtual_mailbox_limit = 112400000
  70. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  71. virtual_minimum_uid = 104
  72. virtual_transport = virtual
  73. virtual_uid_maps = static:5000
  74. virtual_gid_maps = static:5000
  75. virtual_transport = dovecot
  76. dovecot_destination_recipient_limit = 1
Advertisement
RAW Paste Data Copied
Advertisement