Project

General

Profile

mail on SSL 465 not working

Added by Mohammed Ibrahim over 6 years ago

Hello
Redmine was working greate on port 25 on sending mails, but this port is closed for security, now the only available port is 465, i configured as:

default:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: false
      address: "mail.mymail.com" 
      port: '465'
      ssl: true
      domain: "mail.mymail.com" 
      authentication: :plain
      user_name: "redmine@mymail.com" 
      password: "PASS" 

I tried with "quotes" and without,
I tried to empty the file "config/configuration.yml", and make only the production config

It keeps giving me the "An error occurred while sending mail (Timeout::Error)" on both testing mail and when i try to send to any user

redmine version 2.4
ruby 1.9
gem 1.8.23

Any help please?


Replies (1)

RE: mail on SSL 465 not working - Added by Hcet 3C Hcet 3C about 6 years ago

Hello,

I'm facing similar issue by here.

Error message when clicking Send a test email under Administration->Settings->Email notifications is:

An error occurred while sending mail (execution expired)

Tried to check the logs but are not saying anything useful.
Tried to change the config/application.rb to be more verbose, from:

config.log_level = Rails.env.production? ? :info : :debug

to:

config.log_level = Rails.env.production? ? :debug : :debug

But seems only the SQL queries are now being printed to the logfile. Nothing useful appeared into logfiles.

The Cron job to receive emails via IMAP is running fine without errors. For example, it is receiving and creating new tickets and comments through the redmine:email:receive_imap method. Only the sending via SMTP is not working anymore.

I'd like to know what are my possibilities in order to identify the source of this issue and solve that.

Thank you very much for all Redmine community.

Ah, Sorry, here goes more information on the environment:

Environment:
  Redmine version                3.1.0.stable
  Ruby version                   2.2.0-p0 (2014-12-25) [x86_64-linux]
  Rails version                  4.2.3
  Environment                    production
  Database adapter               Mysql2

config/configuration.yml:

default:
  # Outgoing emails configuration
  # See the examples below and the Rails guide for more configuration options:
  # http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
  email_delivery:

    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: true
      address: "smtp.gmail.com" 
      port: '587'
      domain: "smtp.gmail.com" 
      authentication: :plain
      user_name: "user@domain.com" 
      password: "top_secret_here" 
    (1-1/1)