zonemta-limiter

1.0.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i zonemta-limiter

Weekly Downloads

45

Version

1.0.0

License

EUPL-1.1

Unpacked Size

5.19 kB

Total Files

8

Last publish

Collaborators

  • andris