Emmanuel BILLOT via Postfix-users:
Is it possible to route messages on others servers based on numbers of
recipients ?

Ex :
if number of recipient <10 then relayhost is A
if number of recipient >10 and <50 then relayhost is B
if number of recipient >50 then relayhost is C

On 21.07.25 07:55, Wietse Venema via Postfix-users wrote:
Perhaps postfwd can do this.

Otherwise, use check_policy_service with  custoim policy server
that returns FILTER commands to route the message.

postfwd works as policy filter, so it can do that.

Note that in order to know number of recipients, you must call postfwd from smtpd_data_restrictions or smtpd_end_of_data_restrictions

Also, using FILTER from smtpd_*_restrictions overrides content_filter settings and can be only done once, and the last will be executed.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
You have the right to remain silent. Anything you say will be misquoted,
then used against you.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to