Open link in a new tab

Content

Expand project menu

[SOLVED] Not sending emails: No error in logs

Hi! I’m running version 4.0.9.
During the installation I entered my SMTP settings.

I have tried several times with “Send a test email” and it replies:
“An email was sent to user@example.com”

However looking at the logs ($ openproject-ce logs —tail):

Started GET "/admin/test_email" for 127.0.0.1 at 2015-04-15 20:11:58 +0900
Processing by AdminController#test_email as HTML
  Rendered user_mailer/test_mail.html.erb within layouts/user_mailer (0.0ms)
  Rendered user_mailer/test_mail.text.erb within layouts/user_mailer (0.0ms)

Sent mail to  (8.0ms)
Redirected to http://example.com/settings/edit?tab=notifications
...

No email is displayed there (is empty).
As I’m using mandrillapp, I can confirm that no email has been sent through their services.

Any help is appreciated. Thanks!

UPDATE:

I followed this thread: https://community.openproject.org/topics/4366 , and all the settings were pretty much the same as I have. I enabled STARTTLS in this way:
sudo openproject-ce config:set SMTP_ENABLE_STARTTLS_AUTO=true

Now the console command ActionMailer::Base.smtp_settings displays:

{:address=>"smtp.mandrillapp.com", :port=>"587", :domain=>"example.com", :authentication=>"login", :user_name=>"user@example.com", :password=>"xxxxxxx", :enable_starttls_auto=>"true", :openssl_verify_mode=>nil}

I have tried with domain = mandrillapp.com as well, and both has the same outcome: it seems successful but it is not (“Sent mail to” at the logs still empty and not mail received by mandrillapp.com).

NOTE: those SMTP settings has been tried before in the same server in another application, and they work.

What else I can do?

Message actions

My perhaps the test email itself is broken? Did you try sending a normal email? I.e. enable ‘notifiy me of the things I do’ in your account page and create a work package?

Message actions

Hi,

can you please run openproject-ce run check and post the outcome here. At least everything what is related to email. Right now I’m missing a error message to get to the bottom of this.

Regards,
Karsten

Message actions

I think Markus is right! , this are my findings:

Following Karsten’s suggestion:
This is the output:
[ok] MySQL configuration is working [ok] Web server is running [ok] openproject server is running [ok] openproject background job worker is running sending test email using SMTP... [ok] test email sent to infoexample.com@

I received that email successfully.

Then I did what Markus suggested and I received the notification to my personal email.

However, when I click on the " Send a test email" at the administration settings, it doesn’t sent anything but it display: “An email was sent to info@…”. Where I can file that bug?

I think it is not that important now, as it seems the mailing system is working properly.

Thanks for your help! :)