Re: [exim] LDAP / Virtual Domains

Top Page
Delete this message
Reply to this message
Author: James Davis
Date:  
To: exim-users
CC: Hans-Juergen Beie
Subject: Re: [exim] LDAP / Virtual Domains
James Davis wrote:

> I'll report back on my success!


It worked, thank you. I now have a slight problem though. My last two
routers are as follows.

local_user:
debug_print = "R: local_user for $local_part@$domain"
driver = accept
domains = +local_domains
#check_local_user
local_parts = ! root
transport = LOCAL_DELIVERY



deliver_to_qmail:
        driver = manualroute
        transport = remote_smtp
        route_list = * clarity.jolt.co.uk
        no_more


The idea is that mail for my domains who don't exist locally may still
exist on the old mail server and that these messages should be forwarded
here. The only problem is that since I redefined LOCAL_DELIVERY to be
cyrus_delivery, the first router never fails.

Given a user asdf@mydomain where asdf is still handled by the old mail
server.

With check_local_user commented out the mail is delivered blindly to
cyrus even though asdf doesn't exist as a user in my LDAP directory. No
error is returned, the message is not bounced.

With check_local_user uncommented the local_user router always fails and
every message gets forwarded onto the second server.

I'm guessing I need a lookup against my LDAP directory in place of
check_local_user in the local_user router but I'm not sure of the format
such a lookup should take. Can you provide any pointers? I can't seem to
find it in the docs.

Many thanks for your patience so far.

Regards,

James

--
http://www.freecharity.org.uk/ - Free hosting for charities
http://jamesd.ukgeeks.co.uk/