Re: [exim] Using DA POP3 together with Exchange

Pàgina inicial
Delete this message
Reply to this message
Autor: Pierre Munnichs
Data:  
A: exim-users@exim.org
Assumpte: Re: [exim] Using DA POP3 together with Exchange
I've made the following router:

# Exchange route
exchange_mailboxes:
driver = manualroute
transport = remote_smtp
domains = domain.com
local_parts = info
route_data = xxx.xxx.xxx.xxx
no_verify
no_more



This router is forwarding everything that comes by.
It only should forward info@??? what am I doing wrong?
And also, how can I extend this router by another domain?
In example, admin@???

So info@??? and admin@??? should be forwarded to the
exchange, but not info@???



Op 19-04-11 15:41 schreef Ian Eiloart <iane@???>:

>
>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:
>>
>> Adres1@???
>> Adres2@???
>> Adres3@???
>>
>> 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
>