Ramprasad: > 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
As documented: Command exit status codes are expected to follow the conventions defined in <sysexits.h>. Exit status 0 means normal successful comple- tion. In the case of a non-zero exit status, a limited amount of command out- put is reported in an delivery status notification. When the output begins with a 4.X.X or 5.X.X enhanced status code, the status code takes precedence over the non-zero exit status (Postfix version 2.3 and later). Thus, see /usr/include/sysexits.h for appropriate exit status codes. To defer mail, EX_TEMPFAIL (75) comes to mind. Wietse