Re: question about bouncing a specific message

From: Wietse Venema (no email)
Date: Fri Aug 01 2003 - 12:37:15 EDT


Victor Duchovni:
> On Fri, 1 Aug 2003, Wietse Venema wrote:
>
> > > > Let's suppose I have a message in my message queue that
> > > > I'm sure it wont
> > > > be delivered. I know I can erase the message using 'postsuper
> > > > -d queueid'.
> > > > But I'd like to know if there's a way of forcing the message
> > > > to be bounced
> > > > instead of simply erased.
> >
> > The mail WILL NOT be simply erased. It will be returned to the
> > sender.
>
> I think he wants to get the bounce to take place immediately... If this is
> for a single special message, my header_checks trick works. If this is for
> a lot of mail to an undeliverable destination, one can just route the
> destination to the "error:Destination unreachable" mailer.

Sure, creative workarounds exist.

A proper solution is to add a field to the queue file that says
when mail expires. Such a field is created when the queue file is
created. It can be given different values for different categories
of email, and it can be updated on the fly.

        Wietse








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD