pentacent / keila

Open Source Newsletter Tool.
https://keila.io
GNU Affero General Public License v3.0
1.25k stars 61 forks source link

Problem with SMTP connection #227

Closed chilly2go closed 9 months ago

chilly2go commented 10 months ago

Hi, I'm running my own mailserver with mailcow for multiple years now.

Trying to send mailings with keila through my server proved to be non-functional. I tried all combinations for ports / tls.

what I got was:

postfix/submission/smtpd[99996]: connect from unknown
postfix/submission/smtpd[99996]: SSL_accept error from unknown
postfix/submission/smtpd[99996]: warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:331:
postfix/submission/smtpd[99996]: lost connection after STARTTLS from unknown

now after enabling TLS 1.0 and 1.1 again I got a connect and nothing more. on the server side. after 10 minutes keila logs:

[warning] Failed sending email to target@testmail for campaign nmc_GQL5WVpk: {:retries_exceeded, {:network_failure, 'my.server.ip', {:error, :closed}}}

This looks to me as having two smtp related problems:

I do hope you can reproduce this.

Docker just tells me that I'm running the image tagged "latest" created "2 weeks ago"

wmnnd commented 10 months ago

Hey there, thanks for reporting this. Have you been able to resolve this problem in the meantime?

chilly2go commented 10 months ago

Nope. In the mean time I tried sendgrid but the log only shows: {"errors" => [%{"field" => nil, "help" => nil, "message" => "The provided authorization grant is invalid, expired, or revoked"}]}

Showing campaign statistics is no help at all as the amount of information shown is exactly 0 No warning or error notification or recipients with delivery problems. Nothing

With the problems I'm running into I have to ask if anyone can currently use keila to deliver mails. And how (if at all possible)

chilly2go commented 10 months ago

I also tried sendgrids smtp relay...

Port 25 without TLS {:retries_exceeded, {:network_failure, '52.57.139.126', {:error, :closed}}}

Port 587 with TLS {:retries_exceeded, {:network_failure, '18.197.194.208', {:error, {:options, :incompatible, [verify: :verify_peer, cacerts: :undefined]}}}}

wmnnd commented 10 months ago

Have you tried Port 587 without setting the "force TLS" setting?

chilly2go commented 10 months ago

With my own mailserver. Yes With sendgrid. No

chilly2go commented 10 months ago

Port 587 without TLS {:retries_exceeded, {:network_failure, '18.197.194.208', {:error, :closed}}}

enzokabella commented 9 months ago

We have the same problem. 12:36:11.388 [warning] Failed sending email to XXX@XXX.de for campaign nmc_neLWGkLw: {:retries_exceeded, {:network_failure, '80.237.132.207', {:error, {:options, :incompatible, [verify: :verify_peer, cacerts: :undefined]}}}}

no emails are going out. We use the keila docker container.

chilly2go commented 9 months ago

Currently keila is unusable for me. sadly I'm moving to a different solution

wmnnd commented 9 months ago

Thank you all for reporting this issue.

I think this issue is caused by recent changes in Erlang/OTP, but I’m still investigating.

wmnnd commented 9 months ago

This issue should be fixed in the 0.12.6 release.