ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Error trying to send test email

Added by Phill Ashworth at 2012-08-17 07:14 am

I'm not very familiar with RoR and just trying out ChilliProject, looks great so far, just one issue - I'm unable to get email notifications working, when I try to send a test email from the "Email notifications" settings panel I get:

An error occurred while sending mail (getaddrinfo: hostname nor servname provided, or not known)

The "Host name and path" I have set in the "General" settings is correct and resolves via DNS, I've also enabled debug logging but the log gives no clues as to what is going wrong.
Any ideas?


Replies (4)

RE: Error trying to send test email - Added by Holger Just at 2012-08-17 10:01 am

The error refers to the hostname of your mailserver, not your ChiliProject app server. Check that the email settings in your configuration.yml are correct. Some common configuration variants can be found on the Email Delivery page.

RE: Error trying to send test email - Added by Phill Ashworth at 2012-08-17 10:21 am

Thanks, I've fixed configuration.yml but I'm now getting a different error:

An error occurred while sending mail (501 Syntax: HELO hostname )

In the mail server logs I see:

Aug 17 09:16:14 host postfix/smtpd[34175]: connect from <my.fqdn>[212.13.xxx.xxx]
Aug 17 09:16:14 host postfix/smtpd[34175]: lost connection after HELO from <my.fqdn>[212.13.xxx.xxx]
Aug 17 09:16:14 host postfix/smtpd[34175]: disconnect from <my.fqdn>[212.13.xxx.xxx]

RE: Error trying to send test email - Added by Holger Just at 2012-08-17 11:55 am

You can set the domain parameter in your email config. It will determine what will be send during HELO. You should probably set this to he fully qualified hostname of your ChiliProject host (as registered in your reverse DNS entry for the IP)

RE: Error trying to send test email - Added by Phill Ashworth at 2012-08-17 12:32 pm

Thanks - I'd set the domain parameter in the default section but not in the production section, all working now :)

(1-4/4)