External SMTP Support

Support Ticket

+status
answered
 

My wagn is configured as per the Advanced Installation / Troubleshooting > Mail Configuration, albeit with port 25 instead of 587. In the log, I get the following. Can anyone elucidate what it means?

Rendered mailer/account_info.text.erb (1.1ms)

Sent mail to (205ms)
ACCOUNT INFO DELIVERY FAILED:
{"subject"=>"invite wagn", "message"=>"", "to"=>"test555@mailinator.com", "password"=>"dZCz4WHwN"}
hostname does not match the server certificate, /usr/lib/ruby/1.9.1/openssl/ssl-internal.rb:129: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'
/var/lib/gems/1.9.1/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
/var/lib/gems/1.9.1/gems/mail-2.5.4/lib/mail/message.rb:2129:in `do_delivery'
/var/lib/gems/1.9.1/gems/mail-2.5.4/lib/mail/message.rb:232:in `block in deliver'
/var/lib/gems/1.9.1/gems/actionmailer-3.2.14/lib/action_mailer/base.rb:415:in `block in deliver_mail'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'
/var/lib/gems/1.9.1/gems/actionmailer-3.2.14/lib/action_mailer/base.rb:413:in `deliver_mail'
/var/lib/gems/1.9.1/gems/mail-2.5.4/lib/mail/message.rb:232:in `deliver'
/home/user/wagn/app/models/user.rb:84:in `send_account_info'

 

Wagn's functionality here is at present just a very thin wrapper around Ruby-on-Rails' ActionMailer (which in turn is using an external smtp gem). My guess is that the best answers at present would probably come from the rails community. Perhaps this is helpful:

 

http://stackoverflow.com/questions/13408898/hostname-does-not-match-the-server-certificate-cannot-send-email

 

To translate that into WagnSpeak, you might try something like this in wagn.yml

 

smtp:

openssl_verify_mode: false

 

if that doesn't work, then I would suspect that googling the main error message ("hostname does not match the server certificate") would be likely to turn up other options.

--Ethan McCutchen.....2013-10-08 03:25:01 +0000