Unable to relay mail

Unable to relay mail

I'm trying to set up SSMTP to relay mail from my server to Zoho, but I can't seem to get it to work. Every time I try to send mail, ssmtp hangs until I kill it.

This ends up in my /var/log/syslog:

  1. May  4 16:18:40 flawedspirit sSMTP[18050]: Set RewriteDomain="flawedspirit.com"
  2. May  4 16:18:40 flawedspirit sSMTP[18050]: Set HostName="flawedspirit.com"
  3. May  4 16:18:40 flawedspirit sSMTP[18050]: Set UseTLS="False"
  4. May  4 16:18:40 flawedspirit sSMTP[18050]: Set UseSTARTTLS="True"
  5. May  4 16:18:40 flawedspirit sSMTP[18050]: Set AuthUser="admin@flawedspirit.com"
  6. May  4 16:18:40 flawedspirit sSMTP[18050]: Set AuthPass="<password>"
  7. May  4 16:18:40 flawedspirit sSMTP[18050]: Set FromLineOverride="True"
  8. May  4 16:18:40 flawedspirit sSMTP[18050]: Set MailHub="smtp.zoho.com"
  9. May  4 16:18:40 flawedspirit sSMTP[18050]: via SMTP Port Number="465"
  10. May  4 16:18:40 flawedspirit sSMTP[18050]: Creating SSL connection to host
This is my ssmtp.conf:
  1. Debug=Yes

  2. # The user that gets all the mails (UID < 1000, usually the admin)
  3. root=admin@flawedspirit.com

  4. # The mail server (where the mail is sent to), both port 465 or 587 should be acceptable
  5. # See also http://mail.google.com/support/bin/answer.py?answer=78799
  6. mailhub=smtp.zoho.com:465

  7. # The address where the mail appears to come from for user authentication.
  8. rewriteDomain=flawedspirit.com

  9. # The full hostname
  10. hostname=flawedspirit.com

  11. # Use SSL/TLS before starting negotiation
  12. UseTLS=No
  13. UseSTARTTLS=Yes

  14. # Username/Password
  15. AuthUser=admin@flawedspirit.com
  16. AuthPass=<password>

  17. # Email 'From header's can override the default domain?
  18. FromLineOverride=Yes
And my revasliases:
  1. root:admin@flawedspirit.com:smtp.zoho.com:465
  2. flawedspirit:admin@flawedspirit.com:smtp.zoho.com:465
As I said, the program doesn't give me an error. It just hangs forever. I've tried running ssmtp in verbose mode but nothing is ever printed to the console; it hangs like usual. Is there something that's causing this on my end?

Note: I do not have 2FA enabled, and I've made sure port 465 can get through my firewall.