Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I was using following configuration to send from Gmail from sSMTP from Ubuntu using PHP

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=cs@mydomain.com

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=cs@mydomain.com

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

UseSTARTTLS=YES
AuthUser=cs@mydomain.com
AuthPass=password

Due to some reasons this time I've moved to Zoho mail, for this my configurations are

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=cs@mydomain2.com

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.zoho.com:465

# Where will the mail seem to come from?
rewriteDomain=zoho.com

# The full hostname
hostname=cs@mydomain2.com

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

UseSTARTTLS=NO
UseTLS=YES
AuthUser=cs@mydomain2.com
AuthPass=password2

But I'm unable to send mails using from Zoho account and I'm not enabled two steps verification also. Only I observed difference from Gmail to Zoho is Gmail use TLS encryption where as Zoho is SSL encryption.

How to make correct Zoho settings ?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.