I would strongly advise you to check recipients in the exchange server with
ldap before accepting mail.
You'll need to set the ldap_default_server and add router sections like
this- changing the 'domains' lines, of course. This works on exchange 5.5- I
don't know about later versions.
exchangesecondaryaddresslookup:
driver = redirect
domains = mydomain.com
data = ${lookup ldap
{ldap:///?mail?sub?(otherMailbox=smtp\$${quote_ldap:$local_part}@${quote_lda
p:$domain})}}
verify_recipient
exchangeprimaryaddresslookup:
driver = redirect
domains = mydomain.com
data = ${lookup ldap
{ldap:///?mail?sub?(mail=${quote_ldap:$local_part}@${quote_ldap:$domain})}}
verify_recipient
self = pass
pass_router = internal
no_more
Obviously, you'll need to require user validation in acl_check_rcpt, as
well.
-----Original Message-----
From: exim-users-bounces@??? [
mailto:exim-users-bounces@exim.org] On
Behalf Of Christopher Chaduka
Sent: Thursday, February 03, 2005 7:33 AM
To: exim-users@???
Cc: Willem Cloete
Subject: Re: [exim] Exim and exchange
On Thursday 03 February 2005 13:32, Willem Cloete wrote:
> I'm new to both but I want to use Exim on RH8 as my main mailserver
> (this is currently running) passing all mails to an exchange server (new
> secondary mail server). The users will pop from the exchange server.
> Advise and help needed
What you need is a manualroute router like below:
send_to_exchange:
driver = manualroute
domains = +local_domains
route_list = ip.address.of.exchange.server
transpot = remote_smtp
no_more
You put this as the first router in your ROUTERS section.
HTH
--
Kiri
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##