This issue I have is knowing how to read any of the attributes listed here
www.postfix.org/SMTPD_POLICY_README.html#protocol

I have tried using $attr = @_; and local(*attr) =@ _;  to retreive the
variables but $attr always remains empty. I have also set up the script to
write the contents and element count of $attr which shows me "" and 0.

You have to read them from STDIN, as shown on the same page (greylisting example)

http://www.postfix.org/SMTPD_POLICY_README.html#greylist_code

Reply via email to