Advertisement
Guest User

Untitled

a guest
Sep 7th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2016-09-07T16:41:36.557Z [DEBUG] [-] [core] registered hook unrecognized_command to auth/auth_bridge.hook_unrecognized_command priority 0
  2. 2016-09-07T16:41:36.559Z [INFO] [-] [core] Loading plugin: rcpt_to.in_host_list
  3. 2016-09-07T16:41:36.560Z [DEBUG] [-] [core] no timeout in rcpt_to.in_host_list.timeout
  4. 2016-09-07T16:41:36.562Z [DEBUG] [-] [core] no timeout in plugin_timeout
  5. 2016-09-07T16:41:36.562Z [DEBUG] [-] [core] plugin rcpt_to.in_host_list timeout is: 30s
  6. 2016-09-07T16:41:36.563Z [DEBUG] [-] [core] no timeout in rcpt_to.host_list_base.timeout
  7. 2016-09-07T16:41:36.565Z [DEBUG] [-] [core] no timeout in plugin_timeout
  8. 2016-09-07T16:41:36.566Z [DEBUG] [-] [core] plugin rcpt_to.host_list_base timeout is: 30s
  9. 2016-09-07T16:41:36.567Z [DEBUG] [-] [core] registered hook rcpt to rcpt_to.in_host_list.hook_rcpt priority 0
  10. 2016-09-07T16:41:36.568Z [DEBUG] [-] [core] registered hook mail to rcpt_to.in_host_list.hook_mail priority 0
  11. 2016-09-07T16:41:36.568Z [INFO] [-] [core] Loading plugin: queue/smtp_bridge
  12. 2016-09-07T16:41:36.568Z [DEBUG] [-] [core] no timeout in queue/smtp_bridge.timeout
  13. 2016-09-07T16:41:36.568Z [DEBUG] [-] [core] no timeout in plugin_timeout
  14. 2016-09-07T16:41:36.570Z [DEBUG] [-] [core] plugin queue/smtp_bridge timeout is: 30s
  15. 2016-09-07T16:41:36.571Z [DEBUG] [-] [core] registered hook data_post to queue/smtp_bridge.hook_data_post priority 0
  16. 2016-09-07T16:41:36.572Z [DEBUG] [-] [core] registered hook get_mx to queue/smtp_bridge.hook_get_mx priority 0
  17. 2016-09-07T16:41:36.597Z [NOTICE] [-] [core] Listening on :::5877
  18. 2016-09-07T16:41:36.601Z [DEBUG] [-] [server] running init_master hooks
  19. 2016-09-07T16:41:36.606Z [INFO] [-] [core] [outbound] Loading outbound queue from /usr/local/haraka/queue
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. 2016-09-07T16:41:54.140Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] connect ip=192.168.0.105 port=46416 local_ip=:: local_port=5877
  58. 2016-09-07T16:41:54.143Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running connect_init hooks
  59. 2016-09-07T16:41:54.147Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running connect_init_respond
  60. 2016-09-07T16:41:54.149Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running lookup_rdns hooks
  61. 2016-09-07T16:41:54.156Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running connect hooks
  62. 2016-09-07T16:41:54.162Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 220 674b60ad8563 ESMTP mail.mgyosz.hu Haraka MAIL Service, Version: 6.0.3790.4675
  63. 2016-09-07T16:41:54.175Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: EHLO haraka.intra.local state=1
  64. 2016-09-07T16:41:54.180Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running ehlo hooks
  65. 2016-09-07T16:41:54.184Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hooks
  66. 2016-09-07T16:41:54.188Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in tls plugin
  67. 2016-09-07T16:41:54.194Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=tls function=tls_capabilities params="" retval=CONT msg=""
  68. 2016-09-07T16:41:54.197Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in auth/auth_bridge plugin
  69. 2016-09-07T16:41:54.201Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=auth/auth_bridge function=hook_capabilities params="" retval=CONT msg=""
  70. 2016-09-07T16:41:54.204Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-674b60ad8563 Hello 617-1.intra.local [192.168.0.105], Haraka is at your service.
  71. 2016-09-07T16:41:54.206Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-PIPELINING
  72. 2016-09-07T16:41:54.208Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-8BITMIME
  73. 2016-09-07T16:41:54.211Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-SIZE 0
  74. 2016-09-07T16:41:54.214Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250 STARTTLS
  75. 2016-09-07T16:41:54.221Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: STARTTLS state=1
  76. 2016-09-07T16:41:54.223Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  77. 2016-09-07T16:41:54.226Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  78. 2016-09-07T16:41:54.230Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 220 Go ahead.
  79. 2016-09-07T16:41:54.236Z [DEBUG] [-] [core] Upgrading to TLS
  80. 2016-09-07T16:41:54.357Z [DEBUG] [-] [core] TLS secured.
  81. 2016-09-07T16:41:54.363Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [tls] secured: cipher=ECDHE-RSA-AES256-GCM-SHA384 version=TLSv1/SSLv3 verified=false error="Error: unable     to get issuer certificate"
  82. 2016-09-07T16:41:54.366Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="STARTTLS" retval=OK     msg=""
  83. 2016-09-07T16:41:54.373Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: EHLO haraka.intra.local state=1
  84. 2016-09-07T16:41:54.376Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running ehlo hooks
  85. 2016-09-07T16:41:54.380Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hooks
  86. 2016-09-07T16:41:54.382Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in tls plugin
  87. 2016-09-07T16:41:54.385Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=tls function=tls_capabilities params="" retval=CONT msg=""
  88. 2016-09-07T16:41:54.387Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in auth/auth_bridge plugin
  89. 2016-09-07T16:41:54.390Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=auth/auth_bridge function=hook_capabilities params="" retval=CONT msg=""
  90. 2016-09-07T16:41:54.392Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-674b60ad8563 Hello 617-1.intra.local [192.168.0.105], Haraka is at your service.
  91. 2016-09-07T16:41:54.395Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-PIPELINING
  92. 2016-09-07T16:41:54.397Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-8BITMIME
  93. 2016-09-07T16:41:54.399Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-SIZE 0
  94. 2016-09-07T16:41:54.401Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250 AUTH PLAIN LOGIN
  95. 2016-09-07T16:41:54.410Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: AUTH LOGIN state=1
  96. 2016-09-07T16:41:54.413Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  97. 2016-09-07T16:41:54.415Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  98. 2016-09-07T16:41:54.418Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="AUTH" retval=CONT     msg=""
  99. 2016-09-07T16:41:54.420Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  100. 2016-09-07T16:41:54.426Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 334 VXNlcm5hbWU6
  101. 2016-09-07T16:41:54.429Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="AUTH"     retval=OK msg=""
  102. 2016-09-07T16:41:54.434Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: c3VwcG9ydA== state=1
  103. 2016-09-07T16:41:54.437Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  104. 2016-09-07T16:41:54.439Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  105. 2016-09-07T16:41:54.443Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="c3VwcG9ydA==" retv    al=CONT msg=""
  106. 2016-09-07T16:41:54.445Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  107. 2016-09-07T16:41:54.449Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 334 UGFzc3dvcmQ6
  108. 2016-09-07T16:41:54.452Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="c3Vwc    G9ydA==" retval=OK msg=""
  109. 2016-09-07T16:41:54.457Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: bWd5b3N6c3VwcG9ydGprbGprbA== state=1
  110. 2016-09-07T16:41:54.460Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  111. 2016-09-07T16:41:54.462Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  112. 2016-09-07T16:41:54.465Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="bWd5b3N6c3VwcG9ydG    prbGprbA==" retval=CONT msg=""
  113. 2016-09-07T16:41:54.467Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  114. 2016-09-07T16:41:54.481Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] attempting connection to host=192.168.0.1 port=25with password: mgyoszsupportjkljkl,     and username: support
  115. 2016-09-07T16:41:54.496Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 mail.mgyosz.hu Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready a    t  Wed, 7 Sep 2016 18:41:54 +0200 \r\n
  116. 2016-09-07T16:41:54.498Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: connect
  117. 2016-09-07T16:41:54.502Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  118. 2016-09-07T16:41:54.506Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  119. 2016-09-07T16:41:54.509Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  120. 2016-09-07T16:41:54.511Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  121. 2016-09-07T16:41:54.513Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  122. 2016-09-07T16:41:54.517Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  123. 2016-09-07T16:41:54.519Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  124. 2016-09-07T16:41:54.521Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  125. 2016-09-07T16:41:54.526Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  126. 2016-09-07T16:41:54.530Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  127. 2016-09-07T16:41:54.532Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  128. 2016-09-07T16:41:54.541Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  129. 2016-09-07T16:41:54.543Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TLS\r\n
  130. 2016-09-07T16:41:54.546Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-STARTTLS\r\n
  131. 2016-09-07T16:41:54.548Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  132. 2016-09-07T16:41:54.550Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  133. 2016-09-07T16:41:54.553Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  134. 2016-09-07T16:41:54.555Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  135. 2016-09-07T16:41:54.557Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  136. 2016-09-07T16:41:54.559Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  137. 2016-09-07T16:41:54.563Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  138. 2016-09-07T16:41:54.565Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  139. 2016-09-07T16:41:54.568Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: STARTTLS
  140. 2016-09-07T16:41:54.575Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 2.0.0 SMTP server ready\r\n
  141. 2016-09-07T16:41:54.577Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: starttls
  142. 2016-09-07T16:41:54.588Z [DEBUG] [-] [core] client TLS upgrade in progress, awaiting secured.
  143. 2016-09-07T16:41:54.621Z [DEBUG] [-] [core] client TLS secured.
  144. 2016-09-07T16:41:54.629Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  145. 2016-09-07T16:41:54.636Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  146. 2016-09-07T16:41:54.648Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  147. 2016-09-07T16:41:54.650Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  148. 2016-09-07T16:41:54.653Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  149. 2016-09-07T16:41:54.655Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  150. 2016-09-07T16:41:54.657Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  151. 2016-09-07T16:41:54.659Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  152. 2016-09-07T16:41:54.662Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  153. 2016-09-07T16:41:54.664Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  154. 2016-09-07T16:41:54.666Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  155. 2016-09-07T16:41:54.668Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  156. 2016-09-07T16:41:54.669Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  157. 2016-09-07T16:41:54.671Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  158. 2016-09-07T16:41:54.673Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  159. 2016-09-07T16:41:54.675Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  160. 2016-09-07T16:41:54.678Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  161. 2016-09-07T16:41:54.679Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  162. 2016-09-07T16:41:54.680Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  163. 2016-09-07T16:41:54.682Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  164. 2016-09-07T16:41:54.684Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] found supported AUTH methods: LOGIN
  165. 2016-09-07T16:41:54.690Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: AUTH LOGIN
  166. 2016-09-07T16:41:54.696Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:1408F10B:SSL routin    es:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:362:
  167. 2016-09-07T16:41:54.705Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 1 seconds
  168. 2016-09-07T16:41:54.710Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  169. 2016-09-07T16:41:54.713Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 2 seconds
  170. 2016-09-07T16:41:54.716Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 334 VXNlcm5hbWU6\r\n
  171. 2016-09-07T16:41:54.719Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: auth
  172. 2016-09-07T16:41:54.722Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  173. 2016-09-07T16:41:54.725Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 4 seconds
  174. 2016-09-07T16:41:54.728Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  175. 2016-09-07T16:41:54.730Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 8 seconds
  176. 2016-09-07T16:41:55.709Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 535 Authentication failed
  177. 2016-09-07T16:41:55.713Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="bWd5b    3N6c3VwcG9ydGprbGprbA==" retval=OK msg=""
  178. 2016-09-07T16:41:55.718Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: AUTH PLAIN AHN1cHBvcnQAbWd5b3N6c3VwcG9ydGprbGprbA== state=1
  179. 2016-09-07T16:41:55.720Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  180. 2016-09-07T16:41:55.723Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  181. 2016-09-07T16:41:55.725Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="AUTH" retval=CONT     msg=""
  182. 2016-09-07T16:41:55.728Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  183. 2016-09-07T16:41:55.733Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] attempting connection to host=192.168.0.1 port=25with password: mgyoszsupportjkljkl,     and username: support
  184. 2016-09-07T16:41:55.738Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 mail.mgyosz.hu Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready a    t  Wed, 7 Sep 2016 18:41:55 +0200 \r\n
  185. 2016-09-07T16:41:55.740Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: connect
  186. 2016-09-07T16:41:55.743Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  187. 2016-09-07T16:41:55.746Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  188. 2016-09-07T16:41:55.748Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  189. 2016-09-07T16:41:55.750Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  190. 2016-09-07T16:41:55.753Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  191. 2016-09-07T16:41:55.755Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  192. 2016-09-07T16:41:55.757Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  193. 2016-09-07T16:41:55.759Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  194. 2016-09-07T16:41:55.761Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  195. 2016-09-07T16:41:55.764Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  196. 2016-09-07T16:41:55.765Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  197. 2016-09-07T16:41:55.768Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  198. 2016-09-07T16:41:55.771Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TLS\r\n
  199. 2016-09-07T16:41:55.773Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-STARTTLS\r\n
  200. 2016-09-07T16:41:55.775Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  201. 2016-09-07T16:41:55.777Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  202. 2016-09-07T16:41:55.779Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  203. 2016-09-07T16:41:55.780Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  204. 2016-09-07T16:41:55.782Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  205. 2016-09-07T16:41:55.783Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  206. 2016-09-07T16:41:55.785Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  207. 2016-09-07T16:41:55.786Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  208. 2016-09-07T16:41:55.789Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: STARTTLS
  209. 2016-09-07T16:41:55.792Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 2.0.0 SMTP server ready\r\n
  210. 2016-09-07T16:41:55.794Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: starttls
  211. 2016-09-07T16:41:55.800Z [DEBUG] [-] [core] client TLS upgrade in progress, awaiting secured.
  212. 2016-09-07T16:41:55.830Z [DEBUG] [-] [core] client TLS secured.
  213. 2016-09-07T16:41:55.834Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  214. 2016-09-07T16:41:55.838Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  215. 2016-09-07T16:41:55.841Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  216. 2016-09-07T16:41:55.843Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  217. 2016-09-07T16:41:55.845Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  218. 2016-09-07T16:41:55.848Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  219. 2016-09-07T16:41:55.850Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  220. 2016-09-07T16:41:55.852Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  221. 2016-09-07T16:41:55.854Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  222. 2016-09-07T16:41:55.857Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  223. 2016-09-07T16:41:55.857Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  224. 2016-09-07T16:41:55.858Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  225. 2016-09-07T16:41:55.858Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  226. 2016-09-07T16:41:55.860Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  227. 2016-09-07T16:41:55.861Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  228. 2016-09-07T16:41:55.862Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  229. 2016-09-07T16:41:55.865Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  230. 2016-09-07T16:41:55.867Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  231. 2016-09-07T16:41:55.870Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  232. 2016-09-07T16:41:55.871Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  233. 2016-09-07T16:41:55.873Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] found supported AUTH methods: LOGIN
  234. 2016-09-07T16:41:55.875Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: AUTH LOGIN
  235. 2016-09-07T16:41:55.879Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:1408F10B:SSL routin    es:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:362:
  236. 2016-09-07T16:41:55.882Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 16 seconds
  237. 2016-09-07T16:41:55.885Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  238. 2016-09-07T16:41:55.888Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 29 seconds
  239. 2016-09-07T16:41:55.890Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 334 VXNlcm5hbWU6\r\n
  240. 2016-09-07T16:41:55.893Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: auth
  241. 2016-09-07T16:41:55.896Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  242. 2016-09-07T16:41:55.898Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 29 seconds
  243. 2016-09-07T16:41:55.901Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  244. 2016-09-07T16:41:55.904Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 29 seconds
  245. 2016-09-07T16:41:56.718Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 535 Authentication failed
  246. 2016-09-07T16:41:56.721Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  247. 2016-09-07T16:41:56.730Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  248.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  249.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  250.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  251.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  252.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:512:15)
  253.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  254.     at tryOnTimeout (timers.js:232:11)
  255.     at Timer.listOnTimeout (timers.js:202:5)
  256. 2016-09-07T16:41:56.740Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: QUIT state=1
  257. 2016-09-07T16:41:56.743Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running quit hooks
  258. 2016-09-07T16:41:56.746Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 221 674b60ad8563 closing connection. Have a jolly good day.
  259. 2016-09-07T16:41:56.750Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running disconnect hooks
  260. 2016-09-07T16:41:56.752Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running disconnect hook in tls plugin
  261. 2016-09-07T16:41:56.755Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=disconnect plugin=tls function=hook_disconnect params="" retval=CONT msg=""
  262. 2016-09-07T16:41:56.759Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] disconnect ip=192.168.0.105 rdns="617-1.intra.local" helo="haraka.intra.local" relay=N early=N e    smtp=Y tls=Y pipe=N errors=0 txns=0 rcpts=0/0/0 msgs=0/0/0 bytes=0 lr="535 Authentication failed" time=2.635
  263. 2016-09-07T16:41:58.728Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  264. 2016-09-07T16:41:58.733Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  265.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  266.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  267.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  268.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  269.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  270.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  271.     at tryOnTimeout (timers.js:232:11)
  272.     at Timer.listOnTimeout (timers.js:202:5)
  273. 2016-09-07T16:42:02.733Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  274. 2016-09-07T16:42:02.734Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  275.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  276.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  277.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  278.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  279.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  280.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  281.     at tryOnTimeout (timers.js:232:11)
  282.     at Timer.listOnTimeout (timers.js:202:5)
  283. 2016-09-07T16:42:11.885Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="AUTH"     retval=OK msg=""
  284. 2016-09-07T16:42:24.890Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  285. 2016-09-07T16:42:24.893Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  286.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  287.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  288.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  289.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  290.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  291.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  292.     at tryOnTimeout (timers.js:232:11)
  293.     at Timer.listOnTimeout (timers.js:202:5)
  294. 2016-09-07T16:42:24.900Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  295. 2016-09-07T16:42:24.904Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  296.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  297.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  298.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  299.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  300.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  301.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  302.     at tryOnTimeout (timers.js:232:11)
  303.     at Timer.listOnTimeout (timers.js:202:5)
  304. 2016-09-07T16:42:24.909Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  305. 2016-09-07T16:42:24.911Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  306.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  307.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  308.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  309.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  310.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  311.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  312.     at tryOnTimeout (timers.js:232:11)
  313.     at Timer.listOnTimeout (timers.js:202:5)
  314. ^C2016-09-07T16:42:39.122Z [NOTICE] [-] [core] SIGINT received
  315. 2016-09-07T16:42:39.128Z [INFO] [-] [core] [outbound] Shutting down temp fail queue
  316. 2016-09-07T16:42:39.132Z [INFO] [-] [core] [cfreader] Shutting down enoent timer
  317. 2016-09-07T16:42:39.134Z [INFO] [-] [core] [cfreader] Clearing any sedation timers
  318. 2016-09-07T16:42:39.137Z [INFO] [-] [core] [cfreader] Removing watchers
  319. 2016-09-07T16:42:39.142Z [INFO] [-] [core] [plugins] Shutting down plugins
  320. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth# cd -
  321. /usr/local/haraka/config
  322. root@674b60ad8563:/usr/local/haraka/config# vi auth_proxy.js
  323. root@674b60ad8563:/usr/local/haraka/config# vi auth/auth_proxy.js
  324. root@674b60ad8563:/usr/local/haraka/config# ls
  325. dkim       internalcmd_key  loglevel  smtp.ini         smtp_forward.ini  smtpgreeting  tls_cert.pem
  326. host_list  log_timestamps   plugins   smtp_bridge.ini  smtp_proxy.ini    tls.ini       tls_key.pem
  327. root@674b60ad8563:/usr/local/haraka/config# vi smtp_bridge.ini
  328. root@674b60ad8563:/usr/local/haraka/config# reset
  329. cd -root@674b60ad8563:/usr/local/haraka/config# cd -
  330. /usr/lib/node_modules/Haraka/plugins/auth
  331. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth# cat auth_
  332. auth_base.js       auth_bridge.js     auth_ldap.js       auth_proxy.js      auth_vpopmaild.js
  333. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth# cat auth_proxy.js
  334. // Proxy AUTH requests selectively by domain
  335. var sock  = require('./line_socket');
  336. var utils = require('./utils');
  337. var smtp_regexp = /^([0-9]{3})([ -])(.*)/;
  338.  
  339. exports.register = function () {
  340.     this.inherits('auth/auth_base');
  341. };
  342.  
  343. exports.hook_capabilities = function (next, connection) {
  344.     if (connection.using_tls) {
  345.         var methods = [ 'PLAIN', 'LOGIN' ];
  346.         connection.capabilities.push('AUTH ' + methods.join(' '));
  347.         connection.notes.allowed_auth_methods = methods;
  348.     }
  349.     next();
  350. };
  351.  
  352. exports.check_plain_passwd = function (connection, user, passwd, cb) {
  353.     var domain;
  354.     if ((domain = /@([^@]+)$/.exec(user))) {
  355.         domain = domain[1].toLowerCase();
  356.     }
  357.     else {
  358.         // AUTH user not in user@domain.com format
  359.         connection.logerror(this, 'AUTH user="' + user + '" error="not in required format"');
  360.         return cb(false);
  361.     }
  362.  
  363.     // Check if domain exists in configuration file
  364.     var config = this.config.get('auth_proxy.ini');
  365.     if (!config.domains[domain]) {
  366.         connection.logerror(this, 'AUTH user="' + user + '" error="domain \'' + domain + '\' is not defined"');
  367.         return cb(false);
  368.     }
  369.  
  370.     this.try_auth_proxy(connection, config.domains[domain].split(/[,; ]/), user, passwd, cb);
  371. };
  372.  
  373. exports.try_auth_proxy = function (connection, hosts, user, passwd, cb) {
  374.     if (!hosts || (hosts && !hosts.length)) return cb(false);
  375.     if (typeof hosts !== 'object') {
  376.         hosts = [ hosts ];
  377.     }
  378.  
  379.     var self = this;
  380.     var host = hosts.shift();
  381.     var methods = [];
  382.     var auth_complete = false;
  383.     var auth_success = false;
  384.     var command = 'connect';
  385.     var response = [];
  386.     var secure = false;
  387.  
  388.     var hostport = host.split(/:/);
  389.     var socket = sock.connect(((hostport[1]) ? hostport[1] : 25), hostport[0]);
  390.     connection.logdebug(self, 'attempting connection to host=' + hostport[0] + ' port=' + ((hostport[1]) ? hostport[1] : 25) + 'with password: ' + passwd + ', and username: ' + user);
  391.     socket.setTimeout(30 * 1000);
  392.     socket.on('connect', function () {
  393.     });
  394.     socket.on('close', function () {
  395.         if (!auth_complete) {
  396.             // Try next host
  397.             return self.try_auth_proxy(connection, hosts, user, passwd, cb);
  398.         }
  399.         connection.loginfo(self, 'AUTH user="' + user + '" host="' + host + '" success=' + auth_success);
  400.         return cb(auth_success);
  401.     });
  402.     socket.on('timeout', function () {
  403.         connection.logerror(self, "connection timed out");
  404.         socket.end();
  405.         // Try next host
  406.         return self.try_auth_proxy(connection, hosts, user, passwd, cb);
  407.     });
  408.     socket.on('error', function (err) {
  409.         connection.logerror(self, "connection failed to host " + host + ": " + err);
  410.         return self.try_auth_proxy(connection, hosts, user, passwd, cb);
  411.     });
  412.     socket.send_command = function (cmd, data) {
  413.         var line = cmd + (data ? (' ' + data) : '');
  414.         if (cmd === 'dot') {
  415.             line = '.';
  416.         }
  417.         connection.logprotocol(self, "C: " + line);
  418.         command = cmd.toLowerCase();
  419.         this.write(line + "\r\n");
  420.         // Clear response buffer from previous command
  421.         response = [];
  422.     };
  423.     socket.on('line', function (line) {
  424.         connection.logprotocol(self, "S: " + line);
  425.         var matches = smtp_regexp.exec(line);
  426.         if (!matches) return;
  427.  
  428.         var code = matches[1];
  429.         var cont = matches[2];
  430.         var rest = matches[3];
  431.         response.push(rest);
  432.  
  433.         if (cont !== ' ') { // || cont !== '-') {
  434.             // Unrecognized response.
  435.             //connection.logerror(self, "unrecognized response: " + line);
  436.             //socket.end();
  437.             return;
  438.         }
  439.  
  440.         connection.logdebug(self, 'command state: ' + command);
  441.         if (command === 'ehlo') {
  442.             if (code[0] === '5') {
  443.                 // EHLO command rejected; abort
  444.                 socket.send_command('QUIT');
  445.                 return;
  446.             }
  447.             // Parse CAPABILITIES
  448.             var i;
  449.             for (i in response) {
  450.                 if (/^STARTTLS/.test(response[i])) {
  451.                     if (secure) continue;    // silly remote, we've already upgraded
  452.                     var key = self.config.get('tls_key.pem', 'binary');
  453.                     var cert = self.config.get('tls_cert.pem', 'binary');
  454.                     // Use TLS opportunistically if we found the key and certificate
  455.                     if (key && cert) {
  456.                         this.on('secure', function () {
  457.                             secure = true;
  458.                             socket.send_command('EHLO', self.config.get('me'));
  459.                         });
  460.                         socket.send_command('STARTTLS');
  461.                         return;
  462.                     }
  463.                 }
  464.                 else if (/^AUTH /.test(response[i])) {
  465.                     // Parse supported AUTH methods
  466.                     var parse = /^AUTH (.+)$/.exec(response[i]);
  467.                     methods = parse[1].split(/\s+/);
  468.                     connection.logdebug(self, 'found supported AUTH methods: ' + methods);
  469.                     // Prefer PLAIN as it's easiest
  470.                     if (methods.indexOf('PLAIN') !== -1) {
  471.                         socket.send_command('AUTH','PLAIN ' + utils.base64("\0" + user + "\0" + passwd));
  472.                         return;
  473.                     }
  474.                     else if (methods.indexOf('LOGIN') !== -1) {
  475.                         socket.send_command('AUTH','LOGIN');
  476.                         return;
  477.                     }
  478.                     else {
  479.                         // No compatible methods; abort...
  480.                         connection.logdebug(self, 'no compatible AUTH methods');
  481.                         socket.send_command('QUIT');
  482.                         return;
  483.                     }
  484.                 }
  485.             }
  486.         }
  487.         if (command === 'auth') {
  488.             // Handle LOGIN
  489.             if (code[0] === '3' && response[0] === 'VXNlcm5hbWU6') {
  490.                 // Write to the socket directly to keep the state at 'auth'
  491.                 this.write(utils.base64(user) + "\r\n");
  492.                 response = [];
  493.                 return;
  494.             }
  495.             else if (code[0] === '3' && response[0] === 'UGFzc3dvcmQ6') {
  496.                 this.write(utils.base64(passwd) + "\r\n");
  497.                 response = [];
  498.                 return;
  499.             }
  500.             if (code[0] === '5') {
  501.                 // Initial attempt failed; strip domain and retry.
  502.                 var u;
  503.                 if ((u = /^([^@]+)@.+$/.exec(user))) {
  504.                     user = u[1];
  505.                     if (methods.indexOf('PLAIN') !== -1) {
  506.                         socket.send_command('AUTH', 'PLAIN ' + utils.base64("\0" + user + "\0" + passwd));
  507.                     }
  508.                     else if (methods.indexOf('LOGIN') !== -1) {
  509.                         socket.send_command('AUTH', 'LOGIN');
  510.                     }
  511.                     return;
  512.                 }
  513.                 else {
  514.                     // Don't attempt any other hosts
  515.                     auth_complete = true;
  516.                 }
  517.             }
  518.         }
  519.         if (/^[345]/.test(code)) {
  520.             // Got an unhandled error
  521.             connection.logdebug(self, 'error: ' + line);
  522.             socket.send_command('QUIT');
  523.             return;
  524.         }
  525.         switch (command) {
  526.             case 'starttls':
  527.                 var tls_options = { key: key, cert: cert };
  528.                 this.upgrade(tls_options);
  529.                 break;
  530.             case 'connect':
  531.                 socket.send_command('EHLO', self.config.get('me'));
  532.                 break;
  533.             case 'auth':
  534.                 // AUTH was successful
  535.                 auth_complete = true;
  536.                 auth_success = true;
  537.                 socket.send_command('QUIT');
  538.                 break;
  539.             case 'ehlo':
  540.             case 'helo':
  541.             case 'quit':
  542.                 socket.end();
  543.                 break;
  544.             default:
  545.                 throw new Error("[auth/auth_proxy] unknown command: " + command);
  546.         }
  547.     });
  548. };
  549. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth#
  550. 2016-09-07T16:41:36.557Z [DEBUG] [-] [core] registered hook unrecognized_command to auth/auth_bridge.hook_unrecognized_command priority 0
  551. 2016-09-07T16:41:36.559Z [INFO] [-] [core] Loading plugin: rcpt_to.in_host_list
  552. 2016-09-07T16:41:36.560Z [DEBUG] [-] [core] no timeout in rcpt_to.in_host_list.timeout
  553. 2016-09-07T16:41:36.562Z [DEBUG] [-] [core] no timeout in plugin_timeout
  554. 2016-09-07T16:41:36.562Z [DEBUG] [-] [core] plugin rcpt_to.in_host_list timeout is: 30s
  555. 2016-09-07T16:41:36.563Z [DEBUG] [-] [core] no timeout in rcpt_to.host_list_base.timeout
  556. 2016-09-07T16:41:36.565Z [DEBUG] [-] [core] no timeout in plugin_timeout
  557. 2016-09-07T16:41:36.566Z [DEBUG] [-] [core] plugin rcpt_to.host_list_base timeout is: 30s
  558. 2016-09-07T16:41:36.567Z [DEBUG] [-] [core] registered hook rcpt to rcpt_to.in_host_list.hook_rcpt priority 0
  559. 2016-09-07T16:41:36.568Z [DEBUG] [-] [core] registered hook mail to rcpt_to.in_host_list.hook_mail priority 0
  560. 2016-09-07T16:41:36.568Z [INFO] [-] [core] Loading plugin: queue/smtp_bridge
  561. 2016-09-07T16:41:36.568Z [DEBUG] [-] [core] no timeout in queue/smtp_bridge.timeout
  562. 2016-09-07T16:41:36.568Z [DEBUG] [-] [core] no timeout in plugin_timeout
  563. 2016-09-07T16:41:36.570Z [DEBUG] [-] [core] plugin queue/smtp_bridge timeout is: 30s
  564. 2016-09-07T16:41:36.571Z [DEBUG] [-] [core] registered hook data_post to queue/smtp_bridge.hook_data_post priority 0
  565. 2016-09-07T16:41:36.572Z [DEBUG] [-] [core] registered hook get_mx to queue/smtp_bridge.hook_get_mx priority 0
  566. 2016-09-07T16:41:36.597Z [NOTICE] [-] [core] Listening on :::5877
  567. 2016-09-07T16:41:36.601Z [DEBUG] [-] [server] running init_master hooks
  568. 2016-09-07T16:41:36.606Z [INFO] [-] [core] [outbound] Loading outbound queue from /usr/local/haraka/queue
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606. 2016-09-07T16:41:54.140Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] connect ip=192.168.0.105 port=46416 local_ip=:: local_port=5877
  607. 2016-09-07T16:41:54.143Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running connect_init hooks
  608. 2016-09-07T16:41:54.147Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running connect_init_respond
  609. 2016-09-07T16:41:54.149Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running lookup_rdns hooks
  610. 2016-09-07T16:41:54.156Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running connect hooks
  611. 2016-09-07T16:41:54.162Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 220 674b60ad8563 ESMTP mail.mgyosz.hu Haraka MAIL Service, Version: 6.0.3790.4675
  612. 2016-09-07T16:41:54.175Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: EHLO haraka.intra.local state=1
  613. 2016-09-07T16:41:54.180Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running ehlo hooks
  614. 2016-09-07T16:41:54.184Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hooks
  615. 2016-09-07T16:41:54.188Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in tls plugin
  616. 2016-09-07T16:41:54.194Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=tls function=tls_capabilities params="" retval=CONT msg=""
  617. 2016-09-07T16:41:54.197Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in auth/auth_bridge plugin
  618. 2016-09-07T16:41:54.201Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=auth/auth_bridge function=hook_capabilities params="" retval=CONT msg=""
  619. 2016-09-07T16:41:54.204Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-674b60ad8563 Hello 617-1.intra.local [192.168.0.105], Haraka is at your service.
  620. 2016-09-07T16:41:54.206Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-PIPELINING
  621. 2016-09-07T16:41:54.208Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-8BITMIME
  622. 2016-09-07T16:41:54.211Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-SIZE 0
  623. 2016-09-07T16:41:54.214Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250 STARTTLS
  624. 2016-09-07T16:41:54.221Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: STARTTLS state=1
  625. 2016-09-07T16:41:54.223Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  626. 2016-09-07T16:41:54.226Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  627. 2016-09-07T16:41:54.230Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 220 Go ahead.
  628. 2016-09-07T16:41:54.236Z [DEBUG] [-] [core] Upgrading to TLS
  629. 2016-09-07T16:41:54.357Z [DEBUG] [-] [core] TLS secured.
  630. 2016-09-07T16:41:54.363Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [tls] secured: cipher=ECDHE-RSA-AES256-GCM-SHA384 version=TLSv1/SSLv3 verified=false error="Error: unable     to get issuer certificate"
  631. 2016-09-07T16:41:54.366Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="STARTTLS" retval=OK     msg=""
  632. 2016-09-07T16:41:54.373Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: EHLO haraka.intra.local state=1
  633. 2016-09-07T16:41:54.376Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running ehlo hooks
  634. 2016-09-07T16:41:54.380Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hooks
  635. 2016-09-07T16:41:54.382Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in tls plugin
  636. 2016-09-07T16:41:54.385Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=tls function=tls_capabilities params="" retval=CONT msg=""
  637. 2016-09-07T16:41:54.387Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running capabilities hook in auth/auth_bridge plugin
  638. 2016-09-07T16:41:54.390Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=capabilities plugin=auth/auth_bridge function=hook_capabilities params="" retval=CONT msg=""
  639. 2016-09-07T16:41:54.392Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-674b60ad8563 Hello 617-1.intra.local [192.168.0.105], Haraka is at your service.
  640. 2016-09-07T16:41:54.395Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-PIPELINING
  641. 2016-09-07T16:41:54.397Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-8BITMIME
  642. 2016-09-07T16:41:54.399Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250-SIZE 0
  643. 2016-09-07T16:41:54.401Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 250 AUTH PLAIN LOGIN
  644. 2016-09-07T16:41:54.410Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: AUTH LOGIN state=1
  645. 2016-09-07T16:41:54.413Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  646. 2016-09-07T16:41:54.415Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  647. 2016-09-07T16:41:54.418Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="AUTH" retval=CONT     msg=""
  648. 2016-09-07T16:41:54.420Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  649. 2016-09-07T16:41:54.426Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 334 VXNlcm5hbWU6
  650. 2016-09-07T16:41:54.429Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="AUTH"     retval=OK msg=""
  651. 2016-09-07T16:41:54.434Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: c3VwcG9ydA== state=1
  652. 2016-09-07T16:41:54.437Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  653. 2016-09-07T16:41:54.439Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  654. 2016-09-07T16:41:54.443Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="c3VwcG9ydA==" retv    al=CONT msg=""
  655. 2016-09-07T16:41:54.445Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  656. 2016-09-07T16:41:54.449Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 334 UGFzc3dvcmQ6
  657. 2016-09-07T16:41:54.452Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="c3Vwc    G9ydA==" retval=OK msg=""
  658. 2016-09-07T16:41:54.457Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: bWd5b3N6c3VwcG9ydGprbGprbA== state=1
  659. 2016-09-07T16:41:54.460Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  660. 2016-09-07T16:41:54.462Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  661. 2016-09-07T16:41:54.465Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="bWd5b3N6c3VwcG9ydG    prbGprbA==" retval=CONT msg=""
  662. 2016-09-07T16:41:54.467Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  663. 2016-09-07T16:41:54.481Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] attempting connection to host=192.168.0.1 port=25with password: mgyoszsupportjkljkl,     and username: support
  664. 2016-09-07T16:41:54.496Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 mail.mgyosz.hu Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready a    t  Wed, 7 Sep 2016 18:41:54 +0200 \r\n
  665. 2016-09-07T16:41:54.498Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: connect
  666. 2016-09-07T16:41:54.502Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  667. 2016-09-07T16:41:54.506Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  668. 2016-09-07T16:41:54.509Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  669. 2016-09-07T16:41:54.511Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  670. 2016-09-07T16:41:54.513Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  671. 2016-09-07T16:41:54.517Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  672. 2016-09-07T16:41:54.519Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  673. 2016-09-07T16:41:54.521Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  674. 2016-09-07T16:41:54.526Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  675. 2016-09-07T16:41:54.530Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  676. 2016-09-07T16:41:54.532Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  677. 2016-09-07T16:41:54.541Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  678. 2016-09-07T16:41:54.543Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TLS\r\n
  679. 2016-09-07T16:41:54.546Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-STARTTLS\r\n
  680. 2016-09-07T16:41:54.548Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  681. 2016-09-07T16:41:54.550Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  682. 2016-09-07T16:41:54.553Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  683. 2016-09-07T16:41:54.555Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  684. 2016-09-07T16:41:54.557Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  685. 2016-09-07T16:41:54.559Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  686. 2016-09-07T16:41:54.563Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  687. 2016-09-07T16:41:54.565Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  688. 2016-09-07T16:41:54.568Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: STARTTLS
  689. 2016-09-07T16:41:54.575Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 2.0.0 SMTP server ready\r\n
  690. 2016-09-07T16:41:54.577Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: starttls
  691. 2016-09-07T16:41:54.588Z [DEBUG] [-] [core] client TLS upgrade in progress, awaiting secured.
  692. 2016-09-07T16:41:54.621Z [DEBUG] [-] [core] client TLS secured.
  693. 2016-09-07T16:41:54.629Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  694. 2016-09-07T16:41:54.636Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  695. 2016-09-07T16:41:54.648Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  696. 2016-09-07T16:41:54.650Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  697. 2016-09-07T16:41:54.653Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  698. 2016-09-07T16:41:54.655Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  699. 2016-09-07T16:41:54.657Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  700. 2016-09-07T16:41:54.659Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  701. 2016-09-07T16:41:54.662Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  702. 2016-09-07T16:41:54.664Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  703. 2016-09-07T16:41:54.666Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  704. 2016-09-07T16:41:54.668Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  705. 2016-09-07T16:41:54.669Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  706. 2016-09-07T16:41:54.671Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  707. 2016-09-07T16:41:54.673Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  708. 2016-09-07T16:41:54.675Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  709. 2016-09-07T16:41:54.678Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  710. 2016-09-07T16:41:54.679Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  711. 2016-09-07T16:41:54.680Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  712. 2016-09-07T16:41:54.682Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  713. 2016-09-07T16:41:54.684Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] found supported AUTH methods: LOGIN
  714. 2016-09-07T16:41:54.690Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: AUTH LOGIN
  715. 2016-09-07T16:41:54.696Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:1408F10B:SSL routin    es:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:362:
  716. 2016-09-07T16:41:54.705Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 1 seconds
  717. 2016-09-07T16:41:54.710Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  718. 2016-09-07T16:41:54.713Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 2 seconds
  719. 2016-09-07T16:41:54.716Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 334 VXNlcm5hbWU6\r\n
  720. 2016-09-07T16:41:54.719Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: auth
  721. 2016-09-07T16:41:54.722Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  722. 2016-09-07T16:41:54.725Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 4 seconds
  723. 2016-09-07T16:41:54.728Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  724. 2016-09-07T16:41:54.730Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 8 seconds
  725. 2016-09-07T16:41:55.709Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 535 Authentication failed
  726. 2016-09-07T16:41:55.713Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="bWd5b    3N6c3VwcG9ydGprbGprbA==" retval=OK msg=""
  727. 2016-09-07T16:41:55.718Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: AUTH PLAIN AHN1cHBvcnQAbWd5b3N6c3VwcG9ydGprbGprbA== state=1
  728. 2016-09-07T16:41:55.720Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hooks
  729. 2016-09-07T16:41:55.723Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in tls plugin
  730. 2016-09-07T16:41:55.725Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="AUTH" retval=CONT     msg=""
  731. 2016-09-07T16:41:55.728Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running unrecognized_command hook in auth/auth_bridge plugin
  732. 2016-09-07T16:41:55.733Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] attempting connection to host=192.168.0.1 port=25with password: mgyoszsupportjkljkl,     and username: support
  733. 2016-09-07T16:41:55.738Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 mail.mgyosz.hu Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready a    t  Wed, 7 Sep 2016 18:41:55 +0200 \r\n
  734. 2016-09-07T16:41:55.740Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: connect
  735. 2016-09-07T16:41:55.743Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  736. 2016-09-07T16:41:55.746Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  737. 2016-09-07T16:41:55.748Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  738. 2016-09-07T16:41:55.750Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  739. 2016-09-07T16:41:55.753Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  740. 2016-09-07T16:41:55.755Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  741. 2016-09-07T16:41:55.757Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  742. 2016-09-07T16:41:55.759Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  743. 2016-09-07T16:41:55.761Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  744. 2016-09-07T16:41:55.764Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  745. 2016-09-07T16:41:55.765Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  746. 2016-09-07T16:41:55.768Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  747. 2016-09-07T16:41:55.771Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TLS\r\n
  748. 2016-09-07T16:41:55.773Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-STARTTLS\r\n
  749. 2016-09-07T16:41:55.775Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  750. 2016-09-07T16:41:55.777Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  751. 2016-09-07T16:41:55.779Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  752. 2016-09-07T16:41:55.780Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  753. 2016-09-07T16:41:55.782Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  754. 2016-09-07T16:41:55.783Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  755. 2016-09-07T16:41:55.785Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  756. 2016-09-07T16:41:55.786Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  757. 2016-09-07T16:41:55.789Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: STARTTLS
  758. 2016-09-07T16:41:55.792Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 220 2.0.0 SMTP server ready\r\n
  759. 2016-09-07T16:41:55.794Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: starttls
  760. 2016-09-07T16:41:55.800Z [DEBUG] [-] [core] client TLS upgrade in progress, awaiting secured.
  761. 2016-09-07T16:41:55.830Z [DEBUG] [-] [core] client TLS secured.
  762. 2016-09-07T16:41:55.834Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: EHLO 674b60ad8563
  763. 2016-09-07T16:41:55.838Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-mail.mgyosz.hu Hello [192.168.0.105]\r\n
  764. 2016-09-07T16:41:55.841Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-TURN\r\n
  765. 2016-09-07T16:41:55.843Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-SIZE 26214400\r\n
  766. 2016-09-07T16:41:55.845Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ETRN\r\n
  767. 2016-09-07T16:41:55.848Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-PIPELINING\r\n
  768. 2016-09-07T16:41:55.850Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-DSN\r\n
  769. 2016-09-07T16:41:55.852Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-ENHANCEDSTATUSCODES\r\n
  770. 2016-09-07T16:41:55.854Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-8bitmime\r\n
  771. 2016-09-07T16:41:55.857Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-BINARYMIME\r\n
  772. 2016-09-07T16:41:55.857Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-CHUNKING\r\n
  773. 2016-09-07T16:41:55.858Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-VRFY\r\n
  774. 2016-09-07T16:41:55.858Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS LOGIN\r\n
  775. 2016-09-07T16:41:55.860Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-EXPS=LOGIN\r\n
  776. 2016-09-07T16:41:55.861Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH LOGIN\r\n
  777. 2016-09-07T16:41:55.862Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-AUTH=LOGIN\r\n
  778. 2016-09-07T16:41:55.865Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-X-LINK2STATE\r\n
  779. 2016-09-07T16:41:55.867Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250-XEXCH50\r\n
  780. 2016-09-07T16:41:55.870Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 250 OK\r\n
  781. 2016-09-07T16:41:55.871Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: ehlo
  782. 2016-09-07T16:41:55.873Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] found supported AUTH methods: LOGIN
  783. 2016-09-07T16:41:55.875Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] C: AUTH LOGIN
  784. 2016-09-07T16:41:55.879Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:1408F10B:SSL routin    es:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:362:
  785. 2016-09-07T16:41:55.882Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 16 seconds
  786. 2016-09-07T16:41:55.885Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  787. 2016-09-07T16:41:55.888Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 29 seconds
  788. 2016-09-07T16:41:55.890Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] S: 334 VXNlcm5hbWU6\r\n
  789. 2016-09-07T16:41:55.893Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] command state: auth
  790. 2016-09-07T16:41:55.896Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  791. 2016-09-07T16:41:55.898Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 29 seconds
  792. 2016-09-07T16:41:55.901Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] connection failed to host 192.168.0.1:25: Error: 3075053312:error:14095044:SSL routin    es:ssl3_read_n:internal error:../deps/openssl/openssl/ssl/s3_pkt.c:230:
  793. 2016-09-07T16:41:55.904Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [auth/auth_bridge] delaying for 29 seconds
  794. 2016-09-07T16:41:56.718Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 535 Authentication failed
  795. 2016-09-07T16:41:56.721Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  796. 2016-09-07T16:41:56.730Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  797.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  798.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  799.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  800.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  801.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:512:15)
  802.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  803.     at tryOnTimeout (timers.js:232:11)
  804.     at Timer.listOnTimeout (timers.js:202:5)
  805. 2016-09-07T16:41:56.740Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] C: QUIT state=1
  806. 2016-09-07T16:41:56.743Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running quit hooks
  807. 2016-09-07T16:41:56.746Z [PROTOCOL] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] S: 221 674b60ad8563 closing connection. Have a jolly good day.
  808. 2016-09-07T16:41:56.750Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running disconnect hooks
  809. 2016-09-07T16:41:56.752Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] running disconnect hook in tls plugin
  810. 2016-09-07T16:41:56.755Z [DEBUG] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=disconnect plugin=tls function=hook_disconnect params="" retval=CONT msg=""
  811. 2016-09-07T16:41:56.759Z [NOTICE] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] disconnect ip=192.168.0.105 rdns="617-1.intra.local" helo="haraka.intra.local" relay=N early=N e    smtp=Y tls=Y pipe=N errors=0 txns=0 rcpts=0/0/0 msgs=0/0/0 bytes=0 lr="535 Authentication failed" time=2.635
  812. 2016-09-07T16:41:58.728Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  813. 2016-09-07T16:41:58.733Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  814.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  815.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  816.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  817.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  818.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  819.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  820.     at tryOnTimeout (timers.js:232:11)
  821.     at Timer.listOnTimeout (timers.js:202:5)
  822. 2016-09-07T16:42:02.733Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  823. 2016-09-07T16:42:02.734Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  824.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  825.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  826.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  827.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  828.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  829.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  830.     at tryOnTimeout (timers.js:232:11)
  831.     at Timer.listOnTimeout (timers.js:202:5)
  832. 2016-09-07T16:42:11.885Z [INFO] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] hook=unrecognized_command plugin=auth/auth_bridge function=hook_unrecognized_command params="AUTH"     retval=OK msg=""
  833. 2016-09-07T16:42:24.890Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  834. 2016-09-07T16:42:24.893Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  835.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  836.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  837.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  838.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  839.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  840.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  841.     at tryOnTimeout (timers.js:232:11)
  842.     at Timer.listOnTimeout (timers.js:202:5)
  843. 2016-09-07T16:42:24.900Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  844. 2016-09-07T16:42:24.904Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  845.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  846.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  847.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  848.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  849.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  850.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  851.     at tryOnTimeout (timers.js:232:11)
  852.     at Timer.listOnTimeout (timers.js:202:5)
  853. 2016-09-07T16:42:24.909Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] auth/auth_bridge plugin ran callback multiple times - ignoring subsequent calls
  854. 2016-09-07T16:42:24.911Z [ERROR] [E1EDD1E7-CEC5-4A9D-9041-E1BA50542E31] [core] Error
  855.     at callback (/usr/lib/node_modules/Haraka/plugins.js:431:34)
  856.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:146:28
  857.     at Connection.reset_transaction (/usr/lib/node_modules/Haraka/connection.js:580:17)
  858.     at /usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:145:28
  859.     at Connection.respond (/usr/lib/node_modules/Haraka/connection.js:454:19)
  860.     at Timeout._onTimeout (/usr/lib/node_modules/Haraka/plugins/auth/auth_base.js:144:24)
  861.     at tryOnTimeout (timers.js:232:11)
  862.     at Timer.listOnTimeout (timers.js:202:5)
  863. ^C2016-09-07T16:42:39.122Z [NOTICE] [-] [core] SIGINT received
  864. 2016-09-07T16:42:39.128Z [INFO] [-] [core] [outbound] Shutting down temp fail queue
  865. 2016-09-07T16:42:39.132Z [INFO] [-] [core] [cfreader] Shutting down enoent timer
  866. 2016-09-07T16:42:39.134Z [INFO] [-] [core] [cfreader] Clearing any sedation timers
  867. 2016-09-07T16:42:39.137Z [INFO] [-] [core] [cfreader] Removing watchers
  868. 2016-09-07T16:42:39.142Z [INFO] [-] [core] [plugins] Shutting down plugins
  869. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth# cd -
  870. /usr/local/haraka/config
  871. root@674b60ad8563:/usr/local/haraka/config# vi auth_proxy.js
  872. root@674b60ad8563:/usr/local/haraka/config# vi auth/auth_proxy.js
  873. root@674b60ad8563:/usr/local/haraka/config# ls
  874. dkim       internalcmd_key  loglevel  smtp.ini         smtp_forward.ini  smtpgreeting  tls_cert.pem
  875. host_list  log_timestamps   plugins   smtp_bridge.ini  smtp_proxy.ini    tls.ini       tls_key.pem
  876. root@674b60ad8563:/usr/local/haraka/config# vi smtp_bridge.ini
  877. root@674b60ad8563:/usr/local/haraka/config# reset
  878. cd -root@674b60ad8563:/usr/local/haraka/config# cd -
  879. /usr/lib/node_modules/Haraka/plugins/auth
  880. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth# cat auth_
  881. auth_base.js       auth_bridge.js     auth_ldap.js       auth_proxy.js      auth_vpopmaild.js
  882. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth# cat auth_proxy.js
  883. // Proxy AUTH requests selectively by domain
  884. var sock  = require('./line_socket');
  885. var utils = require('./utils');
  886. var smtp_regexp = /^([0-9]{3})([ -])(.*)/;
  887.  
  888. exports.register = function () {
  889.     this.inherits('auth/auth_base');
  890. };
  891.  
  892. exports.hook_capabilities = function (next, connection) {
  893.     if (connection.using_tls) {
  894.         var methods = [ 'PLAIN', 'LOGIN' ];
  895.         connection.capabilities.push('AUTH ' + methods.join(' '));
  896.         connection.notes.allowed_auth_methods = methods;
  897.     }
  898.     next();
  899. };
  900.  
  901. exports.check_plain_passwd = function (connection, user, passwd, cb) {
  902.     var domain;
  903.     if ((domain = /@([^@]+)$/.exec(user))) {
  904.         domain = domain[1].toLowerCase();
  905.     }
  906.     else {
  907.         // AUTH user not in user@domain.com format
  908.         connection.logerror(this, 'AUTH user="' + user + '" error="not in required format"');
  909.         return cb(false);
  910.     }
  911.  
  912.     // Check if domain exists in configuration file
  913.     var config = this.config.get('auth_proxy.ini');
  914.     if (!config.domains[domain]) {
  915.         connection.logerror(this, 'AUTH user="' + user + '" error="domain \'' + domain + '\' is not defined"');
  916.         return cb(false);
  917.     }
  918.  
  919.     this.try_auth_proxy(connection, config.domains[domain].split(/[,; ]/), user, passwd, cb);
  920. };
  921.  
  922. exports.try_auth_proxy = function (connection, hosts, user, passwd, cb) {
  923.     if (!hosts || (hosts && !hosts.length)) return cb(false);
  924.     if (typeof hosts !== 'object') {
  925.         hosts = [ hosts ];
  926.     }
  927.  
  928.     var self = this;
  929.     var host = hosts.shift();
  930.     var methods = [];
  931.     var auth_complete = false;
  932.     var auth_success = false;
  933.     var command = 'connect';
  934.     var response = [];
  935.     var secure = false;
  936.  
  937.     var hostport = host.split(/:/);
  938.     var socket = sock.connect(((hostport[1]) ? hostport[1] : 25), hostport[0]);
  939.     connection.logdebug(self, 'attempting connection to host=' + hostport[0] + ' port=' + ((hostport[1]) ? hostport[1] : 25) + 'with password: ' + passwd + ', and username: ' + user);
  940.     socket.setTimeout(30 * 1000);
  941.     socket.on('connect', function () {
  942.     });
  943.     socket.on('close', function () {
  944.         if (!auth_complete) {
  945.             // Try next host
  946.             return self.try_auth_proxy(connection, hosts, user, passwd, cb);
  947.         }
  948.         connection.loginfo(self, 'AUTH user="' + user + '" host="' + host + '" success=' + auth_success);
  949.         return cb(auth_success);
  950.     });
  951.     socket.on('timeout', function () {
  952.         connection.logerror(self, "connection timed out");
  953.         socket.end();
  954.         // Try next host
  955.         return self.try_auth_proxy(connection, hosts, user, passwd, cb);
  956.     });
  957.     socket.on('error', function (err) {
  958.         connection.logerror(self, "connection failed to host " + host + ": " + err);
  959.         return self.try_auth_proxy(connection, hosts, user, passwd, cb);
  960.     });
  961.     socket.send_command = function (cmd, data) {
  962.         var line = cmd + (data ? (' ' + data) : '');
  963.         if (cmd === 'dot') {
  964.             line = '.';
  965.         }
  966.         connection.logprotocol(self, "C: " + line);
  967.         command = cmd.toLowerCase();
  968.         this.write(line + "\r\n");
  969.         // Clear response buffer from previous command
  970.         response = [];
  971.     };
  972.     socket.on('line', function (line) {
  973.         connection.logprotocol(self, "S: " + line);
  974.         var matches = smtp_regexp.exec(line);
  975.         if (!matches) return;
  976.  
  977.         var code = matches[1];
  978.         var cont = matches[2];
  979.         var rest = matches[3];
  980.         response.push(rest);
  981.  
  982.         if (cont !== ' ') { // || cont !== '-') {
  983.             // Unrecognized response.
  984.             //connection.logerror(self, "unrecognized response: " + line);
  985.             //socket.end();
  986.             return;
  987.         }
  988.  
  989.         connection.logdebug(self, 'command state: ' + command);
  990.         if (command === 'ehlo') {
  991.             if (code[0] === '5') {
  992.                 // EHLO command rejected; abort
  993.                 socket.send_command('QUIT');
  994.                 return;
  995.             }
  996.             // Parse CAPABILITIES
  997.             var i;
  998.             for (i in response) {
  999.                 if (/^STARTTLS/.test(response[i])) {
  1000.                     if (secure) continue;    // silly remote, we've already upgraded
  1001.                     var key = self.config.get('tls_key.pem', 'binary');
  1002.                     var cert = self.config.get('tls_cert.pem', 'binary');
  1003.                     // Use TLS opportunistically if we found the key and certificate
  1004.                     if (key && cert) {
  1005.                         this.on('secure', function () {
  1006.                             secure = true;
  1007.                             socket.send_command('EHLO', self.config.get('me'));
  1008.                         });
  1009.                         socket.send_command('STARTTLS');
  1010.                         return;
  1011.                     }
  1012.                 }
  1013.                 else if (/^AUTH /.test(response[i])) {
  1014.                     // Parse supported AUTH methods
  1015.                     var parse = /^AUTH (.+)$/.exec(response[i]);
  1016.                     methods = parse[1].split(/\s+/);
  1017.                     connection.logdebug(self, 'found supported AUTH methods: ' + methods);
  1018.                     // Prefer PLAIN as it's easiest
  1019.                     if (methods.indexOf('PLAIN') !== -1) {
  1020.                         socket.send_command('AUTH','PLAIN ' + utils.base64("\0" + user + "\0" + passwd));
  1021.                         return;
  1022.                     }
  1023.                     else if (methods.indexOf('LOGIN') !== -1) {
  1024.                         socket.send_command('AUTH','LOGIN');
  1025.                         return;
  1026.                     }
  1027.                     else {
  1028.                         // No compatible methods; abort...
  1029.                         connection.logdebug(self, 'no compatible AUTH methods');
  1030.                         socket.send_command('QUIT');
  1031.                         return;
  1032.                     }
  1033.                 }
  1034.             }
  1035.         }
  1036.         if (command === 'auth') {
  1037.             // Handle LOGIN
  1038.             if (code[0] === '3' && response[0] === 'VXNlcm5hbWU6') {
  1039.                 // Write to the socket directly to keep the state at 'auth'
  1040.                 this.write(utils.base64(user) + "\r\n");
  1041.                 response = [];
  1042.                 return;
  1043.             }
  1044.             else if (code[0] === '3' && response[0] === 'UGFzc3dvcmQ6') {
  1045.                 this.write(utils.base64(passwd) + "\r\n");
  1046.                 response = [];
  1047.                 return;
  1048.             }
  1049.             if (code[0] === '5') {
  1050.                 // Initial attempt failed; strip domain and retry.
  1051.                 var u;
  1052.                 if ((u = /^([^@]+)@.+$/.exec(user))) {
  1053.                     user = u[1];
  1054.                     if (methods.indexOf('PLAIN') !== -1) {
  1055.                         socket.send_command('AUTH', 'PLAIN ' + utils.base64("\0" + user + "\0" + passwd));
  1056.                     }
  1057.                     else if (methods.indexOf('LOGIN') !== -1) {
  1058.                         socket.send_command('AUTH', 'LOGIN');
  1059.                     }
  1060.                     return;
  1061.                 }
  1062.                 else {
  1063.                     // Don't attempt any other hosts
  1064.                     auth_complete = true;
  1065.                 }
  1066.             }
  1067.         }
  1068.         if (/^[345]/.test(code)) {
  1069.             // Got an unhandled error
  1070.             connection.logdebug(self, 'error: ' + line);
  1071.             socket.send_command('QUIT');
  1072.             return;
  1073.         }
  1074.         switch (command) {
  1075.             case 'starttls':
  1076.                 var tls_options = { key: key, cert: cert };
  1077.                 this.upgrade(tls_options);
  1078.                 break;
  1079.             case 'connect':
  1080.                 socket.send_command('EHLO', self.config.get('me'));
  1081.                 break;
  1082.             case 'auth':
  1083.                 // AUTH was successful
  1084.                 auth_complete = true;
  1085.                 auth_success = true;
  1086.                 socket.send_command('QUIT');
  1087.                 break;
  1088.             case 'ehlo':
  1089.             case 'helo':
  1090.             case 'quit':
  1091.                 socket.end();
  1092.                 break;
  1093.             default:
  1094.                 throw new Error("[auth/auth_proxy] unknown command: " + command);
  1095.         }
  1096.     });
  1097. };
  1098. root@674b60ad8563:/usr/lib/node_modules/Haraka/plugins/auth#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement