Project

General

Profile

Emal notification - (Connection refused - connect(2))

Added by Lorenzo Godina about 9 years ago

Hi guys.

It's some days that I'm trying to have this functionality working with no results.

My environment is the following:

------------------------------------------------------------
Environment:
Redmine version 2.6.0.stable
Ruby version 2.0.0-p598 (2014-11-13) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Cvs 1.12.13
Git 1.9.5
Filesystem
Redmine plugins:
no plugin installed
------------------------------------------------------------

I want to configure a gmail account and I modified the configuration.yml file as following:

default:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plain
user_name: ""
password: "MY_PASSWORD"

I follow the instruction that I found here: http://www.redmine.org/projects/redmine/wiki/EmailConfiguration, but it always returns the following error:
(Connection refused - connect(2))

What I try:
  1. change the login type from :login to :plain -> no results
  2. try to configure an account without tls -> no results
  3. change without symbols " for variables -> no results
  4. move the row enable_starttls_auto: true after the password -> no results

I need to install the Actionmailer plugin?
If yes, how can I do this?
If not, someone could help me to solve this issue?


Replies (7)

RE: Emal notification - (Connection refused - connect(2)) - Added by Martin Denizet (redmine.org team member) about 9 years ago

Hello Lorenzo,

Did you correctly conserve the indentation?
Is there a configuration for the production environment? (you edited default).
I suggest you upload the complete file here, you can also send the log entries in log/production.log when you send a test email.

Cheers,

RE: Emal notification - (Connection refused - connect(2)) - Added by Lorenzo Godina about 9 years ago

Thanks Martin for your reply.
Please find attached the requested files.
Yes, I edited only the default and conserved the indentation as it is. Is this a problem?

Thanks again for your support and regards,
Lorenzo.

RE: Emal notification - (Connection refused - connect(2)) - Added by Lorenzo Godina about 9 years ago

Hello Martin.
Do you need some more info or the 2 files are enough?
What do you suggest me to do?

Thanks and regards,
Lorenzo.

RE: Emal notification - (Connection refused - connect(2)) - Added by Martin Denizet (redmine.org team member) about 9 years ago

Hello Lorenzo,

Sorry for the late reply, I'm quite busy with work recently.

See the modifications I made in the file attached.
My take is that you uncommented example configuration that were overriding the config you made.

You should have 1 mail config max per environment (default/test/development/production), If the environment has no config, the default config will be used.

Let me know if it solves your problem.

Cheers,

RE: Emal notification - (Connection refused - connect(2)) - Added by Pat Story about 9 years ago

It helped me. Commented everything out and viola.

RE: Emal notification - (Connection refused - connect(2)) - Added by Lorenzo Godina about 9 years ago

Me too... Apologize for the late reply.

All works fine!

Many thanks Martin for your precious help.

Regards,
Lorenzo.

RE: Emal notification - (Connection refused - connect(2)) - Added by hassan matinarfa over 8 years ago

It helped for me too .
This character is very important # . we have to use it in first of lines where is not important or where we want, compiler don't check those lines .

    (1-7/7)