# 如何在设置 Discourse 时留空某个字段？

**URL:** <https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095>\
**Category:** Self-hosting\
**Created:** [2018年十月9日 12:42 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095 "2018-10-09T12:42:35Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)\
**Post date:** [2018年十月9日 12:42 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/1 "2018-10-09T12:42:35Z")

</div>

![Screenshot%20(301)](https://global.discourse-cdn.com/meta/original/3X/6/c/6c90ceb6838659c099b2dc2251e11eaec03882be.png)

How to leave stmp username and pass blank. I don’t want to assign them.

While setting it for the first time I made a mistake by assigning an email address. Is there anyway to correct this by leaving it blank? And one more doubt

After I make changes to app.yml How do I save the changes?

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2018年十月9日 13:04 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/2 "2018-10-09T13:04:20Z")

</div>

If you don’t enter anything in the field the value in the` []` is used.

Please note that gmail is not supported for outbound SMTP. Doing so is against Google’s terms of service and you will very quickly hit rate limits.

Please review the email setup guide: [discourse/docs/INSTALL-email.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-email.md)

---

<div class="post-metadata">

**Author:** ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)\
**Post date:** [2018年十月9日 13:13 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/3 "2018-10-09T13:13:04Z")

</div>

But when I hit enter, the value get’s stored as [admin@doubtion.com](mailto:admin@doubtion.com) again.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2018年十月9日 13:14 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/4 "2018-10-09T13:14:30Z")

</div>

Setup requires one admin account, if you’ve created a second unwanted account you can delete it once you’re logged in.

SMTP settings are required for setup, you can’t skip them.

---

<div class="post-metadata">

**Author:** ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)\
**Post date:** [2018年十月9日 13:16 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/5 "2018-10-09T13:16:02Z")

</div>

No. basically I am setting up g suite just to get the verification e-mail (while setting up discourse). So I need these two fields to be left blank. Would it be possible?

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2018年十月9日 13:17 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/6 "2018-10-09T13:17:11Z")

</div>

Why would you need them to be blank if you’re going to use g-suite? That doesn’t make any sense.

Why not set up email correctly to begin with?

---

<div class="post-metadata">

**Author:** ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)\
**Post date:** [2018年十月9日 13:19 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/7 "2018-10-09T13:19:45Z")

</div>

I didn’t set it up correctly the first time. Never received an e-mail.

Reason I’m leaving it blank  
[https://crunchify.com/how-to-setup-email-for-discourse-forum-with-google-apps-smtp-relay-right-way/](https://crunchify.com/how-to-setup-email-for-discourse-forum-with-google-apps-smtp-relay-right-way/)

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2018年十月9日 13:21 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/8 "2018-10-09T13:21:54Z")

</div>

That doesn’t answer why you would use an unsupported email service over [one of the recommended options](https://github.com/discourse/discourse/blob/master/docs/INSTALL-email.md). Discourse will need working email to function correctly.

Please refer to the official documentation rather than the post linked above. Ignore the post from Crunchify suggesting you use Google Apps, as I’ve already said is a very bad idea.

---

<div class="post-metadata">

**Author:** ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)\
**Post date:** [2018年十月9日 13:33 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/9 "2018-10-09T13:33:29Z")

</div>

Hmm how do I set them up. The instructions aren’t clear. I’ve tried using the other providers.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2018年十月9日 13:52 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/10 "2018-10-09T13:52:51Z")

</div>

Where is it you’re stumbling?

Are you trying to set up the same domain [[doubtion.com](http://doubtion.com)] at both google apps and one of the recommended third parties?

You need to use a subdomain for email coming from Discourse, it doesn’t matter what, it just needs to be different. Common suggestions:

```
board.doubtion.com
forum.doubtion.com
discourse.doubtion.com
community.doubtion.com

```

And configure the MX records for the mail service routing from your board **under that subdomain**.

If two separate services are both set up with the same mail domain, they won’t know the other exists to route email there. So, if you had tried to use mailgun at [doubtion.com](http://doubtion.com) it wouldn’t be able to send email to your google apps mailbox. It would have thought it was [doubtion.com](http://doubtion.com).

---

<div class="post-metadata">

**Author:** ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)\
**Post date:** [2018年十月9日 16:27 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/11 "2018-10-09T16:27:41Z")

</div>

Thank you. i basically have no idea how to use mailgun.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2018年十月9日 17:06 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/12 "2018-10-09T17:06:51Z")

</div>

Step one would be to create a DNS entry for a subdomain to send mail from your Discourse instance. Let’s assume you’re going to use ‘[discourse.doubtion.com](http://discourse.doubtion.com)’. That means you’re going to be sending email from @discourse.doubtion.com

## Mailgun

Sign up for MailGun and add [discourse.doubtion.com](http://discourse.doubtion.com) as a domain. Leave the window open as it will show you what DNS records we’re going to need to add in the next step.

## Namecheap

Open your DNS control panel to create the MX and TXT records. You use NameCheap so it’s at [Namecheap.com • Login](https://ap.www.namecheap.com/Domains/DomainControlPanel/doubtion.com/advancedns)

Because your domain is already set up for GSuite your mail settings should already look like this:

![09%20AM](https://global.discourse-cdn.com/meta/optimized/3X/f/e/fe99ca6f4479c70bc1d3f3a480239542b1ab6114_2_690x62.png)

Replicate the DNS entries from Mailgun here, you’re going to need to add two MX records for the discourse subdomain, a CNAME for email.discourse as a subdomain, and two TXT records.

Wait ~10 minutes after creating these records then return to the mailgun window and click to verify the DNS records. If you got any wrong it will let you know. Once you’ve verified your domain use the credentials provided by Mailgun in the setup screen.

---

<div class="post-metadata">

**Author:** ![Seshank\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seshank_k/32/140017_2.png) [@Seshank\_K](https://meta.discourse.org/u/Seshank_K)\
**Post date:** [2018年十月9日 17:08 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/13 "2018-10-09T17:08:42Z")

</div>

I gotcha. Will do this and if we have any further queries we will be sure to reply on this thread. Thank you so much!

---

<div class="post-metadata">

**Author:** ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)\
**Post date:** [2018年十月10日 03:49 UTC](https://meta.discourse.org/t/how-to-leave-a-field-empty-while-setting-up-discourse/99095/14 "2018-10-10T03:49:43Z")

</div>

19 posts were split to a new topic: [Is it necessary to use Mailgun?](https://meta.discourse.org/t/is-it-necessary-to-use-mailgun/99155)
