Am 21.09.2015 um 08:25 schrieb Kianoosh Kashefi:
I use Postfix with Postfwd as policy service. and I want to limit all outgoing messages with exceptions for several SASL users with HOLD verdict. I'm new to postfwd so I need configuration example for rate-limiting with HOLD verdict (for instance limit all users outgoing messages to 10 messages per minute and HOLD messages exceeding that limit) also I need the same configuration to apply only to certain SASL users again with HOLD verdict (for example limit a certain user's outgoing messages to 100 message per minute and HOLD messages exceeding that limit). I appreciate if you reply with full configuration examples for these two cases.

Thanks.

Please note, that you should ask on postfwd's mailing list for these terms. Here is a sample ruleset, that limits User Bob to 50 recipients per minute:

POSTFIX MAIN.CF
==============
smtpd_recipient_restrictions =
        ...
        # place this BEFORE permit_* stuff
        check_policy_service inet:127.0.0.1:11040


POSTFWD CONFIGURATION
=======================
id=R001
    sasl_username==bob
    action=rate(sasl_username/50/60/HOLD)

The HOLD action is (from postfwd's point of view) not different to any other postfix action. See http://www.postfwd.org/ratelimits.html for more examples.

Reply via email to