On 19 Apr 2011, at 12:49, Pierre Munnichs wrote:

> I don't have the knowledge to get this working, isn't there a much easier
> way to accomplish what I need?
> Would it be possible to create a hardcoded list of e-mail adresses that
> need to be forwarded to the Exchange Server
> 

Yes, you can do this if you have a small number of people to manage. Using AD 
would work automatically, though.

I'm going to refer you to the documentation, though. 
http://www.exim.org/docs.html

You can use a named list if you only have a few people on exchange, see section 
10.5. Or, you can just list the exceptions. Try localpartlist, for example. 
Define a list in the general section of the config file, then say 

localpartlist = foo:bar:baz
or 
pop_users = meeny:miny:moe

Then add this condition to your router.
localparts = +exchange_users

or, if your list is of exceptions, say

localparts = ! +pop_users



> Something like:
> 
> [email protected]
> [email protected]
> [email protected]
> 
> These addresses need to be forwarded to the external Exchange server.
> If the adres is not on this list, it has to be delivered to the local
> server.
> 
> 
> 
>> 
>> So, you need to add something like this:
>> 
>> condition =  ${if eq {${lookup ldap {\
>>                               user=AD_USER \
>>                               pass=AD_PASS \
>>                               ldap://AD_HOST/\
>>                                   AD_BASE?\
>>                                   proxyAddresses?\
>>                                   sub?\
>> 
>> proxyAddresses=${quote_ldap:SMTP:$local_part@$domain}} \
>>                           {true}{false}}}\
>>                       {true} }
>> 
>> And set the macros AD_USER AD_PASS AD_HOST and AD_BASE to the correct
>> values for your AD server.
> 
> 
> -- 
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/

-- 
Ian Eiloart
Postmaster, University of Sussex
+44 (0) 1273 87-3148


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to