Project

General

Profile

Email delivery is not configured, and notifications are disabled

Added by Gary Boyce over 3 years ago

Hi,
I have just installed Redmine on Debian 10. I am having trouble with getting email notifications working.
I have copied configuration.yml.example to configuration.yml and added
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: mail.example.net
port: 25
authentication: :login
domain: example.net
user_name: email@example.net
password: pass

For some reason the code tags on here don't retain preceding white space.

I have verified that there are no trailing white spaces and used your syntax of 2 spaces and no tabs. I ran touch /usr/share/redmine/tmp/restart.txt followed by systemctl apache2 restart. But I am still getting the error "Email delivery is not configured, and notifications are disabled.
Configure your SMTP server in /etc/redmine/<instance>/configuration.yml and restart the application to enable them." I also tried just rebooting the server.
When I tried to run RAILS_ENV=YOUR_ENVIRONMENT script/about in /usr/share/redmine it tells me no such file or directory. Otherwise I would have posted that information. I installed Redmine using https://wiki.debian.org/Redmine?action=show&redirect=redmine


Replies (4)

RE: Email delivery is not configured, and notifications are disabled - Added by Gary Boyce over 3 years ago

Okay, So I found that I have to enable mail deliveries by editing {redmine root dir}/config/application.rb and changing config.action_mailer.perform_deliveries = false to true. Then reboot server.
Now I have a new issue.
When I try to send a test email, I get "An error occurred while sending mail (Connection refused - connect(2) for "localhost" port 25)"
Obviously I don't have localhost set in the address line. Im not sure where that is coming from.
I really hope someone can reply and point me in the right direction.

RE: Email delivery is not configured, and notifications are disabled - Added by David Farrick almost 3 years ago

I have the same issue. Did you solve this problem?

RE: Email delivery is not configured, and notifications are disabled - Added by Lorenzo Meneghetti almost 3 years ago

Hi, I do not think this is a Redmine issue. Seems to me as a misconfiguration or a reacheability problem.
Try to ping an to telnet smtp server first.
Lorenzo

RE: Email delivery is not configured, and notifications are disabled - Added by David Farrick almost 3 years ago

Thanks for the advice Lorenzo, but I was able to connect to the office365 smtp server on port 587 using telnet.

Other ideas?

    (1-4/4)