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?




                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now