ssmtp Authorization failed (535 Authentication Failed) on Linux

ssmtp Authorization failed (535 Authentication Failed) on Linux

Hi,

I've read many threads similar to this one, but none of them could help. I'm trying to send mail via `ssmtp`, but the command hangs forever or the following error is thrown:

  1. ssmtp: Authorization failed (535 Authentication Failed)

Here is my configuration file: 

  1. root=foo@example.com
  2. mailhub=smtp.zoho.com:465
  3. rewriteDomain=example.com
  4. UseTLS=YES
  5. FromLineOverride=YES
  6. AuthMethod=LOGIN
  7. AuthUser=foo@example.com
  8. AuthPass=1111aaaaa11111111111111111111111=

The account does not use two factor authentication. I've tried every possible combination of UseTLS, UseSTARTTLS, port: 465/587, rewriteDomain etc. 

This account has been used for sending mails via NodeJS with emailjs and working configuration was: 
  1. server = email.server.connect do
  2.    user:    "foo@example.com",
  3.    password:"1111aaaaa11111111111111111111111=",
  4.    host:    "smtp.zoho.com",
  5.    ssl:     true

What is the correct configuration to send mails via ssmtp currently?