haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.09k stars 662 forks source link

Stuck with outbound example on the manual #1304

Closed meepeek closed 8 years ago

meepeek commented 8 years ago

With a fresh install Haraka via npm, I did follow this document : https://haraka.github.io/manual/tutorials/SettingUpOutbound.html

Testing with swaks returns successfully authentication, however the email had not been send for queue time out. Can you please guide me how to fix it.

This is what it looks like on the client:

[thee:~]$ swaks -f me@meepeek.com -t maomeaow@gmail.com -s localhost -p 3333 -au thee -ap test
=== Trying localhost:3333...
=== Connected to localhost.
<-  220 Feather-00 ESMTP Haraka 2.7.2 ready
 -> EHLO Feather-00
<-  250-Feather-00 Hello Unknown [127.0.0.1], Haraka is at your service.
<-  250-PIPELINING
<-  250-8BITMIME
<-  250-SIZE 26214400
<-  250 AUTH CRAM-MD5
 -> AUTH CRAM-MD5
<-  334 PDJjMDE1LjE1MjRmMjEwYzhmQEZlYXRoZXItMDA+
 -> dGhlZSAwMWFmODI5MDk0MzAyMTU0MmFhNTQ2NDYyMmMxMjgzMw==
<-  235 Authentication successful
 -> MAIL FROM:<me@meepeek.com>
<-  250 sender <me@meepeek.com> OK
 -> RCPT TO:<maomeaow@gmail.com>
<-  250 recipient <maomeaow@gmail.com> OK
 -> DATA
<-  354 go ahead, make my day
 -> Date: Sun, 17 Jan 2016 10:28:31 +0000
 -> To: maomeaow@gmail.com
 -> From: me@meepeek.com
 -> Subject: test Sun, 17 Jan 2016 10:28:31 +0000
 -> X-Mailer: swaks v20120320.0 jetmore.org/john/code/swaks/
 ->
 -> This is a test mailing
 ->
 -> .
<** Timeout (30 secs) waiting for server response
 -> QUIT
<** 450 plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B207.1)
=== Connection closed with remote host.
[thee:~]$

And this is the log output from the server

[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=data_post plugin=data.headers function=invalid_date params="" retval=CONT msg=""
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running data_post hook in data.headers plugin
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=data_post plugin=data.headers function=invalid_return_path params="" retval=CONT msg=""
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running data_post hook in data.headers plugin
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=data_post plugin=data.headers function=user_agent params="" retval=CONT msg=""
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running data_post hook in data.headers plugin
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=data_post plugin=data.headers function=direct_to_mx params="" retval=CONT msg=""
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running data_post hook in data.headers plugin
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=data_post plugin=data.headers function=from_match params="" retval=CONT msg=""
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running data_post hook in data.headers plugin
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=data_post plugin=data.headers function=delivered_to params="" retval=CONT msg=""
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running data_post hook in data.headers plugin
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=data_post plugin=data.headers function=mailing_list params="" retval=CONT msg=""
[NOTICE] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] message mid="" size=221 rcpts=1/0/0 delay=0.021 code=CONT msg=""
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running queue_outbound hooks
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running queue_outbound hook in queue/smtp_forward plugin
[INFO] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [queue/smtp_forward] forwarding to localhost:2555
[INFO] [-] [core] [smtp_client_pool] [2555:localhost:300] dispense() clients=1 available=0
[DEBUG] [-] [core] [smtp_client_pool] [2555:localhost:300] createResource() - creating obj - count=1 min=0 max=1000
[DEBUG] [-] [core] [smtp_client_pool] uuid=F9075CB3-1D28-4E5F-929D-4F4761F5262B host=localhost port=2555 pool_timeout=300 created
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [queue/smtp_forward] Got smtp_client: F9075CB3-1D28-4E5F-929D-4F4761F5262B
[DEBUG] [-] [core] [smtp_client_pool] F9075CB3-1D28-4E5F-929D-4F4761F5262B destroyed, state=2
[DEBUG] [-] [core] [smtp_client_pool] F9075CB3-1D28-4E5F-929D-4F4761F5262B: SMTP connection errored Error: connect ECONNREFUSED 127.0.0.1:2555 (state=4)
[DEBUG] [-] [core] [smtp_client_pool] F9075CB3-1D28-4E5F-929D-4F4761F5262B: SMTP connection closed true (state=4)
[CRIT] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] Plugin queue/smtp_forward timed out on hook queue_outbound - make sure it calls the callback
[INFO] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=queue_outbound plugin=queue/smtp_forward function=hook_queue_outbound params="" retval=DENYSOFT msg="plugin timeout"
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running deny hooks
[NOTICE] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] queue code=DENYSOFT msg="plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B207.1)"
[PROTOCOL] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] S: 450 plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B207.1)
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running reset_transaction hooks
[PROTOCOL] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] C: QUIT state=1
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running quit hooks
[PROTOCOL] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] S: 221 Feather-00 closing connection. Have a jolly good day.
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running disconnect hooks
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] running disconnect hook in tls plugin
[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] hook=disconnect plugin=tls function=hook_disconnect params="" retval=CONT msg=""
[NOTICE] [EB7C4251-B157-4DC8-BDBB-C745F283B207.1] [core] disconnect ip=127.0.0.1 rdns="Unknown" helo="Feather-00" relay=Y early=N esmtp=Y tls=N pipe=N errors=0 txns=1 rcpts=1/0/0 msgs=0/1/0 bytes=221 lr="450 plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B207.1)" time=30.214
Dexus commented 8 years ago

