Hopefully just a simple question. But I could not find an answer via google.
I have installed foreman on a Debian Wheezy server.
I want to send mails. To test, I have enabled sending welcoming emails, and
am creating a test user (well, trying to).
If I enter an email address, creating the user fails (without email
address, it succeeds) with the following error:
Warnung!hostname does not match the server certificate
/var/log/foreman/production.log:
2016-01-25T11:51:44 [app] [W] Action failed
> OpenSSL::SSL::SSLError: hostname does not match the server certificate
> /usr/lib/ruby/1.9.1/openssl/ssl-internal.rb:183:in
`post_connection_check'
> /usr/lib/ruby/1.9.1/net/smtp.rb:585:in `tlsconnect'
> /usr/lib/ruby/1.9.1/net/smtp.rb:560:in `do_start'
> /usr/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
>
/usr/share/foreman/vendor/ruby/1.9.1/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:112:in
`deliver!'
...
/etc/foreman/email.yaml:
# Outgoing email settings
production:
delivery_method: :smtp
smtp_settings:
address: localhost
port: 25
domain: localhost
authentication: :none
So my simple question is:
Which settings do I need (in email.yaml or otherwise) to get foreman to
send emails. I do not have (nor should I) ssl configured for my smtp host
(postfix). After all, it only listens on 127.0.0.1 to deliver emails from
the server itself.
I found help via irc:
The setting enable_starttls_auto: false
has to be added in email.yaml (under smtp_settings)
Hint: If you have not set the correct sender domain for
email_reply_address, you will probably get a 550 error from your smtp
server…
···
On Monday, January 25, 2016 at 2:07:53 PM UTC+1, Martin Gerdes wrote:
>
>
> Hopefully just a simple question. But I could not find an answer via
> google.
> I have installed foreman on a Debian Wheezy server.
> I want to send mails. To test, I have enabled sending welcoming emails,
> and am creating a test user (well, trying to).
> If I enter an email address, creating the user fails (without email
> address, it succeeds) with the following error:
> Warnung!hostname does not match the server certificate
>
> /var/log/foreman/production.log:
> [code]
> 2016-01-25T11:51:44 [app] [W] Action failed
> > OpenSSL::SSL::SSLError: hostname does not match the server certificate
> > /usr/lib/ruby/1.9.1/openssl/ssl-internal.rb:183:in
> `post_connection_check'
> > /usr/lib/ruby/1.9.1/net/smtp.rb:585:in `tlsconnect'
> > /usr/lib/ruby/1.9.1/net/smtp.rb:560:in `do_start'
> > /usr/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
> >
> /usr/share/foreman/vendor/ruby/1.9.1/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:112:in
> `deliver!'
> ...
> [/code]
>
> /etc/foreman/email.yaml:
> [code]
> # Outgoing email settings
> production:
> delivery_method: :smtp
> smtp_settings:
> address: localhost
> port: 25
> domain: localhost
> authentication: :none
> [/code]
>
> So my simple question is:
> Which settings do I need (in email.yaml or otherwise) to get foreman to
> send emails. I do not have (nor should I) ssl configured for my smtp host
> (postfix). After all, it only listens on 127.0.0.1 to deliver emails from
> the server itself.
>
>