# Daily limits for outgoing mails per user

**URL:** <https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458>\
**Category:** Feature\
**Tags:** feedback\
**Created:** [March 23, 2016, 4:37am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458 "2016-03-23T04:37:30Z")\
**Posts on this page:** 20\
**Page:** 1

## AI-generated summary

Sam introduced a new feature capping daily outgoing emails per user at 100 by default, designed to prevent domain reputation issues, reduce email costs, and discourage excessive email notifications. This limit applies to post and mailing list notifications but excludes 'forgot password' resets. While some users like [peternlewis](/t/-/41458/17) rely on 'mailing list mode' for their workflow and appreciate the ability to disable the cap, others like [codinghorror](/t/-/41458/9) and [ljpp](/t/-/41458/10) emphasize the extreme risks of 'mailing list mode' on busy sites, comparing it to a 'nuclear bomb' and suggesting warnings or limits on 'watch' features as well.

A significant debate arose regarding whether Private Messages (PMs) should be included in the daily quota. [ljpp](/t/-/41458/12) argued PMs contain high personal value and should always be delivered, whereas [sam](/t/-/41458/13) countered that PMs can be abused as chat channels, causing email floods, and that the in-site 'green' notification remains a viable alternative. The consensus leaned towards keeping the limit for PMs to protect users from abuse.

The discussion also explored better user interfaces to prevent accidental high-volume email settings. Users suggested displaying estimated daily email counts before enabling 'mailing list mode' or 'watch' features, similar to Google Groups. [gdpelican](/t/-/41458/36) confirmed that estimating mailing list frequency is already being implemented. Finally, the community shared technical solutions for administrators to monitor email usage, including SQL queries via the Data Explorer plugin to track emails sent per user per day [cpradio](/t/-/41458/33).

<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:** [March 23, 2016, 4:37am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/1 "2016-03-23T04:37:30Z")

</div>

I just checked in a feature that puts a cap on the number of emails we can send a user per day.

