Advertisement
Guest User

Untitled

a guest
Apr 21st, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  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/post/sll/mailserver.crt
  22. smtpd_tls_key_file=/etc/post/sll/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. smtpd_tls_security_level = may
  27.  
  28. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  29. # information on enabling SSL in the smtp client.
  30.  
  31. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  32. myhostname = sceptix.xyz
  33. alias_maps = hash:/etc/aliases
  34. alias_database = hash:/etc/aliases
  35. myorigin = /etc/mailname
  36. mydestination = sceptix.xyz, localhost.de, , localhost
  37. relayhost =
  38. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
  39. mailbox_command = procmail -a "$EXTENSION"
  40. mailbox_size_limit = 0
  41. recipient_delimiter = +
  42. inet_interfaces = all
  43.  
  44. # a bit more spam protection
  45. disable_vrfy_command = yes
  46.  
  47.  
  48. # Auth
  49. smtpd_sasl_type=dovecot
  50. smtpd_sasl_path=private/auth_dovecot
  51. smtpd_sasl_auth_enable = yes
  52. smtpd_sasl_authenticated_header = yes
  53. broken_sasl_auth_clients = yes
  54.  
  55. 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
  56.  
  57. smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-sender-login-maps.cf
  58.  
  59. smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
  60. reject_unknown_sender_domain
  61.  
  62.  
  63. # Virtual mailboxes
  64. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual-alias-maps.cf
  65. virtual_mailbox_base = /var/vmail/
  66. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual-domains-maps.cf
  67. virtual_mailbox_limit = 0
  68. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  69. virtual_minimum_uid = 104
  70. virtual_transport = dovecot
  71. local_transport = virtual
  72. virtual_uid_maps = static:6000
  73. virtual_gid_maps = static:6000
  74. dovecot_destination_recipient_limit = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement