Sahil Tandon a écrit : > bharathan kailath wrote: > >> one of our customer send mass mails thru our postfix server; is it >> possible to restrict number of mail recipient for a particular sender! >> help appreciated. > > Use a policy service. With postfwd, to limit m...@mailer.com to 20 > recipients per message, something like: > > id=RULE_01; recipient_count=21; sender=m...@mailer.com; action=REJECT >
it may be better to limit on a per IP (or subnet) basis. this way, the rate limit doesn't depend on the sender address. unless they authenticate and the sender is controlled. > You could also write your own policy service; read: > http://www.postfix.org/SMTPD_POLICY_README.html > an alternative is policyd.