Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.31 KB | None | 0 0
  1. root@N40L:/etc/ssmtp# echo "test" | mailx -vvv -s "test" martin@example.com
  2. [<-] 220 h******.stratoserver.net ESMTP Postfix (Debian/GNU)
  3. [->] EHLO example.com
  4. [<-] 250 DSN
  5. [->] AUTH LOGIN
  6. [<-] 535 5.7.8 Error: authentication failed: Invalid authentication mechanism
  7. send-mail: Server didn't like our AUTH LOGIN (535 5.7.8 Error: authentication failed: Invalid authentication mechanism)
  8.  
  9. root=N40L@example.com
  10. mailhub=example.com:465
  11. rewriteDomain=example.com
  12. hostname=example.com
  13. FromLineOverride=YES
  14. UseTLS=YES
  15. AuthUser=N40L@example.com
  16. AuthPass=correctpassword
  17.  
  18. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  19. biff = no
  20. append_dot_mydomain = no
  21. readme_directory = no
  22. smtpd_tls_cert_file=/etc/letsencrypt/live/example.com/fullchain.pem
  23. smtpd_tls_key_file=/etc/letsencrypt/live/example.com/privkey.pem
  24. smtpd_use_tls=yes
  25. smtpd_tls_auth_only = yes
  26. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  27. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  28. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  29. myhostname = ********.stratoserver.net
  30. myorigin = /etc/mailname
  31. mydestination = localhost.stratoserver.net, localhost
  32. relayhost =
  33. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  34. mailbox_command = procmail -a "$EXTENSION"
  35. mailbox_size_limit = 0
  36. recipient_delimiter = +
  37. inet_interfaces = all
  38. message_size_limit=20480000
  39. virtual_mailbox_domains = a.bunch.of names.here.and example.com
  40. virtual_mailbox_base = /var/mail/vmail
  41. virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  42. virtual_gid_maps = static:5000
  43. virtual_uid_maps = static:5000
  44. virtual_minimum_uid = 5000
  45. virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  46. virtual_transport = lmtp:unix:private/dovecot-lmtp
  47. smtpd_sasl_auth_enable = yes
  48. smtpd_sasl_type = dovecot
  49. smtpd_sasl_path = private/auth
  50. content_filter = scan:127.0.0.1:10026
  51. receive_override_options = no_address_mappings
  52.  
  53. smtp inet n - - - - smtpd -v
  54. -o content_filter=spamassassin
  55. submission inet n - - - - smtpd
  56. -o syslog_name=postfix/submission
  57. -o smtpd_tls_security_level=encrypt
  58. -o smtpd_sasl_auth_enable=yes
  59. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  60. -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  61. smtps inet n - - - - smtpd
  62. -o syslog_name=postfix/smtps
  63. -o smtpd_tls_wrappermode=yes
  64. -o smtpd_sasl_auth_enable=yes
  65. pickup unix n - - 60 1 pickup
  66. cleanup unix n - - - 0 cleanup
  67. qmgr unix n - n 300 1 qmgr
  68. tlsmgr unix - - - 1000? 1 tlsmgr
  69. rewrite unix - - - - - trivial-rewrite
  70. bounce unix - - - - 0 bounce
  71. defer unix - - - - 0 bounce
  72. trace unix - - - - 0 bounce
  73. verify unix - - - - 1 verify
  74. flush unix n - - 1000? 0 flush
  75. proxymap unix - - n - - proxymap
  76. proxywrite unix - - n - 1 proxymap
  77. smtp unix - - - - - smtp
  78. relay unix - - - - - smtp
  79. showq unix n - - - - showq
  80. error unix - - - - - error
  81. retry unix - - - - - error
  82. discard unix - - - - - discard
  83. local unix - n n - - local
  84. virtual unix - n n - - virtual
  85. lmtp unix - - - - - lmtp
  86. anvil unix - - - - 1 anvil
  87. scache unix - - - - 1 scache
  88. maildrop unix - n n - - pipe
  89. flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  90. uucp unix - n n - - pipe
  91. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  92. ifmail unix - n n - - pipe
  93. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  94. bsmtp unix - n n - - pipe
  95. flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  96. scalemail-backend unix - n n - 2 pipe
  97. flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  98. mailman unix - n n - - pipe
  99. flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  100. ${nexthop} ${user}
  101. spamassassin unix - n n - - pipe
  102. user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
  103. scan unix - - n - 16 smtp
  104. -o smtp_send_xforward_command=yes
  105.  
  106. 127.0.0.1:10025 inet n - n - 16 smtpd
  107. -o content_filter=
  108. -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  109. -o smtpd_helo_restrictions=
  110. -o smtpd_client_restrictions=
  111. -o smtpd_sender_restrictions=
  112. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  113. -o mynetworks_style=host
  114. -o smtpd_authorized_xforward_hosts=127.0.0.0/8
  115.  
  116. # 2.2.13: /etc/dovecot/dovecot.conf
  117. auth_debug = yes
  118. auth_debug_passwords = yes
  119. auth_verbose = yes
  120. mail_debug = yes
  121. mail_plugins = " quota"
  122. mail_privileged_group = vmail
  123. managesieve_notify_capability = mailto
  124. }
  125. passdb {
  126. args = /etc/dovecot/dovecot-sql.conf.ext
  127. driver = sql
  128. }
  129. protocols = " imap lmtp sieve"
  130. service auth {
  131. unix_listener /var/spool/postfix/private/auth {
  132. group = postfix
  133. mode = 0666
  134. user = postfix
  135. }
  136. }
  137. service imap-login {
  138. inet_listener imaps {
  139. port = 993
  140. ssl = yes
  141. }
  142. }
  143. service lmtp {
  144. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  145. group = postfix
  146. mode = 0666
  147. user = postfix
  148. }
  149. }
  150. ssl = required
  151. ssl_cert = </etc/letsencrypt/live/example.com/fullchain.pem
  152. ssl_key = </etc/letsencrypt//live/example.com/privkey.pem
  153. userdb {
  154. args = /etc/dovecot/dovecot-sql.conf.ext
  155. driver = sql
  156. }
  157. verbose_ssl = yes
  158. protocol lmtp {
  159. mail_plugins = " quota sieve"
  160. postmaster_address = me@example.com
  161. }
  162.  
  163. Jan 16 10:29:54 postfix/smtps/smtpd[13601]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  164. Jan 16 10:29:54 postfix/smtps/smtpd[13601]: connect from ******.upc-h.chello.nl[62.194.***.***]
  165. Jan 16 10:29:54 dovecot: auth: Debug: auth client connected (pid=0)
  166. Jan 16 10:29:54 postfix/smtps/smtpd[13601]: warning: ******.upc-h.chello.nl[62.194.***.***]: SASL LOGIN authentication failed: Invalid authentication mechanism
  167. Jan 16 10:29:54 postfix/smtps/smtpd[13601]: lost connection after AUTH from ******.upc-h.chello.nl[62.194.***.***]
  168. Jan 16 10:29:54 postfix/smtps/smtpd[13601]: disconnect from ******.upc-h.chello.nl[62.194.***.***]
  169.  
  170. send-mail: Cannot open example.com:465
  171. Can't send mail: sendmail process failed with error code 1
  172.  
  173. Jan 16 10:46:01 postfix/smtps/smtpd[14047]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  174. Jan 16 10:46:01 postfix/smtps/smtpd[14047]: connect from ******.upc-h.chello.nl[62.194.***.***]
  175. Jan 16 10:46:12 dovecot: imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges
  176. Jan 16 10:46:12 dovecot: imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges
  177. Jan 16 10:46:12 dovecot: auth: Debug: auth client connected (pid=14049)
  178. Jan 16 10:46:12 dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011session=***************AAAAAAAAAAB#011lip=::1#011rip=::1#011lport=143#011rport=60112#011resp=AG40MGxAd*****************QzE3MDE= (previous base64 data may contain sensitive data)
  179. Jan 16 10:46:12 dovecot: auth-worker(14017): Debug: sql(n40l@example.com,::1): query: SELECT email as username, pwd AS password FROM addresses WHERE email = 'n40l@example.com'
  180. Jan 16 10:46:12 dovecot: auth: Debug: client passdb out: OK#0111#011user=n40l@example.com
  181. Jan 16 10:46:12 dovecot: auth: Debug: master in: REQUEST#011154140673#01114049#0111#0114d206d2a85468af9af75b8538aab7485#011session_pid=14050#011request_auth_token
  182. Jan 16 10:46:12 dovecot: auth-worker(14017): Debug: sql(n40l@example.com,::1): SELECT 5000 AS uid, 5000 as gid, email, '/var/mail/vmail/example.com/n40l' AS home FROM addresses WHERE email = 'n40l@example.com'
  183. Jan 16 10:46:12 dovecot: auth: Debug: master userdb out: USER#011154140673#011n40l@example.com#011uid=5000#011gid=5000#011email=n40l@example.com#011home=/var/mail/vmail/example.com/n40l#011auth_token=ff5b12*****************aedf315ac08e
  184. Jan 16 10:46:12 dovecot: imap-login: Login: user=<n40l@example.com>, method=PLAIN, rip=::1, lip=::1, mpid=14050, secured, session=<0pDTDTNG0AAAAAAAAAAAAAAAAAAAAAAB>
  185. Jan 16 10:46:12 dovecot: imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules
  186. Jan 16 10:46:12 dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
  187. Jan 16 10:46:12 dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
  188. Jan 16 10:46:12 dovecot: imap: Debug: Added userdb setting: plugin/email=n40l@example.com
  189. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Debug: Effective uid=5000, gid=5000, home=/var/mail/vmail/example.com/n40l
  190. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Debug: Quota root: name=User quota backend=maildir args=
  191. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Debug: Quota rule: root=User quota mailbox=* bytes=10737418240 messages=0
  192. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Debug: Quota rule: root=User quota mailbox=Trash bytes=+104857600 messages=0
  193. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Debug: Quota grace: root=User quota bytes=536870912 (5%)
  194. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/mail/vmail/example.com/n40l
  195. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Debug: maildir++: root=/var/mail/vmail/example.com/n40l, index=, indexpvt=, control=, inbox=/var/mail/vmail/example.com/n40l, alt=
  196. Jan 16 10:46:12 dovecot: imap(n40l@example.com): Disconnected: Logged out in=50 out=475
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement