Mail configuration stop working when upgrading from 3.4 to 4.0.6
I need to create a new server with redmine, the old one will be dismissed.
Old server is a Ubuntu 16.04 with following redmine
Environment: Redmine version 3.4.4.stable Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu] Rails version 4.2.8 Environment production Database adapter Mysql2 SCM: Git 2.7.4 Filesystem Redmine plugins: redmine_bootstrap_kit 0.2.5 redmine_git_hosting 1.2.3
The new server is a Ubuntu 20.04 with redmine installed throuth apt
Environment: Redmine version 4.0.6.stable Ruby version 2.7.0-p0 (2019-12-25) [x86_64-linux-gnu] Rails version 5.2.3 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp SCM: Git 2.25.1 Filesystem Redmine plugins: openpgp 1.0.1 redmine_resources 1.0.1
Basically the new redmine installation works, and I've also migrated data successfully.
The only thing that does not work is mail notification. In order to enable mails. I've copied the configurations.yml file from old server to new one. This is the content
email_delivery: delivery_method: :smtp smtp_settings: ssl: true enable_starttls_auto: true address: "smtps.aruba.it" port: 465 authentication: :login domain: "mail-domain.it" user_name: "firstname.lastname@example.org" password: "XXX"
In the new server I cannot send mails. When redmine try to send a notification mail in production.log I can see following error:
[ActiveJob] [ActionMailer::DeliveryJob] [uuid] Email delivery error: SSL_connect returned=1 errno=0 state=error: unsupported protocol [ActiveJob] [ActionMailer::DeliveryJob] [uuid] Performed ActionMailer::DeliveryJob (Job ID: uuid) from Async(mailers) in 223.3ms
I'm not an expert of ruby, so I don't know what it should mean. My two options are that the configuration file must be different, or that some library is missing.
What should I do in order to solve this issue?
RE: Mail configuration stop working when upgrading from 3.4 to 4.0.6 - Added by Reiner Lichtenberger 26 days ago
did you resolve the problem so far?
same for me - SMTP does not work.
THX for answer
RE: Mail configuration stop working when upgrading from 3.4 to 4.0.6 - Added by Daniele Lupo 25 days ago
This was a problem caused by a misconfiguration between the ssl configuration of smtp server and the configuration of my server (Ubuntu 20.04) because the default configuration changed from the Ubuntu 18.04 server where the previous version of Redmine was installed.
I updated the ssl configuration of my Ubuntu 20.04 installation.
I edited the
/etc/ssl/openssl.cnf file and I've added at the beginning of the file the following line
openssl_conf = default_conf
At the end of the file I've added following lines
[ default_conf ] ssl_conf = ssl_sect [ ssl_sect ] system_default = ssl_default_sect [ ssl_default_sect ] MinProtocol = TLSv1 CipherString = DEFAULT:@SECLEVEL=1
I've performed a reboot of the server and after that the mail started to work.