Unable to send emails
Added by Martin Assarsson over 13 years ago
I get this "classic" error message on top of page when I send a test email:
"An error occurred while sending mail (getaddrinfo: Name or service not known)"
This is my email.yml at the moment:
---
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: "redmine@a******dev.com"
password: "4********t"
---
I'm able to log in to my gmail by web page.
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
Rails 2.3.5
Redmine 1.0.1.stable (MySQL)
// Martin
Replies (3)
RE: Unable to send emails - Added by Martin Assarsson over 13 years ago
For background completeness:
Debian 6 "squeeze"
Linux maelstrom 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux
Apache
--
Server version: Apache/2.2.16 (Debian)
Server built: Mar 22 2011 21:14:10
--
RE: Unable to send emails - Added by Martin Assarsson over 13 years ago
Sorry, more data
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20100819172912
[FIXED] Unable to send emails - Added by Martin Assarsson over 13 years ago
Duh...
Packages installed via Debian package manager are always (?) configured to use /etc/xxxx as home fore configuration files.
This is no exception, Redmine use /etc/redmine/default/email.yml for emails...
// Martin