This is a discussion on Re: Alternate checks for reinjected mail within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Sunday, May 29, 2005 at 15:45 CEST, Jorey Bump <list@joreybump.com> wrote: > Magnus B=...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Sunday, May 29, 2005 at 15:45 CEST,
Jorey Bump <list@joreybump.com> wrote: > Magnus B=E4ck wrote: > > > > #!/usr/bin/bash > > > /usr/bin/spamc | /usr/sbin/sendmail -i "$@" > > > exit $? > > > > This is not robust. What happens if either of the forks fail? >=20 > Apparently, the mail gets delivered without filtering. No. The script will return an exit status that will cause Postfix to bounce the message. > At least this is what happens when spamd is not running. I think if > the sendmail binary failed, it would indicate a more serious problem > that I could not easily ignore. You assume too much. Postfix expects the exit status of such scripts to be one of the constants defined in sysexits.h. [...] --=20 Magnus B=E4ck magnus@dsek.lth.se |