Why? Unless Daniel uses lmtp auth, ldap is not consulted during
lmtp delivery.


I am assuming his MTA is using LDAP as the backend for the virtual map
for exim..As that is what I use in my setup with postfix using LDAP as
the backend for the virtual delivery table map. He still needs to escape the @ in whatever he has exim configured to use
to map the [EMAIL PROTECTED] so it will be mailed to
[EMAIL PROTECTED]@mailserver.host.name when it is delivered to LMTP



At the moment I'm using exim with cyrdeliver (debian call cyrus' deliver 'cyrdeliver'), not doing direct lmtp delivery.
So a quick hack is to use


"/usr/bin/cyrdeliver [EMAIL PROTECTED]"

as the delivery command within exim. I've tested this, and it works fine, although as you can see I have to escape the \'s a second time.

I'll have a quick look into the best way to store the mail name in ldap including the \'s, so that I can use lmtp directly. At the moment I am using the uid attribute for both mail target resolution (ie, exims view of it) and cyrus' authentication (via pam_ldap), so I guess I'll have to change that.

Thanks to both Edward and Igor for responding.

Daniel


Reply via email to