# Cannot get Email to send using Zoho mail

**URL:** https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554
**Category:** Self-hosting
**Tags:** email
**Created:** [June 11, 2016, 1:42am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554 "2016-06-11T01:42:34Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ZenOokami](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zenookami/32/121455_2.png) [@ZenOokami](https://meta.discourse.org/u/ZenOokami)
#### Post date: [June 11, 2016, 1:42am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/1 "2016-06-11T01:42:34Z")

</div>

So just setup Discourse on a DigitalOcean droplet (1gb ram).  
Using Zoho for the mail system.

I have the SMTP set in the app.yml:

## TODO: The SMTP mail server used to validate new accounts and send notifications

DISCOURSE\_SMTP\_ADDRESS: [smtp.zoho.com](http://smtp.zoho.com)  
DISCOURSE\_SMTP\_PORT: 587  
DISCOURSE\_SMTP\_USER\_NAME: [noreply@essenceofzen.org](mailto:noreply@essenceofzen.org)  
DISCOURSE\_SMTP\_PASSWORD: “\*\*\*”  
DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true

I have DKIM and SPF set, and I still cannot get the “send test email” function to work and logs via sidekiq states:

Jobs::CriticalUserEmail

{“type”=\>“signup”, “user\_id”=\>1, “email\_token”=\>“dd889903f2ffa1f6b8dc9f7f99ac3f19”, “current\_site\_id”=\>“default”}

Jobs::HandledExceptionWrapper: Wrapped Net::SMTPAuthenticationError: 535 Authentication Failed

any advice?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 11, 2016, 1:47am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/2 "2016-06-11T01:47:01Z")

</div>

Is that what the Zoho email smtp docs say to set?

---

<div class="post-metadata">

### Author: ![ZenOokami](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zenookami/32/121455_2.png) [@ZenOokami](https://meta.discourse.org/u/ZenOokami)
#### Post date: [June 11, 2016, 1:49am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/3 "2016-06-11T01:49:15Z")

</div>

“smtp docs say to set”

Well it’s hard to tell which fits what discourse requires specifically – but in terms of what is their SMTP configuration, they say this:

SMTP Configuration settings for Zoho Mail - SSL  
Outgoing Server Name: [smtp.zoho.com](http://smtp.zoho.com)  
Port: 465  
Security Type: SSL

Require Authentication: Yes.

Email address should match the email address/ aliases of the account, for which the authentication details are provided.

SMTP Configuration settings for Zoho Mail - TLS  
Outgoing Server Name: [smtp.zoho.com](http://smtp.zoho.com)  
Port: 587  
Security Type: TLS

Require Authentication: Yes.

Email address should match the email address/ aliases of the account, for which the authentication details are provided.

via: [SMTP - Simple Mail Transfer Protocol Configuration in Zoho Mail](https://www.zoho.com/mail/help/zoho-smtp.html)

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [June 11, 2016, 2:32am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/4 "2016-06-11T02:32:34Z")

</div>

> [@ZenOokami](#):
>
> [noreply@essenceofzen.org](mailto:noreply@essenceofzen.org)

Just to confirm.. you provisioned a full (presumably paid) user with the username `noreply@essenceofzen.org` ?

---

<div class="post-metadata">

### Author: ![ZenOokami](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zenookami/32/121455_2.png) [@ZenOokami](https://meta.discourse.org/u/ZenOokami)
#### Post date: [June 11, 2016, 2:46am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/5 "2016-06-11T02:46:18Z")

</div>

Yes, though the problem has been solved!

My dev partner reminded me: “Aren’t we using 2FA with zoho?”

Yes, yes we were, but I only had it on for specific users - what I did NOT know was that if eve one user has it activated, the umbrella system won’t let any other user log in without turning on 2FA as well – so going into noreply’s account and creating a specific application password for discourse solved that issue.

Sorry for wasted topic, but hopefully this will help any other user who may have a similar system.

---

<div class="post-metadata">

### Author: ![brunomaso1](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@brunomaso1](https://meta.discourse.org/u/brunomaso1)
#### Post date: [October 5, 2016, 12:55am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/6 "2016-10-05T00:55:10Z")

</div>

Hi Zane,

How did you create a specific application password?

Thanks!

---

<div class="post-metadata">

### Author: ![ZenOokami](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zenookami/32/121455_2.png) [@ZenOokami](https://meta.discourse.org/u/ZenOokami)
#### Post date: [November 26, 2016, 3:56am UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/7 "2016-11-26T03:56:44Z")

</div>

Sorry for the late reply Bruno - for you (or any passer by readers):

Log into the zoho account, head to the account settings menu (not the mail settings, but the actual account) - at the time of posting - by clicking your account picture at the top right of the zoho site, and click “my account”. From here, you simply click “Two Factor Authentication”, and then click “Manage Application Specific Passwords”, and generate a new one with the title you give it.

And that should do it!

---

<div class="post-metadata">

### Author: ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)
#### Post date: [May 28, 2019, 6:59pm UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/8 "2019-05-28T18:59:46Z")

</div>

This thread came up when I was having no luck earlier this month using Zoho for our mail in a Discourse installation.

There was another MUST for us: Before going through the web-based installation steps you must set the `SiteSetting.notification_email` at the bottom of the `app.yml`. Otherwise Zoho won’t accept your mail and you would never get the activation mail or anything else.

---

<div class="post-metadata">

### Author: ![SuperMegabyte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermegabyte/32/192525_2.png) [@SuperMegabyte](https://meta.discourse.org/u/SuperMegabyte)
#### Post date: [September 2, 2020, 6:13pm UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/9 "2020-09-02T18:13:35Z")

</div>

This worked for me, thank you.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:36pm UTC](https://meta.discourse.org/t/cannot-get-email-to-send-using-zoho-mail/45554/10 "2024-06-08T12:36:55Z")

</div>

This topic was automatically closed after 2919 days. New replies are no longer allowed.
