Project

General

Profile

Actions

Defect #37753

closed

Cannot send mail through smtp due to TLS errors

Added by Gasper C about 2 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Email notifications
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hello,

I've updated redmine to 5.0.2 from v3.2.0.

I've kept SMTP settings the same and noticed that I cannot send mails anymore.

The error that keeps appearing is:
Oct 05 13:23:36 acred2p redmine214934: E, [2022-10-05T13:23:36.935478 #215008] ERROR -- : [ActiveJob] [ActionMailer::MailDeliveryJob] [4f9f26ee-e713-460d-97d9-49f5f69d3cba] Email delivery error: SSL_connect returned=1 errno=0 peeraddr=10.x.y.z:25 state=error: unexpected eof while reading

From the logs on the SMTP server it seems that the problem is TLS - mail server admin advised to turn it off.

I've tried the following settings in various configurations and nothing seemed to work:

production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: 10.x.y.z
port: 25
domain: xxxxxxx
enable_starttls_auto: false
openssl_verify_mode: 'none'
tls: false
ssl: false

The bottom 3 lines were added - otherwise the config worked in redmine v3.

SMTP server is working as expected - I can send a mail manually from the redmine server through the terminal.

Any help is appreciated, thanks.


Related issues

Has duplicate Redmine - Defect #37251: openssl_verify_mode not honored/not working anymoreClosed

Actions
Actions

Also available in: Atom PDF