Rules

Rules

Limits and guards

The daily limits and burst pause for rule mail, the loop guards that stop mail from going around in circles, bounce handling, and every setting under Limits and storage.

Rules that send mail can go wrong at scale: a too broad rule, two mailboxes forwarding to each other, an auto-responder answering another one. This page describes the limits and checks that stop this, and the settings that control them.

Limits and storage settings #

Open Settings → Rules and scroll to Limits and storage. The section says "Rules that send mail stop at these limits. The mail waits in the sending queue, and you get an alert." The settings are per user and apply to all your rules.

Setting Default Allowed What it does
Per rule, each day 100 messages 1 to 10,000 Most mails one rule may send in 24 hours
Per mailbox, each day 200 messages 1 to 10,000 Most rule mails one mailbox may send in 24 hours, all rules together
Pause sending after … a minute 20 1 to 1,000 More than this many rule mails from one mailbox in one minute pauses that mailbox's rule mail
Pause for … minutes 15 1 to 1,440 How long the pause lasts
Keep removed mail for … days 30 1 to 3,650 How long the Hub keeps redirected mail and mail deleted for good. See Captured mail.
Keep the activity log for … days 90 1 to 3,650 See Activity and undo
Time zone for “Time received” Your Hub's time zone Any time zone Used by the Time received condition

Change a value and choose Save. A value that is not a whole number of 1 or more is refused with "Use whole numbers of 1 or more." A value above the maximum is refused by the Hub, for example "limits.perRulePerDay must be between 1 and 10000".

What counts as rule mail: everything sent by Redirect, Forward and Reply automatically. Webhooks, notifications, copies and captures do not count.

Daily limits #

Both daily limits count over a rolling 24 hours, not per calendar day: a mail sent at 14:05 counts until 14:05 the next day.

When a limit is reached, the next rule mail is not sent. It waits in the sending queue as Paused with "A daily limit was reached." and one of these details:

  • "The rule reached its limit of 100 mails a day"
  • "The mailbox reached its limit of 200 rule mails a day"

You get an alert ("Rule mail is paused") the first time an item is held this way. The item goes out by itself as soon as the oldest send of the last 24 hours drops out of the window. Nothing is lost, and nothing needs you, unless you want to raise the limit.

Tip

If a rule reaches its limit on an ordinary day, check it in Rule activity before you raise the limit. A rule that suddenly sends many mails usually matches more than you meant.

Burst pause #

If a mailbox sends more rule mails in one minute than Pause sending after allows, the Hub pauses all rule mail from that mailbox for Pause for minutes. Items wait as Paused with "Sending is paused because many messages went out in a short time." and the detail "Sending from this mailbox is paused until 2026-12-05T14:20:00Z (too many rule mails in a minute)". You get the alert "More than 20 rule mails in a minute: sending from this mailbox is paused for 15 minutes".

After the pause, sending continues by itself. The burst pause is a brake for loops that the loop guards below do not catch, for example two systems that rewrite each other's headers.

Loop guards #

Before every redirect and forward, the Hub checks the message's headers. It checks once with the headers it has stored and again with the full message just before sending. If a guard applies, the step is Skipped in the activity log with one of these details. The message stays where it is, and the rules after this one still run.

Detail When
Loop guard: this message was sent by a rule of this Hub The message carries this Hub's own X-Postern-Id header: a rule of yours sent it, and it came back.
Loop guard: this message was already sent on by 3 other Postern rules The message passed through three or more other Postern Hubs' rules already.
Loop guard: automatic mail (Auto-Submitted: auto-replied) is not sent on The message has an Auto-Submitted header other than no: an out-of-office reply, a notification from a program, another redirect.
Loop guard: delivery reports are not sent on A bounce: the sender is mailer-daemon or postmaster, the message is a delivery report (multipart/report), or it has an empty Return-Path.

Reply automatically has its own checks: no replies to automated mail, mailing lists, no-reply addresses, your own mailbox, delivery reports, and at most one reply a day per sender and mailbox. See Steps.

Your own addresses #

A redirect or forward to an address of the mailbox the message is in would deliver the message back to the same mailbox, where the rule would match again. The rule editor refuses to save such a step. If an address became the mailbox's own later (for example a new alias), the step fails at run time with "Loop guard: you@example.com is an address of the mailbox this message is in".

The comparison ignores case and +tag parts. For Gmail addresses it also ignores dots in the local part and treats googlemail.com as gmail.com. So You.Name+news@gmail.com counts as youname@gmail.com.

How rule mail is marked #

Every message a rule sends carries these headers, so that this Hub and others can recognise it:

Header Value
X-Postern-Id <hub tag>/<queue item ID>. The hub tag is a random 12-character value created once per Hub.
X-Postern-Rule The rule's ID
Auto-Submitted auto-forwarded for redirects and forwards, auto-replied for automatic replies
X-Auto-Response-Suppress All, on automatic replies, so Microsoft Exchange auto-responders do not answer

Mail programs and servers that follow RFC 3834 do not send automatic replies to mail with Auto-Submitted, which breaks most loops on the other side as well.

Bounces #

For 14 days after a rule sends mail, the Hub watches the sending mailbox for bounces. A bounce that belongs to a rule mail puts the queue item to Needs you, raises the alert "A rule mail bounced: ..." and moves the bounce message to Trash. See Sending queue.

What you see when a guard acts #

Where What
Rule activity Skipped entries with a "Loop guard: ..." detail
Sending queue Paused items with the limit or pause reason; Needs you for bounces
Settings → Rules under Needs your attention The alert, also sent to your alert channels