BSD Ports

mail/ratelimit-policyd 1.0.4_1 DragonFly

Sender rate limit policy daemon for Postfix

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
NONE
Categories
mail
Package size
10.8 KiB, 31.3 KiB installed

Description

A sender rate limit policy daemon for Postfix written in Perl. Customised to work with a modern Perl version on FreeBSD.

In the other systems

The newest version among them is 1.0.4, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlymail/ratelimit-policyd1.0.4_1 newestnone known-[email protected]-
FreeBSDmail/ratelimit-policyd1.0.4_1 newestnone known-[email protected]-

Install

Binary package:

pkg install ratelimit-policyd

From DPorts:

cd /usr/dports/mail/ratelimit-policyd && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 3

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

This package must be integrated with Postfix to be effective:

 * Add a new MySQL user account for ratelimit-policyd with the
   following permissions:

    GRANT USAGE ON *.* TO 'policyd'@'localhost' IDENTIFIED BY '<YourPassword>';
    GRANT SELECT, INSERT, UPDATE, DELETE ON `policyd`.* TO 'policyd'@'localhost';

 * Create a database 'policyd' and a table 'ratelimit':

    mysql -u root -p < /usr/local/share/ratelimit-policyd/mysql-schema.sql

 * Edit the configuration in /usr/local/etc/ratelimit-policyd.cfg

 * Enable the ratelimit-policyd service in rc.conf:

    sysrc ratelimit_policyd_enable="YES"

 * Start the service:

    service ratelimit-policyd start

 * Add or modify the postfix data restriction class
   'smtpd_sender_restrictions' in main.cf:

    smtpd_sender_restrictions =
        check_sender_access mysql:/usr/local/etc/postfix/clients.cf,
        check_policy_service inet:127.0.0.1:10032

    check_policy_service must be after check_sender_access (if you are using it)

 * Reload Postfix:

    postfix reload

 * See the documentation in /usr/local/share/ratelimit-policyd/README.md
   or visit https://github.com/MirLach/ratelimit-policyd