Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • Does your firewall blocks the port 25 Commented Jun 7, 2014 at 14:17
  • I don't know, is that the only possibility? Commented Jun 7, 2014 at 14:30
  • 2
    Seeing the complete configuration file would help to solve the issue. Commented Jun 7, 2014 at 15:18
  • 1
    @cea: once again (as in the Apache + ssl.conf) question you give too little information. The error message indicates it's trying to contact a host named mail on port 25. Does the name mail resolve (use host, nslookup or getent hosts mail to verify)? Coincidentally mailhub=mail is the default setting in the config file. It would also be good to know what you expect to achieve by connecting to port 467 with "gmail" (which host????). On another note: have you tried nullmailer? Commented Jun 7, 2014 at 15:20
  • 1
    ssmtp does NOT verify the SSL/TLS certificate of the remote server on the current debian, ubuntu and redhat releases and also does NOT verify the hostname of the certificate. This is a major issue, as this effectively renders the encryption useless and your password is being transmitted alike to being plaintext and anyone can sniff it. ssmtp has had no active development since atleast 2009. So, if you care about the security of the email account you use for your servers outgoing emails, do NOT use ssmtp, but postfix (or something else) instead: unix.stackexchange.com/a/118101/72087 Commented Feb 24, 2016 at 10:42