I upgraded my Redmine installation after a while to 2.3.1 and I noticed email notifications weren’t being sent out. I tried to send a test email from “Administration => Settings => Email notifications” and received the following error message:
An error occurred while sending mail (wrong argument (Fixnum)! (Expected kind of OpenSSL::SSL::SSLContext))
After trying different solutions for hours, I finally got it resolved by setting following in my configuration.yml:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: mail.your-domain.com
authentication: :login
domain: your-domain.com
enable_starttls_auto: false
openssl_verify_mode: none
password: password-without-quotes
port: 25
user_name: email-without-quotes
If you have copied your configuration.yml from sample file, make sure that you remove other production: from the end of file.
IMPORTANT: Also make sure that your file is a valid yml file. Otherwise Redmine will just stop working. You can validate your configuration.yml file from this web service. http://yamllint.com/ before uploading to the server.
Hope that helps!
Voila 2h que je luttais sur cette configuration.
Merci bcp.
Salut, Soyez le bienvenu!
Thanks Ali,
You saved my day.
Cheers
CW