Project

General

Profile

Redmine stop sending emails with G-Suite

Added by Hcet 3C Hcet 3C almost 7 years ago

Hello,

I'm facing redmine not succeeding in Send a test email

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. This means the 'less secure apps' is permitting redmine log in there. 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"