zonemta-limiter
Limiter plugin for ZoneMTA. Install this to avoid accidental messagebombs where the same sender is sending excessive mail to the same recipient.
Setup
Add this as a dependency for your ZoneMTA app
npm install zonemta-limiter --save
Add a configuration entry in the "plugins" section of your ZoneMTA app
...
"plugins": {
"modules/zonemta-limiter": {
"enabled": "sender",
"prefix": "zl:",
"limit": 100,
"windowSize": 1800,
"debug": false
}
}
...
Where
- prefix is the prefix for redis keys
- limit is the allowed messages in a time window. After this limit is reached, messages are dropped until window opens again
- windowSize is the time window in seconds
- debug if true then does not drop messages, only logs errors
License
European Union Public License 1.1 (details)