Re: Alternate checks for reinjected mail

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=...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-29-2005
Magnus Bäck
 
Posts: n/a
Default Re: Alternate checks for reinjected mail

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0