Skip to content
Sai Gopal edited this page Aug 30, 2015 · 4 revisions

Welcome to the ratelimitd wiki!

ratelimitd : Rate Limiting Solution With Redis Backend For Postfix

  • Uses the policyd protocol to communicate with Postfix
  • Uses Redis As its data store for quota
  • Provides various lookup methods to differentiate keys.(ip,sender etc) so that they can have different rate limits
  • Its a single threaded server and uses async network programming [Poll]

ratelimitd is a lightweight rate limiting daemon based on the policyd protocol provided by Postfix. It is similar to the way policyd/cluebringer programs except that this is written in python and uses Redis as its data store for speed.

Installation

For RHEL based systems

simply download the rpm and then
sudo yum install filename.rpm

Requirements

ratelimitd needs the following packages/libs

  • Python 2.6+. [3.x Not Supported]
  • Pip packages
    • redis [Please install redis python lib from pip only]
    • hiredis [For Performance]
  • Redis Server 3+

Links To Help Setup ratelimitd

Todo

  • Add more Lookup Types For Profile
    • mysql

License

Apache License, Version 2.0