Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. root@testmail:/etc/postfix# cat /etc/postfix/main.cf
  2. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  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)
  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/ssl/certs/ssl-cert-snakeoil.pem
  22. #smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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. #smtpd_tls_cert_file=/etc/dovecot/dovecot.pem
  28. #smtpd_tls_key_file=/etc/dovecot/private/dovecot.pem
  29.  
  30. smtpd_tls_cert_file=/etc/ssl/localcerts/testmail.bioline.ru.crt
  31. smtpd_tls_key_file=/etc/ssl/localcerts/testmail.bioline.ru.key
  32.  
  33. smtpd_use_tls=yes
  34. smtpd_tls_auth_only = yes
  35. smtp_tls_security_level = may
  36. smtpd_tls_security_level = may
  37.  
  38. # Enabling SMTP for authenticated users, and handing off authentication to Dovecot
  39. smtpd_sasl_type = dovecot
  40. smtpd_sasl_path = private/auth
  41. smtpd_sasl_auth_enable = yes
  42.  
  43. smtpd_recipient_restrictions =
  44. permit_sasl_authenticated,
  45. permit_mynetworks,
  46. reject_unauth_destination
  47.  
  48. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  49. # information on enabling SSL in the smtp client.
  50.  
  51. myhostname = testmail.bioline.ru
  52. alias_maps = hash:/etc/aliases
  53. alias_database = hash:/etc/aliases
  54. myorigin = /etc/mailname
  55. #mydestination = example.com, hostname.example.com, localhost.example.com, localhost
  56. mydestination = localhost
  57. relayhost =
  58. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  59. mailbox_size_limit = 0
  60. recipient_delimiter = +
  61. inet_interfaces = all
  62.  
  63. # Handing off local delivery to Dovecot's LMTP, and telling it where to store mail
  64. virtual_transport = lmtp:unix:private/dovecot-lmtp
  65.  
  66. # Virtual domains, users, and aliases
  67. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
  68. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  69. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,
  70. mysql:/etc/postfix/mysql-virtual-email2email.cf
  71.  
  72. #Autorespond
  73. recipient_bcc_maps = mysql:/etc/postfix/mysql-virtual-bcc.cf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement