Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. Final-Recipient: rfc822; info@domain.ru
  2. Action: delayed
  3. Status: 4.4.1
  4. Diagnostic-Code: smtp; The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
  5. [mail.domain.ru. ipv6 adress: generic::failed_precondition: connect error (0): error]
  6. [mail.domain.ru. ipv4 adress: generic::failed_precondition: connect error (0): error]
  7.  
  8. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  9.  
  10.  
  11. # Debian specific: Specifying a file name will cause the first
  12. # line of that file to be used as the name. The Debian default
  13. # is /etc/mailname.
  14. myorigin = $mydomain
  15.  
  16. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  17. biff = no
  18.  
  19. # appending .domain is the MUA's job.
  20. append_dot_mydomain = no
  21.  
  22. # Uncomment the next line to generate "delayed mail" warnings
  23. #delay_warning_time = 4h
  24.  
  25. readme_directory = no
  26.  
  27. # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
  28. # fresh installs.
  29. compatibility_level = 2
  30.  
  31. # TLS parameters
  32. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  33. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.pem
  34. smtpd_use_tls=yes
  35. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  36. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  37. smtpd_tls_security_level = may
  38.  
  39. smtpd_sasl_auth_enable = yes
  40. smtpd_sasl_type = dovecot
  41. smtpd_sasl_path = private/auth
  42. smtpd_sasl_security_options = noanonymous
  43.  
  44. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  45. # information on enabling SSL in the smtp client.
  46.  
  47. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  48. mydomain = domain.ru
  49. myhostname = mail.domain.ru
  50. alias_maps = hash:/etc/aliases
  51. alias_database = hash:/etc/aliases
  52. mydestination = localhost.$mydomain, localhost, localhost.localdomain
  53. relayhost =
  54. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  55. home_mailbox = Maildir/
  56. mailbox_command = procmail -a "$EXTENSION"
  57. mailbox_size_limit = 0
  58. recipient_delimiter = +
  59. inet_interfaces = all
  60. inet_protocols = all
  61.  
  62. virtual_mailbox_base = /var/vmail
  63. virtual_mailbox_domains =
  64. proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
  65. virtual_alias_maps =
  66. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
  67. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
  68. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
  69. virtual_mailbox_maps =
  70. proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,
  71. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf
  72.  
  73. #-------------------dovecot.conf- - http://www.dovecot.org/doc/dovecot-example.conf
  74. protocols = imap pop3
  75.  
  76. #-------------------10-auth.conf- - http://wiki2.dovecot.org/Authentication
  77. disable_plaintext_auth = yes
  78. auth_mechanisms = plain login
  79.  
  80. #-------------------10-logging.conf- - http://wiki2.dovecot.org/Logging
  81. log_path = /var/log/dovecot.log
  82. info_log_path = /var/log/dovecot-info.log
  83. debug_log_path = /var/log/dovecot-debug.log
  84. auth_verbose = yes
  85. auth_debug = yes
  86. auth_debug_passwords = yes
  87. mail_debug = yes
  88. auth_verbose_passwords = sha1
  89. verbose_ssl = yes
  90.  
  91. #-------------------10-mail.conf- - http://wiki.dovecot.org/MailLocation
  92. mail_location = maildir:/var/vmail/%d/%n
  93. mail_uid = 5000
  94. mail_gid = 5000
  95. mail_privileged_group = vmail
  96.  
  97. #-------------------10-master.conf- - http://wiki.dovecot.org/Services
  98. service auth {
  99. unix_listener auth-userdb {
  100. mode = 0600
  101. user = vmail
  102. group = vmail
  103. }
  104. unix_listener /var/spool/postfix/private/auth {
  105. mode = 0666
  106. user = postfix
  107. group = postfix
  108. }
  109. }
  110. service imap-login {
  111. inet_listener imap {
  112. }
  113. inet_listener imaps {
  114. }
  115. }
  116. service pop3-login {
  117. inet_listener pop3 {
  118. }
  119. inet_listener pop3s {
  120. }
  121. }
  122.  
  123. #-------------------10-ssl.conf- - http://wiki.dovecot.org/SSL/DovecotConfiguration
  124. ssl = yes
  125. ssl_cert = </etc/dovecot/dovecot.pem
  126. ssl_key = </etc/dovecot/private/dovecot.pem
  127.  
  128. #-------------------15-lda.conf- - http://wiki.dovecot.org/LDA
  129. protocol lda {
  130. }
  131.  
  132. #-------------------15-mailboxes.conf- - http://wiki2.dovecot.org/MailboxSettings
  133. namespace inbox {
  134. inbox = yes
  135. mailbox Drafts {
  136. special_use = Drafts
  137. auto = subscribe
  138. }
  139. mailbox Junk {
  140. special_use = Junk
  141. auto = subscribe
  142. }
  143. mailbox Trash {
  144. special_use = Trash
  145. auto = subscribe
  146. }
  147. mailbox Sent {
  148. special_use = Sent
  149. auto = subscribe
  150. }
  151. }
  152.  
  153. #-------------------90-plugin.conf- - http://wiki2.dovecot.org/Plugins
  154. plugin {
  155. }
  156.  
  157. #-------------------auth-sql.conf.ext- - http://wiki2.dovecot.org/AuthDatabase/SQL
  158. userdb {
  159. driver = sql
  160. args = /etc/dovecot/dovecot-sql.conf
  161. }
  162. passdb {
  163. driver = sql
  164. args = /etc/dovecot/dovecot-sql.conf
  165. }
  166.  
  167. root@example:~# netstat -pel | grep smtp
  168. tcp 0 0 0.0.0.0:smtp 0.0.0.0:* LISTEN root 845985 28651/master
  169. tcp6 0 0 [::]:smtp [::]:* LISTEN root 845986 28651/master
  170. unix 2 [ ACC ] STREAM LISTENING 846084 28651/master private/bsmtp
  171. unix 2 [ ACC ] STREAM LISTENING 845989 28651/master private/smtpd
  172. unix 2 [ ACC ] STREAM LISTENING 846042 28651/master private/smtp
  173.  
  174. root@example:~# netstat -plnt |grep :25
  175. tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 28651/master
  176. tcp6 0 0 :::25 :::* LISTEN 28651/master
  177.  
  178. 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
  179. 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
  180. 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
  181. 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465
  182. 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587
  183.  
  184. root@example:~# dig mx domain.ru
  185.  
  186. ; <<>> DiG 9.10.3-P4-Debian <<>> mx domain.ru
  187. ;; global options: +cmd
  188. ;; Got answer:
  189. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54832
  190. ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
  191.  
  192. ;; QUESTION SECTION:
  193. ;domain.ru. IN MX
  194.  
  195. ;; ANSWER SECTION:
  196. domain.ru. 3600 IN MX 10 mail.domain.ru.
  197.  
  198. ;; Query time: 51 msec
  199. ;; SERVER: 77.88.8.8#53(77.88.8.8)
  200. ;; WHEN: Tue Jul 25 16:52:37 MSK 2017
  201. ;; MSG SIZE rcvd: 52
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement