Hello all,
I am using https://gitlab.com/openstrike/ratelimit-policyd to do
ratelimting of high volume senders. The software is good but I want to
ratelimit/quota sending only to external domains whereas mails to same
domain need to be unlimited/unrestricted.
When receiving the mail the software gets recipient attribute/value -
only if there is single recipient. If there is more than one recipient
- either in to or cc the  recipient field is blank.
The code is available here.
https://gitlab.com/openstrike/ratelimit-policyd/-/blob/master/ratelimit-policyd.pl

My postfix version is 2.10.1-9.el7
in Postfix SMTP Access Policy Delegation
http://www.postfix.org/SMTPD_POLICY_README.html - it says,
The "recipient" attribute is available in the "RCPT TO" stage. It is
also available in the "DATA" and "END-OF-MESSAGE" stages if Postfix
accepted only one recipient for the current message. The DATA protocol
state also applies to email that is received with BDAT commands
(Postfix 3.4 and later).

What is the way to get all recipients (both in to and cc) into a
variable/or array to help me determine whether the recipient is
internal or external?

Thanks
DP

Reply via email to