Content
You are here:
Email Notifications not working after install
Added by Andrew Hackley almost 10 years ago
OpenProject has just been setup on our server and it all works except email notifications. When I use the “Send a test email” button from the Settings > Email Notifications page, the log file even seems to indicate that it sent the email successfully (see log file printout below), but I never receive any emails in my inbox or spam folder. We did restart OpenProject after updating configuration.yml. Any suggestions? Since I don’t get any error, I’m not sure what else to try… Thanks!
configuration.yml has:
email_delivery_method: :smtp smtp_address: smtp.gmail.com smtp_port: 587 smtp_domain: mycompanydomain.com smtp_authentication: :login smtp_user_name: "openproject@mycompanydomain.com" smtp_password: "thepassword" smtp_enable_starttls_auto: true smtp_authentication: plain
And in the production log file, when I send a test email, I get:
Sent mail to (4.5ms) Redirected to http://mydomain/settings/edit?tab=notifications Completed 302 Found in 41.2ms (ActiveRecord: 0.4ms) Started GET "/settings/edit?tab=notifications" for ###.##.##.### at 2015-02-03 10:48:10 -0800 Processing by SettingsController#edit as HTML Parameters: {"tab"=>"notifications"} Rendered settings/_general.html.erb (3.2ms) Rendered settings/_display.html.erb (2.4ms) Rendered settings/_authentication.html.erb (2.7ms) Rendered settings/_users.html.erb (0.6ms) Rendered settings/_projects.html.erb (2.4ms) Rendered settings/_work_packages.html.erb (7.9ms) Rendered settings/_notifications.html.erb (2.8ms) Rendered settings/_mail_handler.html.erb (0.8ms) Rendered settings/_repositories.html.erb (3.8ms) Rendered common/_tabs.html.erb (29.5ms) Rendered settings/edit.html.erb within layouts/admin (29.8ms) Rendered admin/_menu.html.erb (2.7ms) Rendered search/_mini_form.html.erb (0.3ms) Rendered layouts/_action_menu.html.erb (0.0ms) Rendered layouts/base.html.erb (4.9ms) Completed 200 OK in 41.6ms (Views: 37.8ms | ActiveRecord: 0.6ms)
Replies (4)
Hi Andrew,
Did you change the default value (
openproject@example.net
) for Emission email address in the Settings > Email Notifications view? If you’re sending email with Google Apps, they won’t permit sending of emails from addresses outside your domain.Cheers,
Alex
Alex, thanks for a quick response. I did already change the default value to the same email address listed in the configuration.yml file openproject@mycompanydomain.com. That was one of my first thoughts as well, that maybe I misspelled the domain or something. But nope, they both match and are spelled correctly.
A week later, and I still haven’t gotten much anywhere with it. But I have found a weird issue:
In config/configuration.yml, the only email setting that causes an error is the “email_delivery_method: :smtp” setting. For all other email settings, it doesn’t matter what their value is, OpenProject always shows the “An email was sent to myemail@mydomain.com:” success banner across the top of the Administration > Settings > Email Notification page after the “Send a Test Email” link is clicked. I can set the settings to something totally wrong, but OpenProject behaves as if the email was sent successfully anyway. Here’s an example of one of my tests: (I just duplicated the last lette/numberr on every line)
email_delivery_method: :smtp
smtp_address: mydomain.comm
smtp_port: 5877
smtp_domain: mydomain.comm
smtp_user_name: “email@mydomain.comm”
smtp_password: “notTheCorrectPassword”
smtp_enable_starttls_auto: falsee
smtp_authentication: loginn
So, now that I know my installation of OpenProject doesn’t report email errors correctly (within the admin pages or in production.log), it leads me to believe that there’s something wrong with the OpenProject installation. Does that sound right? Should I be getting different errors, or is this some type of already known issue with OpenProject’s email feature or something?
If it is a bad installation, does anyone have a hunch/guess at what could be wrong? Does one style of installation procedure help protect against weird issues? (i.e. I use the packaged CentOS installer or the Manual installation?)
Thanks!
Just thought I’d post the solution now that I got it to work:
My configuration.yml file was correct. It turns out that when trying to send a test email through the Administration > Settings > Email Notification > “send a test email” button, you have to have your profile’s “I don’t want to be notified of changes that I make myself” option unchecked, otherwise, you’ll never receive the test email.