Hi,

I am currently trying to implement exim with an LDAP backend.

What I'm looking to do is the following:

Every user has a local email address [EMAIL PROTECTED], which is 
looked up through LDAP, and delivered to the corresponding uid. Each 
user can have many mailLocalAddresses (e.g. joe.bloggs and joebloggs).

There is another *optional* LDAP property, mailRoutingAddress, which, if 
set, redirects all emails to that user, to the given external address 
(e.g. [EMAIL PROTECTED]). Each user will only have one 
mailRoutingAddress.

That all works fine.

However, what I want to do, is make it so that if an email arrives 
addressed to a local user, and its from one of the mailRoutingAddresses, 
I want it to be rewrote to the first attribute returned by mailLocalAddress.

That is, if [EMAIL PROTECTED] sent an email to [EMAIL PROTECTED], 
I want Exim to rewrite their from address to [EMAIL PROTECTED] before it 
arrives in someoneelse's inbox.

Is there anyway I can do this using the rewrite functions of Exim, 
without getting it stuck in an infinite loop.

Thanks,

Ben

-- 
## 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