[DEBUG] [-] [core] [smtp_client_pool] F9075CB3-1D28-4E5F-929D-4F4761F5262B: SMTP connection errored Error: connect ECONNREFUSED 127001:2555 (state=4)

Wrong server host...

Von meinem iPhone gesendet

Am 17.01.2016 um 11:38 schrieb Thee, Meepeek notifications@github.com:

With a fresh install Haraka via npm, I did follow this document : https://harakagithubio/manual/tutorials/SettingUpOutboundhtml

Testing with swaks returns successfully authentication, however the email had not been send for queue time out Can you please guide me how to fix it

This is what it looks like on the client:

[thee:~]$ swaks -f me@meepeekcom -t maomeaow@gmailcom -s localhost -p 3333 -au thee -ap test === Trying localhost:3333 === Connected to localhost <- 220 Feather-00 ESMTP Haraka 272 ready -> EHLO Feather-00 <- 250-Feather-00 Hello Unknown [127001], Haraka is at your service <- 250-PIPELINING <- 250-8BITMIME <- 250-SIZE 26214400 <- 250 AUTH CRAM-MD5 -> AUTH CRAM-MD5 <- 334 PDJjMDE1LjE1MjRmMjEwYzhmQEZlYXRoZXItMDA+ -> dGhlZSAwMWFmODI5MDk0MzAyMTU0MmFhNTQ2NDYyMmMxMjgzMw== <- 235 Authentication successful -> MAIL FROM:me@meepeekcom <- 250 sender me@meepeekcom OK -> RCPT TO:maomeaow@gmailcom <- 250 recipient maomeaow@gmailcom OK -> DATA <- 354 go ahead, make my day -> Date: Sun, 17 Jan 2016 10:28:31 +0000 -> To: maomeaow@gmailcom -> From: me@meepeekcom -> Subject: test Sun, 17 Jan 2016 10:28:31 +0000 -> X-Mailer: swaks v201203200 jetmoreorg/john/code/swaks/ -> -> This is a test mailing -> -> <* Timeout (30 secs) waiting for server response -> QUIT <* 450 plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B2071) === Connection closed with remote host [thee:~]$ And this is the log output from the server

[DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=data_post plugin=dataheaders function=invalid_date params="" retval=CONT msg="" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running data_post hook in dataheaders plugin [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=data_post plugin=dataheaders function=invalid_return_path params="" retval=CONT msg="" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running data_post hook in dataheaders plugin [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=data_post plugin=dataheaders function=user_agent params="" retval=CONT msg="" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running data_post hook in dataheaders plugin [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=data_post plugin=dataheaders function=direct_to_mx params="" retval=CONT msg="" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running data_post hook in dataheaders plugin [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=data_post plugin=dataheaders function=from_match params="" retval=CONT msg="" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running data_post hook in dataheaders plugin [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=data_post plugin=dataheaders function=delivered_to params="" retval=CONT msg="" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running data_post hook in dataheaders plugin [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=data_post plugin=dataheaders function=mailing_list params="" retval=CONT msg="" [NOTICE] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] message mid="" size=221 rcpts=1/0/0 delay=0021 code=CONT msg="" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running queue_outbound hooks [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running queue_outbound hook in queue/smtp_forward plugin [INFO] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [queue/smtp_forward] forwarding to localhost:2555 [INFO] [-] [core] [smtp_client_pool] [2555:localhost:300] dispense() clients=1 available=0 [DEBUG] [-] [core] [smtp_client_pool] [2555:localhost:300] createResource() - creating obj - count=1 min=0 max=1000 [DEBUG] [-] [core] [smtp_client_pool] uuid=F9075CB3-1D28-4E5F-929D-4F4761F5262B host=localhost port=2555 pool_timeout=300 created [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [queue/smtp_forward] Got smtp_client: F9075CB3-1D28-4E5F-929D-4F4761F5262B [DEBUG] [-] [core] [smtp_client_pool] F9075CB3-1D28-4E5F-929D-4F4761F5262B destroyed, state=2 [DEBUG] [-] [core] [smtp_client_pool] F9075CB3-1D28-4E5F-929D-4F4761F5262B: SMTP connection errored Error: connect ECONNREFUSED 127001:2555 (state=4) [DEBUG] [-] [core] [smtp_client_pool] F9075CB3-1D28-4E5F-929D-4F4761F5262B: SMTP connection closed true (state=4) [CRIT] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] Plugin queue/smtp_forward timed out on hook queue_outbound - make sure it calls the callback [INFO] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=queue_outbound plugin=queue/smtp_forward function=hook_queue_outbound params="" retval=DENYSOFT msg="plugin timeout" [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running deny hooks [NOTICE] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] queue code=DENYSOFT msg="plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B2071)" [PROTOCOL] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] S: 450 plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B2071) [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running reset_transaction hooks [PROTOCOL] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] C: QUIT state=1 [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running quit hooks [PROTOCOL] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] S: 221 Feather-00 closing connection Have a jolly good day [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running disconnect hooks [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] running disconnect hook in tls plugin [DEBUG] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] hook=disconnect plugin=tls function=hook_disconnect params="" retval=CONT msg="" [NOTICE] [EB7C4251-B157-4DC8-BDBB-C745F283B2071] [core] disconnect ip=127001 rdns="Unknown" helo="Feather-00" relay=Y early=N esmtp=Y tls=N pipe=N errors=0 txns=1 rcpts=1/0/0 msgs=0/1/0 bytes=221 lr="450 plugin timeout (EB7C4251-B157-4DC8-BDBB-C745F283B2071)" time=30214 — Reply to this email directly or view it on GitHub.

meepeek commented 8 years ago

What do you mean by wrong server host ? What should I do ?

smfreegard commented 8 years ago

If you want to use Haraka internal outbound queuing - you'll need to remove the queue/smtp_forward plugin from your config/plugins file and restart Haraka - it will work as you expect then.

meepeek commented 8 years ago

It works !! Thanks. I edited the docs/tutorials/SettingUpOutbound.md to make it more clear.

mazeweb commented 8 years ago

HELLO everyone!! Just installed Haraka outbound. It shows the following error: [C53985E6-2E6B-43ED-AFC7-E882BA0A45F9] [core] client [182.70.102.18] connection error: Error: 139840818407200:error:1408A0C1:SSL routines:ssl3_get_client_hello:no shared cipher:../deps/openssl/openssl/ssl/s3_srvr.c:1418: Kindly suggest some solution.