Advertisement
Guest User

/etc/postfix/main.cf

a guest
Oct 26th, 2016
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. queue_directory = /var/spool/postfix
  2. command_directory = /usr/sbin
  3. daemon_directory = /usr/libexec/postfix
  4. data_directory = /var/lib/postfix
  5. mail_owner = postfix
  6. unknown_local_recipient_reject_code = 550
  7. alias_maps = hash:/etc/aliases
  8. alias_database = hash:/etc/aliases
  9.  
  10. inet_interfaces = all
  11. inet_protocols = ipv4
  12. mydestination = localhost
  13.  
  14. debug_peer_level = 2
  15. debugger_command =
  16. PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  17. ddd $daemon_directory/$process_name $process_id & sleep 5
  18.  
  19. sendmail_path = /usr/sbin/sendmail.postfix
  20. newaliases_path = /usr/bin/newaliases.postfix
  21. mailq_path = /usr/bin/mailq.postfix
  22. setgid_group = postdrop
  23. html_directory = no
  24. manpage_directory = /usr/share/man
  25. sample_directory = /usr/share/doc/postfix-2.6.6/samples
  26. readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
  27.  
  28. # TLS parameters
  29. smtpd_tls_cert_file = /etc/letsencrypt/live/servername.de/fullchain.pem
  30. smtpd_tls_key_file = /etc/letsencrypt/live/servername.de/privkey.pem
  31. smtpd_use_tls = yes
  32. smtpd_tls_auth_only = yes
  33. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  34. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  35.  
  36. #tls_ssl_options = NO_COMPRESSION
  37. tls_high_cipherlist=EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA
  38.  
  39. ### outgoing connections ###
  40. smtp_tls_security_level = may
  41. smtp_tls_cert_file = /etc/letsencrypt/live/servername.de/fullchain.pem
  42. smtp_tls_key_file = /etc/letsencrypt/live/servername.de/privkey.pem
  43. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  44.  
  45. relay_domains = *
  46. virtual_alias_maps=hash:/etc/postfix/vmail_aliases
  47. virtual_mailbox_domains=hash:/etc/postfix/vmail_domains
  48. virtual_mailbox_maps=hash:/etc/postfix/vmail_mailbox
  49.  
  50. virtual_mailbox_base = /var/vmail
  51. virtual_transport = virtual
  52. virtual_minimum_uid = 2222
  53. virtual_uid_maps = static:2222
  54. virtual_gid_maps = static:2222
  55.  
  56. smtpd_sasl_auth_enable = yes
  57. smtpd_sasl_type = dovecot
  58. smtpd_sasl_path = /var/run/dovecot/auth-client
  59. smtpd_sasl_security_options = noanonymous
  60. smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
  61. smtpd_sasl_local_domain = $mydomain
  62. broken_sasl_auth_clients = yes
  63.  
  64. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  65. #smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  66. #smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_invalid_hostname, reject_unauth_pipelining, reject_non_fqdn_hostname
  67.  
  68. smtpd_sasl_security_options = noanonymous
  69.  
  70. myhostname = servername.de
  71. #alias_maps = hash:/etc/aliases
  72. #alias_database = hash:/etc/aliases
  73. myorigin = servername.de
  74. #mydestination = $myhostname, servername.de, localhost.de, , localhost
  75. #mydestination = localhost
  76. relayhost =
  77. #mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  78. mynetworks = 0.0.0.0/0
  79. mailbox_size_limit = 0
  80. recipient_delimiter = +
  81. #inet_interfaces = all
  82. #inet_protocols = all
  83.  
  84. always_bcc = alwaysbcc
  85. recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement