Advertisement
Guest User

Untitled

a guest
Jun 5th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. Jun 5 10:57:32 6r6n-6vh7 postfix/smtpd[748]: connect from mail-oi0-f45.google.com[209.85.218.45]
  2. Jun 5 10:57:32 6r6n-6vh7 postfix/smtpd[748]: warning: SASL: Connect to private/auth failed: Connection refused
  3. Jun 5 10:57:32 6r6n-6vh7 postfix/smtpd[748]: fatal: no SASL authentication mechanisms
  4. Jun 5 10:57:33 6r6n-6vh7 postfix/master[32593]: warning: process /usr/lib/postfix/smtpd pid 748 exit status 1
  5. Jun 5 10:57:33 6r6n-6vh7 postfix/master[32593]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
  6.  
  7. myhostname = mail.myserver.net
  8. myorigin = </var/mail/vhosts
  9. alias_maps = hash:/etc/aliases
  10. alias_database = hash:/etc/aliases
  11. mydestination = mail.myserver.net, myserver.net,localhost,localhost.localdomain
  12. relayhost =
  13. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  14. mailbox_size_limit = 0
  15. recepient_delimiter = +
  16. inet_interfaces = all
  17.  
  18. smtpd_tls_cert_file = /etc/ssl/certs/mailcert.pem
  19. smtpd_tls_key_file = /etc/ssl/private/mail.key
  20. smtpd_use_tls = yes
  21. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  22. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  23. smtpd_tls_security_level=may
  24. smtpd_tls_protocols = !SSLv2, !SSLv3
  25. smtpd_tls_auth_only = yes
  26. local_recipient_maps = proxy:unix:passwd.byname $alias_maps
  27.  
  28. biff = no
  29. append_dot_mydomain = no
  30. readme_directory = no
  31.  
  32. smtpd_sasl_type = dovecot
  33. smtpd_sasl_path = private/auth
  34. smtpd_sasl_auth_enable = yes
  35.  
  36. smtpd_recipient_restrictions =
  37. permit_sasl_authenticated,
  38. permit_mynetworks,
  39. reject_unauth_destination
  40.  
  41. #Handing off local delivery to Dovecot's LMTP, and telling it where to store mail
  42. virtual_transport = lmtp:unix:private/dovecot-lmtp
  43.  
  44. #Virtual domains, users, and aliases
  45. virtual_mailbox_domains = pgsql:/etc/postfix/pgsql-virtual-mailbox-domains.cf
  46. virtual_mailbox_maps = pgsql:/etc/postfix/pgsql-virtual-mailbox-maps.cf
  47. virtual_alias_maps = pgsql:/etc/postfix/pgsql-virtual-alias-maps.cf
  48.  
  49. submission inet n - - - - smtpd
  50. -o syslog_name=postfix/submission
  51. -o smtpd_tls_security_level=encrypt
  52. -o smtpd_sasl_auth_enable=yes
  53. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  54. -o milter_macro_daemon_name=ORIGINATING
  55. smtps inet n - - - - smtpd
  56. -o syslog_name=postfix/smtps
  57. -o smtpd_tls_wrappermode=yes
  58. -o smtpd_sasl_auth_enable=yes
  59. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  60. -o milter_macro_daemon_name=ORIGINATING
  61.  
  62. mail_location = maildir:/var/mail/vhosts/%d/%n
  63. mail_privileged_group = mail
  64.  
  65. disable_plaintext_auth = yes
  66. auth_mechanisms = plain login
  67. !include auth-sql.conf.ext
  68.  
  69. userdb {
  70. driver = static
  71. args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
  72. }
  73. passdb {
  74. driver = sql
  75.  
  76. # Path for SQL configuration file, see example-config/dovecot-sql.conf.ext
  77. args = /etc/dovecot/dovecot-sql.conf.ext
  78. }
  79.  
  80. driver = pgsql
  81. connect = host=localhost dbname=XXX user=YYY password=ZZZ
  82. default_pass_scheme = SHA512
  83. password_query = SELECT
  84. CONCAT(username,'@',domain) as user,
  85. password,
  86. 'vmail' AS userdb_uid,
  87. 'vmail' AS userdb_gid,
  88. '/var/mail/vhosts/%d/%u' as userdb_home
  89. FROM virtual_users
  90. WHERE concat(username,'@',domain) = '%u';
  91. user_query = SELECT username,
  92. CONCAT('maildir:/var/mail/vhosts/%d/',username,'@',domain) as mail,
  93. '/var/mail/vhosts/%d/%u' as home,
  94. 'vmail' as uid,
  95. 'vmail' as gid
  96. FROM virtual_users
  97. WHERE concat(username,'@',domain) = '%u';
  98.  
  99. service imap-login {
  100. inet_listener imap {
  101. #port = 143
  102. }
  103. inet_listener imaps {
  104. port = 993
  105. ssl = yes
  106. }
  107. }
  108. service pop3-login {
  109. inet_listener pop3 {
  110. #port = 110
  111. }
  112. inet_listener pop3s {
  113. port = 995
  114. ssl = yes
  115. }
  116. }
  117. service lmtp {
  118. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  119. mode = 0600
  120. user = postfix
  121. group = postfix
  122. }
  123. }
  124. service auth {
  125. unix_listener auth-userdb {
  126. mode = 0600
  127. user = vmail
  128. #group =
  129. }
  130. unix_listener auth-master {
  131. mode = 0660
  132. user = vmail
  133. group = vmail
  134. }
  135. # Postfix smtp-auth
  136. unix_listener /var/spool/postfix/private/auth {
  137. mode = 0666
  138. user=postfix
  139. group=postfix
  140. }
  141. # Auth process is run as this user.
  142. user = dovecot
  143. }
  144. service auth-worker {
  145. user = vmail
  146. }
  147.  
  148. ssl = required
  149. ssl_cert = </etc/dovecot/dovecot.pem
  150. ssl_key = </etc/dovecot/private/dovecot.pem
  151. log_path = /var/log/dovecot.log
  152. verbose_ssl = yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement