OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Add header based on number of recipients

From: Jan P. Kessler (postfixjpkessler.info)
Date: Wed Feb 04 2015 - 08:40:16 CST


With postfwd you could use the following rule:

id=RCPTCNT
     action=PREPEND X-RCPT-COUNT: $$recipient_count

or something like that

id=RCPTCNT01
     recipient_count>=200
     action=PREPEND X-RCPT-COUNT: RED

id=RCPTCNT02
     recipient_count>=100
     action=PREPEND X-RCPT-COUNT: YELLOW

Please note that postfwd must be used at DATA or END-OF-MESSAGE stage to
get recipient_count reliably.

cheers, jpk