Project

General

Profile

Please, help me to configure email notifications

Added by Don Tomato almost 11 years ago

Environment:
  Redmine version                2.3.3.stable
  Ruby version                   2.0.0-p247 (2013-06-27) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  no plugin installed

I have installed Postfix for sending emails and it works fine. I can send mail by the use of the following command:

michael@hivede1-4191:~/redmine/config$ mail -s 'The test message' signoretomato@gmail.com
test
.
Cc:

It's ok. But problems happen when I am trying to configure redmine configuration.yml
 production:
   email_delivery:
     delivery_method: :smtp
     smtp_settings:
       address: "mvoronov.com" 
       port: 25
       openssl_verify_mode: 'none'

I am getting '554 5.7.1 : Relay access denied' error message.

I have attached postfix main.cf

Please, advise!

main.cf (1.25 KB) main.cf

Replies (1)

RE: Please, help me to configure email notifications - Added by Martin Denizet (redmine.org team member) almost 11 years ago

You conf only allows email from localhost.
I think the resolution of "mvoronov.com" is not equivalent to localhost.
You cold test it by doing

ping mvoronov.com

If it's the case, you could add it to your host file.
I recommend this configuration:
production:
   email_delivery:
     delivery_method: :smtp
     smtp_settings:
       address: "localhost" 
       port: 25

Cheers,

Martin

    (1-1/1)