On 09/10/2011 09:27 AM Ramprasad wrote:
> I have a custom pipe script which postfix sends to
> 
> For eg in master.cf
> 
> bounce_handler   unix  -       n       n       -       -       pipe
>    flags=FR  argv=/opt/path/bounce_handler
> 
> 
> 
> How do I configure postfix that it defers the mails in case the script 
> exits with an error
> 

Something like that:

#!/bin/sh

# do something with the message

# check return code from the last command
if [ $? -ne 0 ]; then
    return 75
fi
return 0
#EOF


Regards,
Pascal
-- 
The trapper recommends today: fabaceae.1125...@localdomain.org

Reply via email to