Re: Safely executing your mail filter?

Thorsten Haude <[email protected]> Mon, 19 Jan 2004 23:49:49 +0100
Newsgroups gmane.comp.lang.perl.modules.mail-audit
Organization Ministry of Information, Department of Works
Message-ID <[email protected]>
--lildS9pRFgpM/xzO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

* Robert Nicholson <[email protected]> [2004-01-19 09:25]:
>So all incoming mail that comes to my domain gets put via qmail into a=20
>perl script and custom filtering is performed.
>
>Occasionally an error makes it's way into the perlscript and it fails=20
>to run. When this happens I lose email.
>
>I would like to ensure that this doesn't happen.

Try this:
    audit.pl || exit 75

More useful would be a way to capture Perl's mocking and feed it to
the MTA; I'm not sure whether this solution does that. Take care
though that 75 (EX_TEMPFAIL) is returned and the mail will be
deferred, not dumped.


Thorsten
--=20
It is exactly because markets are amoral that we cannot
leave the allocation of resources entirely to them.
    - George Soros

--lildS9pRFgpM/xzO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFADF8NW/x2JEBlodoRAqi+AKDtkjJb47xHCKPcP+eVzior2dh9WwCfSYMv
Fmrgo92srYbZtvNB+zFVA4c=
=I3Qq
-----END PGP SIGNATURE-----

--lildS9pRFgpM/xzO--