[https://github.com/discourse/discourse/commit/c095304d6df578edff399cf19876385e9aabaf06](https://github.com/discourse/discourse/commit/c095304d6df578edff399cf19876385e9aabaf06)

Out of the box `max_emails_per_day_per_user` of 100 emails per day is applied. You may bypass this limit by setting it to 0 or make it bigger.

When a user hits the limit we will display

> WARNING: you reached the limit of 100 daily emails. Further emails notifications will be suppressed.

This is displayed at the bottom of the 100th emails.

Cap does not apply to “forgot password” (where a different cap applies) - it applies to email notifications and mailing list notifications.

May your sendgrid bills be cheaper…

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [March 23, 2016, 4:49am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/2 "2016-03-23T04:49:30Z")

</div>

You added the #feedback tag, so I have a question…why? How many users do you see getting 100+ emails in a day (on Meta or elsewhere)?

Note: I am not against this feature in any way, just curious why it is needed.

---

<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:** [March 23, 2016, 4:50am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/3 "2016-03-23T04:50:38Z")

</div>

This issue usually creeps in on mega active sites like BBS, heloforos, turtlerock and gearbox, probably 10-20 users hit that limit daily.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [March 23, 2016, 4:52am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/4 "2016-03-23T04:52:47Z")

</div>

Does this affect site performance, or is the main goal to lower email costs?

---

<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:** [March 23, 2016, 4:57am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/5 "2016-03-23T04:57:05Z")

</div>

The goals are:

1. Reduce risk of burning your domains email because users get so annoyed with you that they start flagging the flood of mails they ask for as spam.

2. We rate limit all things, email was very oddly absent from our general rate limit pattern.

3. Lower email costs for self hosting people, ability to better control how much email each user can eat

4. Encourage users to stop watching too much stuff, disable mailing list mode on large sites and disable the “notify via email even if I am around” feature.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [March 23, 2016, 5:00am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/6 "2016-03-23T05:00:36Z")

</div>

> [@sam](#):
>
> 4.Encourage users to stop watching too much stuff, disable mailing list mode on large sites and disable the “notify via email even if I am around” feature.

So if part of the goal is to lower how much users watch, and disable 2 features, why not limit how much a user can watch and remove the 2 features? I can understand mailing list mode, and also can see how it is an issue on large sites, but I never got the “notify via email even if I am around” feature…

---

<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:** [March 23, 2016, 5:03am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/7 "2016-03-23T05:03:10Z")

</div>

On the vast majority of Discourse sites none of this is a problem.

When you are bootstrapping a site you kind of want the volume to be at 11. The issue is that some settings that are OK on a small site are terrible on a huge site.

This feature is an equalizer.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [March 23, 2016, 5:07am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/8 "2016-03-23T05:07:57Z")

</div>

> [@jomaxro](#):
>
> lower how much users watch

Please don’t  
I Watch plenty and I’d like to keep it that way.

But of course I visit every day and have disabled all emails so getting a flood of emails is not a problem for me.

I added Watch via my Preferences page,

I disabled emails via my Preferences page.

Are there many that add Watch via the buttons and are unaware of the email settings in their Preference page?

---

<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:** [March 23, 2016, 5:13am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/9 "2016-03-23T05:13:43Z")

</div>

In our research the “mailing list mode” was the greatest offender by far, where users get one email for every single post in the system. It is possible to get a fair number of emails (way more than 100/day) by watching a busy category (or two) but mailing list mode is absolutely nuclear, _incredibly_ dangerous on a busy site, very much akin to The Giant Red Button.. thousands of emails a day, in one tiny click.

We are adding a giant scary UI warning to this option very soon so it is not clicked accidentally.

---

<div class="post-metadata">

**Author:** ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)\
**Post date:** [March 23, 2016, 6:29am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/10 "2016-03-23T06:29:15Z")

</div>

Awesome!

May I add that this is an excellent safety feature against the extremely dangerous user setting:

```
Send me an email for every new post (unless I mute the topic or category)

```

One question - this settings does not limit the amount of private message email notifications, right?

I am actually considering to use a very strict daily email limit. Basically a user would only be notified once or a few times max, as we he comes to the site he’ll see the profile icon notifications of all the missed activity.

Would you agree, @sam?

---

<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:** [March 23, 2016, 6:33am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/11 "2016-03-23T06:33:50Z")

</div>

[quote="ljpp, post:10, topic:41458]  
One question - this settings does not limit the amount of private message email notifications, right?  
[/quote]

This limits both messages and and general post notifications. So yeah, by design it limits both. You could go stricter, but going down to 1 would be a bit harsh.

---

<div class="post-metadata">

**Author:** ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)\
**Post date:** [March 23, 2016, 6:37am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/12 "2016-03-23T06:37:12Z")

</div>

Hm…in my opinion, at least on first thought, PMs should not be a part of this limitation/quota.

A private message potentially contains information of significant personal value, as a decision has been made about privacy, and therefore I feel a notification should always be delivered.

---

<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:** [March 23, 2016, 6:39am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/13 "2016-03-23T06:39:22Z")

</div>

I disagree, we see some people use PMs as a “chat channel” and they can cause a flood of emails for people who participate in the PMs.

Having some limit in place protects you to a degree. Besides the “green” notification will still be there when you visit the site.

---

<div class="post-metadata">

**Author:** ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)\
**Post date:** [March 23, 2016, 6:45am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/14 "2016-03-23T06:45:56Z")

</div>

Perhaps the limiter should separate for PMs and public posts? Or an option to exclude PMs from the limit?

I get your private chatting use case issue. It seems that your customers have really developed interesting cultures (recent private topic max length limit). That does not invalidate my point though, which is that a PM potentially contains information of higher personal value, even if some people exploit the feature to other purposes.

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [March 23, 2016, 5:12pm UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/15 "2016-03-23T17:12:52Z")

</div>

I like this. Nice idea, and thanks! 🚀

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [March 23, 2016, 5:49pm UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/16 "2016-03-23T17:49:30Z")

</div>

Very good sam 🎆

We are sending more than 3k emails a day (after nerfing the two email settings a lot).

Setting this to something like 3 or 5 will help a lot.

---

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [March 24, 2016, 11:55am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/17 "2016-03-24T11:55:25Z")

</div>

Clearly my site must be different, but as it grew out of a mailing list, myself and several of the active users very much use “mailing list mode” as a primary way of using the forum.

The whole purpose of the “Send me an email for every new post” is kind of defeated if it then doesn’t actually send an email for every new post, so I’m at least glad to hear this setting can be disabled.

---

<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:** [March 24, 2016, 1:42pm UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/18 "2016-03-24T13:42:37Z")

</div>

100 mails a day is a lot of mails, do you ever reach that scale?

---

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [March 25, 2016, 2:27am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/19 "2016-03-25T02:27:52Z")

</div>

It does not look like it. The site has had 750 posts over the last 30 days, hence average of 25/day - even allowing for spikes it probably would not get to 100/day.

However, that said, I want to see every post in my mailbox - my mailbox is my own archive of the site. Even if the site was doing ten times the traffic, I’d want to see every post in my mailbox, because my mailbox is how I process the site. And its the same way several of the other volunteers process the site.

---

<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:** [March 25, 2016, 2:40am UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/20 "2016-03-25T02:40:36Z")

</div>

Which is fair enough, and totally your call, hence it is a site setting

[Next page](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458.md?page=2)
