# 无法在 Digital Ocean 上发送邮件

**URL:** <https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914>\
**Category:** Self-hosting\
**Created:** [2019年六月10日 12:17 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914 "2019-06-10T12:17:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navin\_Mehta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/navin_mehta/32/143413_2.png) [@Navin\_Mehta](https://meta.discourse.org/u/Navin_Mehta)\
**Post date:** [2019年六月10日 12:17 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/1 "2019-06-10T12:17:06Z")

</div>

I have created the droplet on digital ocean. Using the inmotion SMTP details .  
I am not able to receive the email. The sign up page goes to 404 not found error.

Did the troubleshooting and telenet on the digital ocean server was done. Following error is show.  
Is DO blocking my email or Inmotion hosting ? Any suggestions.

![image](https://global.discourse-cdn.com/meta/original/3X/e/b/ebee19b01fe718a712f531bcb1ad719c98dbc856.png)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年六月10日 12:44 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/2 "2019-06-10T12:44:26Z")

</div>

> [@Navin\_Mehta](#):
>
> The sign up page goes to 404 not found error.

I don’t know how that could happen.

How did you install discourse?

---

<div class="post-metadata">

**Author:** ![Navin\_Mehta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/navin_mehta/32/143413_2.png) [@Navin\_Mehta](https://meta.discourse.org/u/Navin_Mehta)\
**Post date:** [2019年六月10日 12:59 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/3 "2019-06-10T12:59:31Z")

</div>

I used the digital ocean one click link. I am getting the 404 not found page. I did the Telnet to my SMTP server for trouble shooting.

I am getting error 200 - you are not allowed to send the mass emails. - the message I posted above.

My hunch is that - while setup, discourse is establishing smtp connection, refusal of connection is timed out and takes to another page (404 not found).

I need advise on how to rectify the SMTP server error. I am using inmotion hosting.

---

<div class="post-metadata">

**Author:** ![marianord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marianord/32/90502_2.png) [@marianord](https://meta.discourse.org/u/marianord)\
**Post date:** [2019年六月10日 14:19 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/4 "2019-06-10T14:19:23Z")

</div>

Did you had a previous account on Digital Ocean? Which port is SMTP using?

I ask this because Digital Ocean blocks port 25 on accounts that doesn’t have at least 6 months.

---

<div class="post-metadata">

**Author:** ![Navin\_Mehta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/navin_mehta/32/143413_2.png) [@Navin\_Mehta](https://meta.discourse.org/u/Navin_Mehta)\
**Post date:** [2019年六月10日 14:35 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/5 "2019-06-10T14:35:58Z")

</div>

Mariano, I am using default port 586. This is the new account with DO.

I have main domain on Inmotion hosting - [www.example.com](http://www.example.com) and have email account [admin@example.com](mailto:admin@example.com). Have the inmotion settings for this email accounts.

I have created sub domain as [forum.example.com](http://forum.example.com) this is redirected to digital ocean. Don’t have any SMTP settings on DO.

Any suggestions from experts ?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年六月10日 16:15 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/6 "2019-06-10T16:15:53Z")

</div>

> [@Navin\_Mehta](#):
>
> I am getting error 200 - you are not allowed to send the mass emails. - the message I posted above.

I don’t see that message posted above. I suspect that means that inmotion hosting doesn’t want you to use their SMTP server to send what it considers “mass emails.” You can ask them about the error. We cannot know.

You should probably use one of the recommended mail providers like Mailgun.

> [@Navin\_Mehta](#):
>
> I used the digital ocean one click link.

See [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) for how you should install Discourse. When you’re ready to reconfigure and use a different mail server, try doing this:

```plaintext
cd /var/discourse
./discourse-setup

```

---

<div class="post-metadata">

**Author:** ![Navin\_Mehta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/navin_mehta/32/143413_2.png) [@Navin\_Mehta](https://meta.discourse.org/u/Navin_Mehta)\
**Post date:** [2019年六月11日 00:26 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/7 "2019-06-11T00:26:26Z")

</div>

1. I have contacted Inmotion hosting and yet to receive the response.
2. In first instance, I used the custom method of installing. It didn’t worked, than I changed few parameters and rebuild. Finally tried one click method.

In trouble shooting, did the telnet and posted the error. This looks like SMTP is not allowing the mails.

Will do the mailgun or other provider. Thanks for all the suggestions so far.

---

<div class="post-metadata">

**Author:** ![Navin\_Mehta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/navin_mehta/32/143413_2.png) [@Navin\_Mehta](https://meta.discourse.org/u/Navin_Mehta)\
**Post date:** [2019年六月23日 14:40 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/8 "2019-06-23T14:40:21Z")

</div>

Finally I was able to install the discourse with lots of learning.

1. I was using the inmotion SMTP server and which doesnt allow the external email messaging. As suggested by forum members, utilised mailgun
2. It is important to follow all the mailgun setup steps. It will ask you to add DNS records on the main domain and will authenticate. This may take 15/20 mins.
3. Even after that, the discourse didnt worked. I killed the droplet multiple time.
4. I noticed the my subdomain records were having old IP address. Cleaned up all the subdomain records (DNS Zone).
5. Finally the email was received and after validating the link - 14 step wizard appeared.

The forum is worth all the effort and very happy for that 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2019年七月23日 14:40 UTC](https://meta.discourse.org/t/not-able-to-send-the-email-on-digital-ocean/119914/9 "2019-07-23T14:40:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
