Language:
None specified     Change language:
Pastebin: 1707
Author: Mark Harviston
Subject: Exim LDAP Problems
Created: 2006-10-20 15:00:36
Download and save
Toggle line numbers
1Courier IMAP problems resolved 
2 
3Now I'm having trouble with Exim: 
4virtualuser: 
5 driver = accept 
6 user = ${lookup ldap{\ 
7  user="cn=Manager,dc=localhost"\ 
8  pass="password"\ 
9  ldap://localhost/ou=users,dc=localhost\ 
10  ?uid?sub?$local_part? }} 
11 #local_part_suffix = +* : -* 
12 #local_part_suffix_optional 
13 transport = local_delivery 
14 #cannot_route_message = Unknown user 
15 
16Exim's power is prevalent in the examples. 
17But I have users stored in an LDAP database using the QMail Schema. 
18 
19using this schema plus how i set it up the dn is cn=Full Name,ou=users,dc=localhost 
20 
21the attribute mail holds the email address. 
22uid and sn both hold the localpart 
23 
24for example my entry looks like 
25dn: cn=Mark Harviston,ou=users,dc=localhost 
26uid: mark 
27sn: mark 
28mail: mark@localhost 
29 
30All I want to do is look up in LDAP the username (mark) and have it delivered to /opt/local/var/spool/mail/mark/ (as maildir) 
31I have it set up so it works with localusers only. (mark is a local user as well as an LDAP entry) 
32 
33Right now the only the other entry is the imaginary person: 
34dn: cn=Jake Snake,ou=users,dc=localhost 
35mail: jake@localhost 
36 
37mark can't send to jake and jake can't send to mark 
38however when mark sends to jake, i (mark) get a message in my box that says the message could not be delivered because user jake does not exist. 
39 
40just to clarify 
41mark exists in passwd and ldap 
42jake exists only in ldap 
43 
44Why is this so complicated? 
45It seems like a fairly common application of ldap in an MTA. 
46--Mark 
Thread:
[1639] Courier-imap problems by Mark Harviston at 2006-10-17 11:57:50 (diff)
  [1707] Exim LDAP Problems by Mark Harviston at 2006-10-20 15:00:36
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.