I trying to setup Exim (4.62) to replace Postfix (2.2.10) on an OpenLDAP
(2.2x) backend for virtual hosting (ISPMan) delivering to Cyrus IMAPd
(2.3.x).
I have the recipient verification LDAP callouts working properly
(according to exim -oMa 127.0.0.1 -bs -d).
The trouble is that the LDAP schema has both a mailLocalAddress and a
mailRoutingAddress.  Currently I'm using this LDAP call to to the
verification:
GET_ADDRESS_DATA = ${lookup ldap {\
        ldap:///BASEDN??sub?(&(uid=${quote_ldap:[EMAIL PROTECTED]:$domain}))\
        }\
}

Can I make a similar call (say remove the portion after $local_part) and
assign it to local_part in a router for Cyrus delivery?

Sample user entry for LDAP schema:

# louisk_cryptomonkeys_org, users, cryptomonkeys.org, ispman, cryptomonkeys.org
dn:uid=louisk_cryptomonkeys_org,ou=users,ispmanDomain=cryptomonkeys.org,o=ispman,dc=cryptomonkeys,dc=org
objectClass: posixAccount
objectClass: ispmanDomainUser
objectClass: radiusprofile
dialupAccess: yes
radiusProfileDn: cn=default,ou=radiusprofiles,o=ispman,dc=cryptomonkeys,dc=org
givenName: Louis
sn: Kowolowski
cn: Louis Kowolowski
uid: louisk_cryptomonkeys_org
uid: [EMAIL PROTECTED]
userPassword:: mySecretPassword
uidNumber: 10012
gidNumber: 10003
homeDirectory: 
/data/ispman/domains/cryptomonkeys.org/users/louisk_cryptomonkeys_org
loginShell: /usr/local/bin/bash
ispmanStatus: active
ispmanCreateTimestamp: 1141097588
ispmanUserId: louisk
ispmanDomain: cryptomonkeys.org
DestinationAddress: mx1.cryptomonkeys.org
DestinationPort: 21
FTPStatus: enabled
FTPQuotaMBytes: 2048
mailLocalAddress: [EMAIL PROTECTED]
mailQuota: 1048576
mailHost: mx1.cryptomonkeys.org
mailRoutingAddress: [EMAIL PROTECTED]
fileHost: mx1.cryptomonkeys.org

-- 
Louis Kowolowski        KE7BAX                  [EMAIL PROTECTED]
Cryptomonkeys:                      http://www.cryptomonkeys.com/~louisk

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to