Project

General

Profile

Actions

Defect #10608

closed

1.3.2: An error occurred while sending mail (getaddrinfo: Name or service not known)

Added by Iñaki Baz Castillo about 12 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

This seems to be a very classic error that never occurred to me in previous versions of Redmine.

  • Redmine 1.3.2.
  • configuration.yml:
    production:
      email_delivery:
        delivery_method: :sendmail
    

Same configuration (but using email.yml instead) works in other Redmine installations in the same server (but previous versions).

When sending a testing mail I get:

An error occurred while sending mail (getaddrinfo: Name or service not known)

Honestly I don't know what more to check, all is correct IMHO. Any tip please?

Actions #1

Updated by Iñaki Baz Castillo about 12 years ago

  • Status changed from New to Resolved

Ok, fixed. The "problem" was the content of the configuration.yml copied from configuration.yml.example:

At the top it contains:

production:
  email_delivery:
    delivery_method: :sendmail

But at the bottom it overrides such "production" key:

# specific configuration options for production environment
# that overrides the default ones
production:

And since such a "production" key contains no value, "default" settings ("smtp.example.net") are taken, so fail.

Once such a line is commented the problem goes away.

NOTE: I suggest making more clear the configuration.yml file to avoid this problem.

Actions #2

Updated by Toshi MARUYAMA almost 11 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Iñaki Baz Castillo wrote:

NOTE: I suggest making more clear the configuration.yml file to avoid this problem.

Description or patch is welcome.

Actions

Also available in: Atom PDF