Feature #5824
closedConfigure Rails email settings
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1080617
Description of problem:
Cron job `foreman-rake reports:summarize` results in "rake aborted! getaddrinfo: Name or service not known" on default installation.
Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140321.2
How reproducible:
always
Steps to Reproduce:
1. One of the cron jobs have:
/usr/sbin/foreman-rake reports:summarize
- /usr/sbin/foreman-rake reports:summarize
rake aborted!
getaddrinfo: Name or service not known
(See full trace by running task with --trace)
- echo $?
1
Expected results:
On default installation, all should work - cron jobs should not produce errors periodically
Additional info:
This was initially reported as:
http://projects.theforeman.org/issues/4833
As per http://projects.theforeman.org/projects/foreman/wiki/Email_configuration I have configured this:
- cat /etc/foreman/email.yaml
- Outgoing email settings
production:
delivery_method: :sendmail
but that generates mails for root@$( hostname -d ) so they have permanent errors in my case, but I guess this can be configured somewhere as well.