Magnus Bäck wrote:
> On Monday, June 29, 2009 at 06:11 CEST,
> R Pradeepa <prade...@bheltry.co.in> wrote:
>
>> Can we have restriction on "smtpd_recipient_limit" parameter for one
>> group of users whereas for others we dont need this limitation.
>
> There is no Postfix builtin for this, but a custom policy server would
> be capable of enforcing such a policy. Only makes sense with SASL and
> reject_sender_login_mismatch, of course.
 

postfwd with sth like the following ruleset:

id=GROUP1; sender_domain==group1.local; recipient_count>=200; \
  action=REJECT too many rcpts $$recipient_count >= 200

id=GROUP2; sasl_username==you; recipient_count>=1000; \
  action=REJECT too many rcpts $$recipient_count >= 1000

# wants exclusive mails only ;-)
id=GROUP3; recipient==j...@doe.local; recipient_count>=1; \
  action=REJECT too many rcpts $$recipient_count >= 1

id=DEFAULT; recipient_count>=100; \
  action=REJECT too many rcpts $$recipient_count >= 100


Remind that postfwd must be integrated at smtpd_data_restrictions for
this to work. You can ensure this by:

id=GROUP1; protocol_state==DATA \
  sender_domain==group1.local; recipient_count>=200; \
  action=REJECT too many rcpts $$recipient_count >= 200


Jan P. Kessler

Reply via email to