Re: [exim-dev] [PATCH] Implement redirect

Pàgina inicial
Delete this message
Reply to this message
Autor: Robert Millan
Data:  
A: exim-dev
CC: Magnus Holmgren
Assumpte: Re: [exim-dev] [PATCH] Implement redirect
On Mon, Jul 03, 2006 at 09:16:16AM +0100, Philip Hazel wrote:
> On Sat, 1 Jul 2006, Magnus Holmgren wrote:
>
> > > > redirect_special:
> > > >   driver = redirect
> > > >   check_local_user
> > > >   require_file $home/.redirect
> > > >   condition = ${a hairy condition that reads the file, picks the domain
> > > >     out of the address, and checks it against +local_domains for not
> > > >     being local}
> > > >   data = :fail: Not local, try ${readfile{$home/.redirect}}

> > >
> > > IIUC, this will generate a bounce, not a delivery-time status code.
> >
> > No, as long as no_verify isn't set, the router data will be processed as part
> > of recipient verification, so the ":fail:" will cause a 550 status code.
> > However, for it to work, the exim user must be able to read the .redirect
> > file.
>
> Yes, that's right. I think this is the point that you may have
> overlooked, Robert. The routers are used at SMTP ACL time when an
> address is verified - so they can influence the status code at that
> point. In fact, you might like to add verify_only to the above router,
> so that it is *not* used when actually deliverying a message.


Ok, I think I got it right now. I implemented smtp_code support in routers and
sent an update of my previous patch. Please check it out:

http://www.exim.org/bugzilla/show_bug.cgi?id=115

--
Robert Millan

My spam trap is honeypot@???. Note: this address is only intended for
spam harvesters. Writing to it will get you added to my black list.