Hi,
Ideally, I would like to set up soft and hard limits for outgoing emails so that:
- domain admin, user and mailcow admin can be notified when reaching soft limit
- outgoing emails are blocked when reaching hard limit
However, I only found how to define a hard limit. Did I miss something, or Is there a workaround to achieve my goals? At least getting outgoing statistics for each user would be great, so that it can be post processed in a script. A few vague ideas:
- use watchdog RATELIMIT_THRESHOLD
- use a rspamd module?
- query rspamd via its API
- query redis directly