Project

General

Profile

Redmine not send email through port 465

Added by Kelbel Junior about 11 years ago

Hello guys.

Until last week I received normally notifications from Redmine at my company...
So my ISP has blocked port 25 for security reasons and we are using port 465. Everything working in email clients (Thunderbird, Outlook, etc) but the Redmine no longer sends notification emails.

I've read all possible forums and tutorials, but nothing worked ... can you help me?

Below are some information that may be helpful.


A picture of SMTP configuration that runs smoothly in Thunderbird.

Software versions
  • Ruby: 1.9.3_p125
  • Rails: 2.3.14
  • Rack: 1.1.3
  • Rubygems: 1.8.24
  • Rake: 0.8.7-r6
  • Redmine: 1.3.3

My SMTP configurations (/var/lib/redmine/config/configuration.yml) until now, not working yet:

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
  delivery_method: :smtp
  smtp_settings:
    ssl: true
    address: "smtp.mailserver.com.br" 
    port: 465
    domain: "mailserver.com.br" 
    authentication: :login
    user_name: "redmine@mailserver.com.br" 
    password: myemailpassword

Output message (/var/log/redmine/production.log):
Sending email notification to: me@mailserver.com.br
The following error occured while sending email notification: "execution expired". Check your configuration in config/configuration.yml.

thunderbird.png (6.51 KB) thunderbird.png working on Thunderbird

Replies (3)

RE: Redmine not send email through port 465 - Added by Mark Robertson about 11 years ago

Hello,

I just installed Redmine and I'm having the same configuration issue with email.
My email provider uses the same settings

default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: true
      address: "smtp.1and1.com" 
      port: '465'
      domain: "myemailaccountdomain.com" 
      authentication: :login
      user_name: "myemailusername" 
      password: "myemailpassword" 

I tried replacing "enable_starttls_auto: true" with "ssl: true".
I tried with and without quotes on the server and email information.
I tried port: 465 without the single quotes as well.
I tried authentication: :plain
I tried domain: "1and1.com" since I wasn't sure if this should be the server domain or the email account's domain.
I have also tried almost every combination of the above.

Environment:
Redmine version 2.3.0.stable
Ruby version 1.9.3 (i386-mingw32)
Rails version 3.2.13
Environment production
Database adapter Mysql2

Any help with the configuration would be appreciated

RE: Redmine not send email through port 465 - Added by Etienne Massip about 11 years ago

Don't use default entry, use specific production entry (and be carreful because I think there's already an empty production entry at the end of the provided example configuration file).

Then use the test link in the Administration/Settings Email notifications tab to get a potential error message.

    (1-3/3)