# Lag of 10+ minutes between posting and getting email notifications

**URL:** <https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475>\
**Category:** Support\
**Created:** [2015年十月14日 02:04 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475 "2015-10-14T02:04:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![coderanger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderanger/32/47147_2.png) [@coderanger](https://meta.discourse.org/u/coderanger)\
**Post date:** [2015年十月14日 02:04 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/1 "2015-10-14T02:04:02Z")

</div>

I’ve noticed a lag of about 10-12 minutes between posting something on the web interface and seeing the email notifications sent out. I don’t think this is an external lag problem since the headers show it isn’t even being sent by the Discourse systems for at least 10 minutes. Is this something that can be fixed?

---

<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:** [2015年十月14日 02:07 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/2 "2015-10-14T02:07:32Z")

</div>

This is by design, as there is a 5 minute grace period when editing posts. If we notified immediately we might send a post that is in the process of being revised. This can be changed in your site settings if you prefer less grace period for editing posts after submission.

The other setting that affects this is the email polling time, again, just edit your site settings to taste.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年十月14日 02:09 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/3 "2015-10-14T02:09:05Z")

</div>

I _think_ we can potentially get rid of the lag for “reply via email” kind of scenarios or make that optional. Odds of you quickly jumping to the web interface to fix are kind of low.

Also you get the double whammy when replying via email… wait up to 5 mins for post to show up than up to another 5 mins for the notify.

---

<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:** [2015年十月14日 02:14 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/4 "2015-10-14T02:14:27Z")

</div>

Yes for hosted customers we and @mpalmer have a plan to make the email polling part super fast on our hosting, but we have yet to automate the reply by email bits. Not quite there yet, but that 5 minute part of the 10 minutes we can definitely shorten dramatically. If you are on our hosting 😉

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年十月14日 02:18 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/5 "2015-10-14T02:18:21Z")

</div>

I will see if I can split the site setting up so we have:

```plaintext
email time window mins

```

and

```plaintext
email time window mins for email in 

```

For now for predominantly “mail in” types sites I would strongly recommend reducing the default “10” there to “1”.

---

<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:** [2015年十月14日 02:20 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/6 "2015-10-14T02:20:42Z")

</div>

the OP specifically said he was posting via web…

> [@coderanger](#):
>
> posting something on the web interface

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderanger/32/47147_2.png) [@coderanger](https://meta.discourse.org/u/coderanger)\
**Post date:** [2015年十月14日 02:21 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/7 "2015-10-14T02:21:34Z")

</div>

We’re using Discourse as a “mailing list with a nice web interface” so it’s all of the above. I’m from the Chef folks 🙂

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年十月14日 02:22 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/8 "2015-10-14T02:22:49Z")

</div>

Yeah, totally recommend winding down `email time window mins` there, it will cause stuff to notify faster. 10 mins is way too slow for you there.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015年十月14日 04:33 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/9 "2015-10-14T04:33:54Z")

</div>

> [@sam](#):
>
> email time window mins for email in

isn’t that `pop3 polling period mins` ?

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderanger/32/47147_2.png) [@coderanger](https://meta.discourse.org/u/coderanger)\
**Post date:** [2015年十月14日 06:05 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/10 "2015-10-14T06:05:56Z")

</div>

I’ve dropped both options to 1, the time from posting on the web to getting an email is now 5-6 minutes, which is better at least. Would 0 for the `email time window mins` break anything?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年十月14日 06:13 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/11 "2015-10-14T06:13:07Z")

</div>

> [@coderanger](#):
>
> Would 0 for the email time window mins break anything?

I don’t think it will break stuff, but winding down polling can cause issues if your pop3 server has restrictions (Google are notorious at randomly blocking aggressive pollers)

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderanger/32/47147_2.png) [@coderanger](https://meta.discourse.org/u/coderanger)\
**Post date:** [2015年十月14日 06:13 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/12 "2015-10-14T06:13:59Z")

</div>

Roger, I bumped the POP polling up a bit. thanks for the heads up!

---

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [2015年十月14日 10:31 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/13 "2015-10-14T10:31:52Z")

</div>

> [@riking](#):
>
> email time window mins for email in
> 
> isn’t that pop3 polling period mins ?

I _think_ that the first is the time Discourse waits before sending out mails for a post after it was processed (if it was received via email in), while the latter is the polling interval, i.e. the maximum time a mail should be unprocessed, stored in the inbox.

---

<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年八月8日 09:23 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/14 "2019-08-08T09:23:55Z")

</div>



---

<div class="post-metadata">

**Author:** ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)\
**Post date:** [2019年八月8日 12:25 UTC](https://meta.discourse.org/t/lag-of-10-minutes-between-posting-and-getting-email-notifications/34475/15 "2019-08-08T12:25:09Z")

</div>


