Re: [exim] routing logic based on sender and recipient

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] routing logic based on sender and recipient
On 25/07/13 19:22, Florin Andrei wrote:
> On 07/24/2013 03:23 AM, Drav Sloan wrote:
>> Florin Andrei wrote:
>>>
>>> 2. All emails with a recipient within a very short list
>>> (jim@???, joe@???) are delivered locally,
>>> and will typically be processed by various scripts specified in
>>> ~/.forward. If there's no match here, then next:
>>
>> router_for_dot_forwards_fancydomain:
>>    driver = redirect
>>    check_local_user
>>    file = $home/.forward
>>    file_transport = address_file
>>    pipe_transport = address_pipe

>
> There are some recipients within @fancydomain.com that are local here,
> yet I don't want them to be delivered locally (instead, they will get
> caught by the next router and sent to a relay). So the locality
> condition cannot be used solely to determine who these users are.
>
> How do I specify a limited list of recipients @fancydomain.com to be
> delivered locally? Let's say only jim@??? and
> joe@??? are to be delivered locally, no matter what other
> local users may be created here. All other @fancydomain.com users need
> to go to next router.
>


Have a read through


http://exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_routers.html

Specifically, the "local_parts" condition.

-- 
Cheers,
    Jeremy