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

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Magnus Holmgren
CC: exim-dev
Subject: Re: [exim-dev] [PATCH] Implement redirect
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.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book