I have set up system where all mails are piped to my script. In master.cf I have:
phptran unix - n n - - pipe flags=DFORq user=nobody argv=/usr/bin/php5 /root/phptran.php ${sender} ${recipient}
I can get mail and headers but I cannot get all of RCPT TO command, specifically NOTIFY part, for example in command
RCPT TO:user@domain.com NOTIFY=SUCCESS,FAILURE
How can I get this information from script? Is maybe there a way to put that inside headers?
Any guidance would be highly appreciated.