I followed the steps mentioned in the forum - how to collect bounces for triggering a script upon a bounce receipt. Now, I would like to classify the bounce depending on the status. It would be deferred/delivered/etc.. This would categorize them as soft . vs hard bounce. Any idea on how this can be achieved?
I looked at the pipe command attributes and dont find a {status} argument to the script that we execute.
Below is my postfix master config extract:
bounces unix - n n - - pipe
flags=FRqx user=bounce argv=/usr/share/postfix/bounce.sh ${sender} ${recipient} ${mailbox} ${original_recipient} ${recipient}
smtps inet n - y - - smtpd
-o content_filter=bounces:dummy
Transport.maps:
bounces@teleduce.tech bounces
My end goal is to classify hard vs soft bounces.
Regards