Project

General

Profile

I cannot get my redmine to send email... An error occurred while sending mail (Connection refused - connect(2))

Added by Chizuoka Khoo over 11 years ago

I am running the bitnami Ubuntu 12.04 and redmine 3.2.0.1 ...
my settings for configuration.yml is:

production:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
address: "smtp.gmail.com"
port: 587
domain: "XXX.com" # 'your.domain.com' for GoogleApps
authentication: :login
user_name: ""
password: "YYY"

I have also modified the production.rb to include
require 'smtp_tls'

I have also put in a smtp_tls.rb into lib folder

But i still get the (Connection refused - connect(2)) error... Help anyone?


Replies (2)

RE: I cannot get my redmine to send email... An error occurred while sending mail (Connection refused - connect(2)) - Added by Nuno Martins over 8 years ago

Hello

I know that this was a little while ago... :D
I recently had the same problem when trying to configure Redmine email functionality with a GMail account.
I will leave here the solution for future reference.

That error occurred because the security settings of the GMail account.

To fix this you need to change allow unsecure applications to access you GMail account

Best Regards

    (1-2/2)