help creating email filter

asmithjr

Well-Known Member
Jun 13, 2003
516
8
168
I have a customer that wants to have all failed emails for his account sent to /dev/null and to a script.

I tried setting up a filter for Header contains X-Failed Discard.

Here is vfilters
if
$message_headers contains "X-Failed"
then
save "/dev/null" 660
endif

This is not catching the email. All the failed (returned emails) are still going to his account.

Any help?