Advertisement
Guest User

Untitled

a guest
Aug 5th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.67 KB | None | 0 0
  1. # ==========================================================================
  2. # service type private unpriv chroot wakeup maxproc command + args
  3. # (yes) (yes) (yes) (never) (100)
  4. # ==========================================================================
  5. smtp inet n - - - - smtpd
  6. #smtp inet n - - - 1 postscreen
  7. #smtpd pass - - - - - smtpd
  8. #dnsblog unix - - - - 0 dnsblog
  9. #tlsproxy unix - - - - 0 tlsproxy
  10. #submission inet n - - - - smtpd
  11. # -o syslog_name=postfix/submission
  12. # -o smtpd_tls_security_level=encrypt
  13. # -o smtpd_sasl_auth_enable=yes
  14. # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  15. # -o milter_macro_daemon_name=ORIGINATING
  16. #smtps inet n - - - - smtpd
  17. # -o syslog_name=postfix/smtps
  18. # -o smtpd_tls_wrappermode=yes
  19. # -o smtpd_sasl_auth_enable=yes
  20. # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  21. # -o milter_macro_daemon_name=ORIGINATING
  22. #628 inet n - - - - qmqpd
  23. pickup fifo n - - 60 1 pickup
  24. cleanup unix n - - - 0 cleanup
  25. qmgr fifo n - n 300 1 qmgr
  26. #qmgr fifo n - n 300 1 oqmgr
  27. tlsmgr unix - - - 1000? 1 tlsmgr
  28. rewrite unix - - - - - trivial-rewrite
  29. bounce unix - - - - 0 bounce
  30. defer unix - - - - 0 bounce
  31. trace unix - - - - 0 bounce
  32. verify unix - - - - 1 verify
  33. flush unix n - - 1000? 0 flush
  34. proxymap unix - - n - - proxymap
  35. proxywrite unix - - n - 1 proxymap
  36. smtp unix - - - - - smtp
  37. relay unix - - - - - smtp
  38. showq unix n - - - - showq
  39. error unix - - - - - error
  40. retry unix - - - - - error
  41. discard unix - - - - - discard
  42. local unix - n n - - local
  43. virtual unix - n n - - virtual
  44. lmtp unix - - - - - lmtp
  45. anvil unix - - - - 1 anvil
  46. scache unix - - - - 1 scache
  47. maildrop unix - n n - - pipe
  48. flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  49. uucp unix - n n - - pipe
  50. uucp unix - n n - - pipe
  51. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  52. ifmail unix - n n - - pipe
  53. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  54. bsmtp unix - n n - - pipe
  55. flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  56. scalemail-backend unix - n n - 2 pipe
  57. flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  58. mailman unix - n n - - pipe
  59. flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  60. ${nexthop} ${user}
  61. dovecot unix - n n - - pipe
  62. flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
  63.  
  64. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  65.  
  66.  
  67. # Debian specific: Specifying a file name will cause the first
  68. # line of that file to be used as the name. The Debian default
  69. # is /etc/mailname.
  70. #myorigin = /etc/mailname
  71.  
  72. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  73. biff = no
  74.  
  75. # appending .domain is the MUA's job.
  76. append_dot_mydomain = no
  77.  
  78. # Uncomment the next line to generate "delayed mail" warnings
  79. #delay_warning_time = 4h
  80.  
  81. readme_directory = /usr/share/doc/postfix
  82. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  83. # information on enabling SSL in the smtp client.
  84.  
  85. myhostname = domainName.ru
  86. alias_maps = hash:/etc/aliases
  87. alias_database = hash:/etc/aliases
  88. myorigin = /etc/mailname
  89. mydestination =
  90. relayhost =
  91. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  92. mailbox_command = procmail -a "$EXTENSION"
  93. mailbox_size_limit = 0
  94. recipient_delimiter = +
  95. inet_interfaces = all
  96. inet_protocols = ipv4
  97.  
  98. # TLS parameters
  99. #smtpd_tls_cert_file = /etc/postfix/certificate/smtpd.pem
  100. #smtpd_tls_key_file = /etc/postfix/certificate/smtpd.pem
  101. smtpd_use_tls = yes
  102. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  103. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  104. smtp_tls_loglevel = 3
  105. smtp_tls_CApath = /etc/ssl/certs
  106. smtpd_tls_received_header = yes
  107. #smtpd_tls_cert_file = /etc/ssl/domainName.ru2016-bundle;
  108. #smtpd_tls_key_file = /etc/ssl/www.domainName.ru.key;
  109. smtpd_tls_cert_file = /root/mailCert/mail.domainName.ru.public.pem
  110. smtpd_tls_key_file = /root/mailCert/mail.domainName.ru.private.pem
  111. smtpd_tls_CApath = /etc/ssl/certs
  112. smtpd_tls_loglevel = 3
  113. smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
  114. smtpd_tls_protocols=!SSLv2,!TLSv1,!TLSv1.1,!SSLv3
  115.  
  116. # MySQL конфигурация
  117. virtual_alias_domains =
  118. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_forwardings.cf, mysql:/etc/postfix/mysql/virtual_email2email.cf
  119. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_domains.cf
  120. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailboxes.cf
  121. virtual_mailbox_base = /home/vmail
  122. virtual_uid_maps = static:5000
  123. virtual_gid_maps = static:5000
  124. # SASL конфигурация
  125. smtpd_sasl_auth_enable = yes
  126. smtpd_sasl_authenticated_header = yes
  127. smtpd_sasl_local_domain = $myhostname
  128. smtpd_sasl_security_options = noanonymous
  129. smtpd_sasl_type = dovecot
  130. smtpd_sasl_path = private/auth
  131. broken_sasl_auth_clients = yes
  132. smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
  133. smtpd_recipient_restrictions = permit_mynetworks,
  134. permit_sasl_authenticated,
  135. reject_unauth_destination,
  136. reject_unauth_pipelining,
  137. reject_invalid_hostname,
  138.  
  139. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $
  140. virtual_transport = dovecot
  141.  
  142. milter_protocol = 2
  143. milter_default_action = accept
  144. smtpd_milters = inet:localhost:12301
  145. non_smtpd_milters = inet:localhost:12301
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement