Project

General

Profile

Intermittent email notifications

Added by Andy Sibley about 11 years ago

Hi, we're dealing with intermittent email notifications whereby News and some Issues don't get to watchers even though they're included. Sometimes it does - sometimes it doesn't! Test emails always seem to work.

A few facts:

Environment:
  Redmine version                          2.0.3.stable
  Ruby version                             1.8.7 (x86_64-linux)
  Rails version                            3.2.6
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  redmine_projects_accordion               0.0.1

Email settings in config/configuration.yml:

  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: 10.11.12.201
      port: 25
      domain: trialphaenergy.com
      authentication: :login

We have tried setting various logging options, specifically <quoted>:

For other problems (e.g. some people receive notifications but others don't), you can enable email debug output in your Redmine log file by commenting out this line in config/environments/production.rb:

config.action_mailer.logger = nil

And also here is the contents of config/environments/production.rb:

# Settings specified here will take precedence over those in config/application.rb
RedmineApp::Application.configure do
  # The production environment is meant for finished, "live" apps.
  # Code is not reloaded between requests
  config.cache_classes = true

  #####
  # Customize the default logger (http://ruby-doc.org/core/classes/Logger.html)
  #
  # Use a different logger for distributed setups
  # config.logger        = SyslogLogger.new
  #
  # Rotate logs bigger than 1MB, keeps no more than 7 rotated logs around.
  # When setting a new Logger, make sure to set it's log level too.
  #
  # config.logger = Logger.new(config.log_path, 7, 1048576)
  # config.logger.level = Logger::INFO

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

  # Enable serving of images, stylesheets, and javascripts from an asset server
  # config.action_controller.asset_host                  = "http://assets.example.com" 

  # Disable delivery errors if you bad email addresses should just be ignored
  #config.action_mailer.raise_delivery_errors = false
  config.action_mailer.raise_delivery_errors = true

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

  config.active_support.deprecation = :log
end

So...

  • Users are set to "For any event on all my projects" or "Only for things I watch or I'm involved in"
  • Email notifications are set for the correct actions (e.g. News, Issues etc.)

Q. Are there any log files (or switches) we can use to see the intended list of email recipients once an action is created?
Q. Is there any other method of seeing the intended list of email recipients?
Q. Any other ideas?

We have checked the defects for relevant email issues but found nothing relating to redmine 2.0.3.

Thanks...Andy


Replies (4)

RE: Intermittent email notifications - Added by Jan Niggemann (redmine.org team member) about 11 years ago

Are all recipients "in house", or are some somewhere else? Perhaps there's some weird kind of filtering going on?

RE: Intermittent email notifications - Added by Andy Sibley about 11 years ago

Hi Jan,

Yes we did check for this because all emails are forwarded to an internal appliance. We found no blocking of emails at the appliance level. In fact in some cases no emails are received by the appliance despite test emails working!

Since all but one of the email recipients are internal to our organization I wanted to see if redmine had a log of emails sent. I suspect that some email recipients (Bcc is on) are not being generated despite the actions configured by the users.

Thanks...Andy

RE: Intermittent email notifications - Added by Mathieu Steininger about 11 years ago

Hi Andy,

Have you resolve your problem ?
I think I have exactly the same, and I can't find any anwser.

Environment:
  Redmine version                          2.2.2.stable.11252
  Ruby version                             1.8.7 (x86_64-linux)
  Rails version                            3.2.11
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  redmine_banner                           0.0.8
  redmine_issue_checklist                  2.0.5
  redmine_work_time                        0.2.6

Mathieu

I anwser myself because I resolve my problem.
I found the anwser in http://www.redmine.org/issues/123

The problem was a new user with a mail address @gmail.com and notification on every events.
The domain name was filtered by the mail server (exchange) and as the user was in every notifications no mails was delivered.

I just change the email notification of this user to "no event" and all email notifications are now delivered.

Mathieu

RE: Intermittent email notifications - Added by Andy Sibley about 11 years ago

Mathieu,

Thank you for the information on #123 but I don't think that was our particular issue. We are still pursuing this and have changed the users to "For any event on all my projects" rather than "Only for things I watch or am involved in".

I don't have a clear understanding of how this relates to the Project based responsibilities (Manager, Developer, Reporter) and Watchers. We can have users who are Project related, watch issues who have "Only for..." selected and don't get emails. I would have thought they should.

...Andy

    (1-4/4)