Project

General

Profile

Upgraded to redmine 3.1.0, email notifications not working. Test email is working.

Added by Louis Sadava over 8 years ago

RAILS_ENV=production bin/about 
Environment:
  Redmine version                3.1.0.stable
  Ruby version                   2.1.2-p95 (2014-05-08) [i386-linux-gnu]
  Rails version                  4.2.3
  Environment                    production
  Database adapter               Mysql2

uname -a
Linux issues 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 14:16:45 UTC 2015 i686 i686 i686 GNU/Linux

The test email from Administration>Settings>Email notifications is sent and received. I get successful messages in the log/production.log.

I have enabled the email notifications for issue added and issue updated and unchecked the 'I don't want to be notified of changes that I make myself '. I add an issue to a project that I'm watching and there is no mention of email notifications in the log/production.log.

My config/configuration.yml looks like this:

   email_delivery:
      delivery_method: :smtp
      smtp_settings:
        enable_starttls_auto: true
        address: "my.host.com" 
        port: '465'
        domain: "portal.domain.com" # 'your.domain.com' for GoogleApps
        authentication: :plain
        user_name: "user@domain.com" 
        password: "pass" 

This is my config/environments/production.rb

Rails.application.configure do

  # Settings specified here will take precedence over those in config/application.rb

  # Code is not reloaded between requests.
  config.cache_classes = true

  # Eager load code on boot. This eager loads most of Rails and
  # your application in memory, allowing both threaded web servers
  # and those relying on copy on write to perform better.
  # Rake tasks automatically ignore this option for performance.
  config.eager_load = true

  # Full error reports are disabled and caching is turned on.
  config.consider_all_requests_local = false
  config.action_controller.perform_caching = true

  # Disable delivery errors
  config.action_mailer.raise_delivery_errors = true

  # No email in production log
  #config.action_mailer.logger = nil

  # Print deprecation notices to the Rails logger.
  config.active_support.deprecation = :log
end

I set 'config.action_mailer.raise_delivery_errors = true' to try and get some error messages.
I commented out 'config.action_mailer.logger = nil' to try and get anything about email notifications in the log.
I set 'config.action_mailer.perform_deliveries = true' in the config/application.rb file to try and enable the email notifications...

Running out of things to try.

Any ideas what I'm doing wrong?
If it was a email configuration setting wouldn't there be some errors in the log?

Thank you for all you guys do! Love the product.