# A mail account stops sending after many messages in an hour

UrbeStack sysadmin note about Rspamd. Last updated 30 Nov 2026.

When a mail account sends many messages, the mail client gets `451 4.7.1 Ratelimit "urbestack_account" exceeded`. Rspamd enforces UrbeStack's hourly limits for mail accounts and domains, and you can raise them.

## Symptoms

The mail client gets this temporary rejection.

```output
451 4.7.1 Ratelimit "urbestack_account" exceeded
```

The mail log at `/var/log/maillog` on AlmaLinux or `/var/log/mail.log` on Ubuntu shows an entry like this for each refused message.

```output
postfix/cleanup[2596]: B643B10BBF2B: milter-reject: END-OF-MESSAGE from server.example.net[127.0.0.1]: 4.7.1 Ratelimit "urbestack_account" exceeded; from=<user@example.com> to=<someone@example.org> proto=ESMTP helo=<server.example.net>
```

## Cause

Rspamd enforces UrbeStack's hourly sending limits. The defaults are 100 messages an hour for each mail account and 300 for each domain.

A limit of `N` messages works as a bucket that holds `N` messages and refills at `N` messages an hour. You can send `N` messages at once, then one more each time the bucket refills enough for another message.

The refusal is temporary. The mail client may try again later.

## Resolution

Check the mail trace for the sender. It shows that the `hourly_limit` rule fired.

```
urbestack-mail-trace --q user@example.com --dir sender
```

To raise the hourly limit for one mail account, set it on that account.

```
urbestack-mail-account-set --address user@example.com --hourly-limit 500
```

To raise the hourly limit for all mail from a domain and the limit for each of its mail accounts, set both limits on the domain.

```
urbestack-mail-domain-set --name example.com --hourly-limit 1000 --account-hourly-limit 500
```

To change the server defaults for mail accounts and domains without their own limits, use `mail.account_hourly_limit` and `mail.domain_hourly_limit`. This command sets the mail account default to 200 messages an hour.

```
urbestack-setting-set --key mail.account_hourly_limit --value 200
```

If a mail account suddenly sends far more mail than usual, someone may have stolen its password. See [A mail account is sending spam](https://urbestack.com/sysadmin-notes/postfix-compromised-mail-account-spam/).

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
