0

I have an application (an installation of Discourse) that I'm trying to deploy. However, the email server that it is pointed at has a self-signed ssl cert for SMTP.

Is there a workaround for this? Or do I need to find a way to send mail using a "valid" SSL cert?

Ry-
  • 218,210
  • 55
  • 464
  • 476
jrg
  • 731
  • 1
  • 17
  • 34
  • What kind of error are you getting from your Rails app? Are you seeing something like an OpenSSL::SSL::SSLError ? – Alvin S. Lee Feb 06 '14 at 05:12
  • @AlvinLee No, I'm actually get a Net::ReadTimeout for the call. The username, password etc is all correct. – jrg Feb 06 '14 at 14:43
  • @AlvinLee and changing it to not use SSL fixed it, so it's something to do with the SSL cert. – jrg Feb 06 '14 at 14:57

1 Answers1

1

Few things actually care that deeply about a proper cert for SMTP. Mostly user agents.

If the cert is a problem you won't get timeouts, you'll get validation errors. I suspect what's happening is that you're trying to connect over the SMTPS port which isn't listening or exposed by the firewall.

Try using SMTP+STARTTLS. That negotiates TLS over port 25 or 587 instead of trying to connect directly to 465.

MikeyB
  • 3,288
  • 1
  • 27
  • 38