Project

General

Profile

Help about config Sendmail Server

Added by Black Man about 14 years ago

I have Server Ubuntu 10.04, Redmine 0.9.4
I config Sendmail server :

  1. File: config/email.yml
    production:
    delivery_method: :smtp
    smtp_settings:
    address: "smtp.gmail.com"
    port: '587'
    domain: "smtp.gmail.com"
    authentication: :plan
    user_name: ""
    password: "123456"

development:
delivery_method: :smtp
smtp_settings:
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plan
user_name: ""
password: "123456"

test:
delivery_method: :test

but when I:
1. Login as an administrator
2. Go to the Administration panel
3. Go into the Settings and select the "Email notifications" tab
4. In the bottom right, click the link to "Send a test email"
It show: "An error occurred while sending mail (getaddrinfo: Temporary failure in name resolution)"

Help me

Thanks


Replies (6)

RE: Help about config Sendmail Server - Added by Felix Schäfer about 14 years ago

The authentication parameter is :plain, not :plan. Other than that, gmail needs ssl stuff, see here: http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/ (that might be a tad outdated though, so take it with a grain of salt and maybe google for "rails gmail" for more/complementary help).

RE: Help about config Sendmail Server - Added by Felix Schäfer about 14 years ago

Ah, I had forgotten we've added a gmail bit to the docs, thanks Radek.

RE: Help about config Sendmail Server - Added by Black Man about 14 years ago

thanks for support, but when i change

plan -> plain

or:
production:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plain
user_name: ""
password: "123456"

a new error show: "An error occurred while sending mail (wrong authentication type plan)"

help me pls

RE: Help about config Sendmail Server - Added by Felix Schäfer about 14 years ago

Nguyen Viet wrote:

thanks for support, but when i change

plan -> plain

a new error show: "An error occurred while sending mail (wrong authentication type plan)"

Well, use your brain and tell me what these 2 pieces of information put together tell you?

RE: Help about config Sendmail Server - Added by Beom Jin Park about 14 years ago

I've had same issue, but finally solved it by using
authentication: :login insted of authentication: :plain

I got the hint from redmine email configuration documentation (http://www.redmine.org/wiki/redmine/EmailConfiguration) which says at the top that the valid setting for authentification is :none and :login.
(However, gmail smtp example below uses authentication: :plain. The documentation needs to be updated)

    (1-6/6)