Re: [exim] check local parts for specific domain

Góra strony
Delete this message
Reply to this message
Autor: Peter McEvoy
Data:  
Dla: exim-users
Temat: Re: [exim] check local parts for specific domain
On Fri, Sep 10, 2004 at 02:52:22PM +0100, Tim Jackson wrote:
> userlist_domains:
> driver = redirect
> allow_fail
> domains = example.com
> data =
> ${lookup{$local_part}lsearch{/etc/exim/users}{$local_part@$domain}{:fail:
> Unknown user}}
>
> You need to put this router near the top of your routers, before any other
> routers which would otherwise handle the mail for example.com. What it
> does is effectively redirect the address to itself if it exist (otherwise
> failing the address with "Unknown user"); it doesn't get into an infinite
> loop thanks to Exim's internal checking which means that the router is
> skipped on the second pass through (after redirection).
>
> This latter method also has the bonus that you shouldn't need to modify
> your ACLs at all, as long as you have a "verify=recipient" somewhere. It
> should Just Work. And it will work wherever routing is calculated whether
> it's in a verify ACL rule, or via exim -bt or whatever.


Superb, Thanks to both Tim and Peter. I've went with Tims way though
both seem to work.

You couldnt buy this kind of support :)

Cheers
--
Pete