Re: Just installed qmail+ldap: i am loosing my hairs
Friedrich Locke <[email protected]> Mon, 14 Jan 2013 14:48:43 -0200
| Newsgroups | gmane.mail.qmail.ldap |
|---|---|
| Message-ID | <CANMDHqdUL9TZ-i=jRa769mF=XTAjm96DU_aLpojz1KZC7bQeTA@mail.gmail.com> |
--047d7b33d8c40143ec04d3426b76
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Here is my slapd.conf access directives :
###########################################################################=
####
# access definition on ou=3Dappsrv,dc=3Dufv,dc=3Dbr
###########################################################################=
#####
access to dn.one=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr" attrs=3DuserPassword
by self read
by anonymous auth
# by * none
access to dn.one=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr"
by dn.one=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
access to dn.base=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr" attrs=3Dentry
by dn.one=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
###########################################################################=
#####
# access definition on ou=3Dgroup,dc=3Dufv,dc=3Dbr
###########################################################################=
#####
access to dn.one=3D"ou=3Dgroup,dc=3Dufv,dc=3Dbr"
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
by dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" read
access to dn.base=3D"ou=3Dgroup,dc=3Dufv,dc=3Dbr" attrs=3Dentry
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
by dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" read
###########################################################################=
#####
# access definition on ou=3Dpeople,dc=3Dufv,dc=3Dbr
###########################################################################=
#####
access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" attrs=3DuserPassword
by self read
by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
by anonymous auth
by * none
access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" attrs=3DhomeDirectory
by self read
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" attrs=3Duid
by self read
by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr"
attrs=3Dcn,uidNumber,gidNumber,loginShell,gecos,description
by self read
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr"
attrs=3Dmail,mailMessageStore,mailAlternateAddress,qmailUID,qmailGID,mailHo=
st,mailForwardingAddress,deliveryProgramPath,qmailDotMode,deliveryMode,mail=
ReplyText,accountStatus,qmailAccountPurge,mailQuotaSize,mailQuotaCount,mail=
SizeMax
by self read
by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr"
by self read
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
access to dn.base=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" attrs=3Dentry
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
###########################################################################=
#####
# access definition for the root (ufv.br)
###########################################################################=
#####
access to dn.base=3D"dc=3Dufv,dc=3Dbr" attrs=3Dentry
by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read
See any problem ?
On Mon, Jan 14, 2013 at 2:09 PM, Ismail YENIGUL
<[email protected]>wrote:
>
> >mailMessageStore: vlobo
> Also messagestore value must be a full path. and directory owner must be
> ldapuid value.
>
>
>
> On 14.01.2013 18:05, Friedrich Locke wrote:
>
> Here you have it:
>
> ldapsearch -D cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr -b ou=3Dpeople,dc=3D=
ufv,dc=3Dbr -h
> 127.0.0.1 -s subtree -W \(\|\([email protected]
> \)\([email protected]\)\)
> Enter LDAP Password:
> # extended LDIF
> #
> # LDAPv3
> # base <ou=3Dpeople,dc=3Dufv,dc=3Dbr> with scope subtree
> # filter: (|([email protected])(mailAlternateAddress=3D
> [email protected]))
> # requesting: ALL
> #
>
> # vlobo, people, ufv.br
> dn: uid=3Dvlobo,ou=3Dpeople,dc=3Dufv,dc=3Dbr
> uid: vlobo
> objectClass: organizationalRole
> objectClass: posixAccount
> objectClass: qmailUser
> homeDirectory: /home/vlobo
> userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS
> mail: [email protected]
> mailAlternateAddress: [email protected]
> mailHost: gustav.cpd.ufv.br
> mailMessageStore: vlobo
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 2
> # numEntries: 1
> sioux@gustav$
>
> On Mon, Jan 14, 2013 at 1:58 PM, Carlos Garc=EDa G=F3mez <
> [email protected]> wrote:
>
>> It seems
>>
>> gustav# ../bin/qmail-ldaplookup -d 255 -m [email protected]
>> Searching ldap for: (|([email protected]
>> )([email protected])))
>> under dn: ou=3Dpeople,dc=3Dufv,dc=3Dbr
>> qmail-ldaplookup: fatal: qldap_filter: unspecified error
>> gustav#
>>
>> Try to do this query with this filter in your ldap client
>>
>> I think there are too many =93)=94
>>
>> Regards
>>
>> Carlos
>> http://www.netcgg.es
>> Murcia-Spain
>>
>> *From:* Friedrich Locke <[email protected]>
>> *Sent:* Monday, January 14, 2013 4:52 PM
>> *To:* Ismail YENIGUL <[email protected]>
>> *Cc:* [email protected]
>> *Subject:* Re: Just installed qmail+ldap: i am loosing my hairs
>>
>> Did someone here already faced such problem ?
>> I am really needing help from the mailing list.
>>
>> Thanks.
>>
>> On Mon, Jan 14, 2013 at 1:28 PM, Ismail YENIGUL <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> Do not use homeDirectory and mailMessageStore for the same user. I
>>> suggest you to use mailMessageStore.
>>>
>>> homeDirectory: /home/vlobo
>>> mailMessageStore: vlobo
>>>
>>> Here is my working example:
>>>
>>> dn: [email protected],ou=3Dmydomain.com,o=3Dmail,dc=3Dsurmail
>>> objectClass: top
>>> objectClass: person
>>> objectClass: inetOrgPerson
>>> objectClass: qmailUser
>>> uid: [email protected]
>>> mail: [email protected]
>>> givenName: ismail
>>> sn: test
>>> cn: ismail test
>>> userPassword::
>>> e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFpHTmxaV1kzTURkag=3D=3D
>>> mailHost: mail.mydomain.com
>>> mailQuotaSize: 1000000000
>>> mailQuotaCount: 1000
>>> accountStatus: active
>>> mailMessageStore: /mail/mydomain.com/ismail
>>>
>>>
>>>
>>> On 14.01.2013 17:17, Friedrich Locke wrote:
>>>
>>> Hi folks,
>>>
>>> I have just finnished installing my qmail-ldap system. I am trying to
>>> send me a local message, but no success so far.
>>>
>>> Here is what i am trying:
>>>
>>> sioux@gustav$ echo to: vlobo |
>>> /var/qmail/bin/qmail-inject
>>> sioux@gustav$
>>>
>>>
>>> Here is what i got from qmail-ldap logs:
>>>
>>> @4000000050f4201a17a0e594 new msg 1039956
>>> @4000000050f4201a17a0e97c info msg 1039956: bytes 220 from <
>>> [email protected]> qp 4069 uid 1000
>>> @4000000050f4201a17a1761c starting delivery 21: msg 1039956 to local
>>> [email protected]
>>> @4000000050f4201a17a1df94 status: local 1/100 remote 0/400
>>> @4000000050f4201a17d130dc delivery 21: deferral:
>>> Temporary_failure_in_LDAP_lookup._(#4.4.3)./
>>> @4000000050f4201a17d1f814 status: local 0/100 remote 0/400
>>>
>>>
>>> Here is what i get from qmail-ldaplookup:
>>>
>>> gustav# ../bin/qmail-ldaplookup -d 255 -m [email protected]
>>> Searching ldap for: (|([email protected]
>>> )([email protected])))
>>> under dn: ou=3Dpeople,dc=3Dufv,dc=3Dbr
>>> qmail-ldaplookup: fatal: qldap_filter: unspecified error
>>> gustav#
>>>
>>>
>>> And here is what i got from slapd log:
>>>
>>> 50f42010 ber_get_next on fd 14 failed errno=3D0 (Undefined error: 0)
>>> 50f42010 connection_read(14): input error=3D-2 id=3D1047, closing.
>>> 50f42010 connection_closing: readying conn=3D1047 sd=3D14 for close
>>> 50f42010 daemon: activity on 1 descriptor
>>> 50f42010 daemon: waked
>>> 50f42010 daemon: select: listen=3D5 active_threads=3D0 tvp=3Dzero
>>> 50f42010 daemon: select: listen=3D6 active_threads=3D0 tvp=3Dzero
>>> 50f42010 daemon: select: listen=3D7 active_threads=3D0 tvp=3Dzero
>>> 50f42010 daemon: select: listen=3D8 active_threads=3D0 tvp=3Dzero
>>> 50f42010 daemon: select: listen=3D9 active_threads=3D0 tvp=3Dzero
>>> 50f42010 connection_close: deferring conn=3D1047 sd=3D14
>>> 50f42010 conn=3D1047 op=3D1 do_unbind
>>> 50f42010 conn=3D1047 op=3D1 UNBIND
>>> 50f42010 connection_resched: attempting closing conn=3D1047 sd=3D14
>>> 50f42010 connection_close: conn=3D1047 sd=3D14
>>> 50f42010 daemon: removing 14
>>> 50f42010 conn=3D1047 fd=3D14 closed
>>>
>>> But when i try by hand:
>>>
>>> sioux@gustav$ ldapsearch -D cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr -b
>>> ou=3Dpeople,dc=3Dufv,dc=3Dbr -h localhost -W \(\|\(mail=3D
>>> [email protected]\)\([email protected].=
br
>>> \)\)
>>> Enter LDAP Password:
>>> # extended LDIF
>>> #
>>> # LDAPv3
>>> # base <ou=3Dpeople,dc=3Dufv,dc=3Dbr> with scope subtree
>>> # filter: (|([email protected])(mailAlternateAddress=3D
>>> [email protected]))
>>> # requesting: ALL
>>> #
>>>
>>> # vlobo, people, ufv.br
>>> dn: uid=3Dvlobo,ou=3Dpeople,dc=3Dufv,dc=3Dbr
>>> uid: vlobo
>>> objectClass: organizationalRole
>>> objectClass: posixAccount
>>> objectClass: qmailUser
>>> homeDirectory: /home/vlobo
>>> userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS
>>> mail: [email protected]
>>> mailAlternateAddress: [email protected]
>>> mailHost: gustav.cpd.ufv.br
>>> mailMessageStore: vlobo
>>>
>>> # search result
>>> search: 2
>>> result: 0 Success
>>>
>>> # numResponses: 2
>>> # numEntries: 1
>>> sioux@gustav$
>>>
>>>
>>> Everything works. What am i doing wrong ?
>>>
>>>
>>>
>>
>
>
>
--047d7b33d8c40143ec04d3426b76
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Here is my slapd.conf access directives :<br><br>##########################=
#####################################################<br># access definitio=
n on ou=3Dappsrv,dc=3Dufv,dc=3Dbr<br>######################################=
##########################################<br>
<br>access to dn.one=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr" attrs=3Duse=
rPassword<br>=A0=A0=A0=A0=A0=A0=A0 by self read<br>=A0=A0=A0=A0=A0=A0=A0 by=
anonymous auth<br>#=A0=A0=A0=A0=A0=A0 by * none<br><br>access to dn.one=3D=
"ou=3Dappsrv,dc=3Dufv,dc=3Dbr"<br>=A0=A0=A0=A0=A0=A0=A0 by dn.one=
=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read<br>
<br>access to dn.base=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr" attrs=3Den=
try<br>=A0=A0=A0=A0=A0=A0=A0 by dn.one=3D"ou=3Dappsrv,dc=3Dufv,dc=3Dbr=
" read<br>############################################################=
####################<br># access definition on ou=3Dgroup,dc=3Dufv,dc=3Dbr<=
br>
###########################################################################=
#####<br><br>access to dn.one=3D"ou=3Dgroup,dc=3Dufv,dc=3Dbr"<br>=
=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,d=
c=3Dbr" read<br>=A0=A0=A0=A0=A0=A0=A0 by dn.one=3D"ou=3Dpeople,dc=
=3Dufv,dc=3Dbr" read<br>
<br>access to dn.base=3D"ou=3Dgroup,dc=3Dufv,dc=3Dbr" attrs=3Dent=
ry<br>=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=
=3Dufv,dc=3Dbr" read<br>=A0=A0=A0=A0=A0=A0=A0 by dn.one=3D"ou=3Dp=
eople,dc=3Dufv,dc=3Dbr" read<br><br><br><br>##########################=
######################################################<br>
# access definition on ou=3Dpeople,dc=3Dufv,dc=3Dbr<br>####################=
############################################################<br><br>access =
to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" attrs=3DuserPassword<b=
r>=A0=A0=A0=A0=A0=A0=A0 by self read<br>
=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=
=3Dbr" read<br>=A0=A0=A0=A0=A0=A0=A0 by anonymous auth<br>=A0=A0=A0=A0=
=A0=A0=A0 by * none<br><br>access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=
=3Dbr" attrs=3DhomeDirectory<br>=A0=A0=A0=A0=A0=A0=A0 by self read<br>
=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,d=
c=3Dbr" read<br><br>access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=
=3Dbr" attrs=3Duid<br>=A0=A0=A0=A0=A0=A0=A0 by self read<br>=A0=A0=A0=
=A0=A0=A0=A0 by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr"=
; read<br>
=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,d=
c=3Dbr" read<br><br>access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=
=3Dbr" attrs=3Dcn,uidNumber,gidNumber,loginShell,gecos,description<br>=
=A0=A0=A0=A0=A0=A0=A0 by self read<br>=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D&q=
uot;cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read<br>
<br>access to dn.one=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr" attrs=3Dmai=
l,mailMessageStore,mailAlternateAddress,qmailUID,qmailGID,mailHost,mailForw=
ardingAddress,deliveryProgramPath,qmailDotMode,deliveryMode,mailReplyText,a=
ccountStatus,qmailAccountPurge,mailQuotaSize,mailQuotaCount,mailSizeMax<br>
=A0=A0=A0=A0=A0=A0=A0 by self read<br>=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D&q=
uot;cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read<br><br>access to dn.o=
ne=3D"ou=3Dpeople,dc=3Dufv,dc=3Dbr"<br>=A0=A0=A0=A0=A0=A0=A0 by s=
elf read<br>=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dypldap,ou=3Dappsr=
v,dc=3Dufv,dc=3Dbr" read<br>
=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=
=3Dbr" read<br><br>access to dn.base=3D"ou=3Dpeople,dc=3Dufv,dc=
=3Dbr" attrs=3Dentry<br>=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3D=
ypldap,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read<br>=A0=A0=A0=A0=A0=A0=A0 by =
dn.base=3D"cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr" read<br>
<br>#######################################################################=
#########<br># access definition for the root (<a href=3D"http://ufv.br">uf=
v.br</a>)<br>##############################################################=
##################<br>
<br>access to dn.base=3D"dc=3Dufv,dc=3Dbr" attrs=3Dentry<br>=A0=
=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dypldap,ou=3Dappsrv,dc=3Dufv,dc=
=3Dbr" read<br>=A0=A0=A0=A0=A0=A0=A0 by dn.base=3D"cn=3Dmail,ou=
=3Dappsrv,dc=3Dufv,dc=3Dbr" read<br>=A0=A0=A0=A0=A0=A0 <br>See any pro=
blem ?<br>
<br><div class=3D"gmail_quote">On Mon, Jan 14, 2013 at 2:09 PM, Ismail YENI=
GUL <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" tar=
get=3D"_blank">[email protected]</a>></span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">
=20
=20
=20
<div text=3D"#000000" bgcolor=3D"#FFFFFF">
<br>
>mailMessageStore: vlobo<br>
Also messagestore value must be a full path.=A0 and directory owner
must be ldapuid value.<div><div class=3D"h5"><br>
<br>
<br>
<div>On 14.01.2013 18:05, Friedrich Locke
wrote:<br>
</div>
<blockquote type=3D"cite">Here you have it:<br>
<br>
ldapsearch -D cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr -b
ou=3Dpeople,dc=3Dufv,dc=3Dbr -h 127.0.0.1 -s subtree -W \(\|\(mail=3D=
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
pd.ufv.br</a>\)\(mailAlternateAddress=3D<a href=3D"mailto:[email protected].=
ufv.br" target=3D"_blank">[email protected]</a>\)\)=A0=A0
<br>
Enter LDAP Password: <br>
# extended LDIF<br>
#<br>
# LDAPv3<br>
# base <ou=3Dpeople,dc=3Dufv,dc=3Dbr> with scope subtree<br>
# filter: (|(mail=3D<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>)(mailAlternateAddress=3D<a href=3D"=
mailto:[email protected]" target=3D"_blank">[email protected]</=
a>))<br>
# requesting: ALL<br>
#<br>
<br>
# vlobo, people, <a href=3D"http://ufv.br" target=3D"_blank">ufv.br</=
a><br>
dn: uid=3Dvlobo,ou=3Dpeople,dc=3Dufv,dc=3Dbr<br>
uid: vlobo<br>
objectClass: organizationalRole<br>
objectClass: posixAccount<br>
objectClass: qmailUser<br>
homeDirectory: /home/vlobo<br>
userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS<br>
mail: <a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
mailAlternateAddress: <a href=3D"mailto:[email protected]" targ=
et=3D"_blank">[email protected]</a><br>
mailHost: <a href=3D"http://gustav.cpd.ufv.br" target=3D"_blank">gust=
av.cpd.ufv.br</a><br>
mailMessageStore: vlobo<br>
<br>
# search result<br>
search: 2<br>
result: 0 Success<br>
<br>
# numResponses: 2<br>
# numEntries: 1<br>
sioux@gustav$ <br>
<br>
<div class=3D"gmail_quote">
On Mon, Jan 14, 2013 at 1:58 PM, Carlos Garc=EDa G=F3mez <span dir=
=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a>></span>
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">
<div dir=3D"ltr">
<div dir=3D"ltr">
<div style=3D"font-size:12pt;font-family:'Calibri'">
<div>It seems</div>
<div>
<div>=A0</div>
<font face=3D"Times New Roman">gustav#
../bin/qmail-ldaplookup -d 255 -m </font><a href=3D"mai=
lto:[email protected]" target=3D"_blank"><font face=3D"Times New Roma=
n">[email protected]</font></a><font face=3D"Times New Roman"> <br>
Searching ldap for: (|(mail=3D</font><a href=3D"mailto:=
[email protected]" target=3D"_blank"><font face=3D"Times New Roman">v=
[email protected]</font></a><font face=3D"Times New Roman">)(mailAlter=
nateAddress=3D</font><a href=3D"mailto:[email protected]" target=3D"_=
blank"><font face=3D"Times New Roman">[email protected]</font></a><fo=
nt face=3D"Times New Roman">)))<br>
under dn: ou=3Dpeople,dc=3Dufv,dc=3Dbr<br>
qmail-ldaplookup: fatal: qldap_filter: <font color=3D"#=
ff0000">unspecified error</font><br>
gustav# </font>
<div>=A0</div>
</div>
<div>Try to do this query with this filter in your ldap
client </div>
<div>=A0</div>
<div>I think there are too many =93)=94</div>
<div>=A0</div>
<div>Regards</div>
<div>=A0</div>
<div style=3D"font-size:12pt;font-family:'Calibri'"=
>Carlos</div>
<div style=3D"font-size:12pt;font-family:'Calibri'"=
>=A0<a href=3D"http://www.netcgg.es" target=3D"_blank">http://www.netcgg.es=
</a></div>
<div style=3D"font-size:12pt;font-family:'Calibri'"=
>Murcia-Spain</div>
<div style=3D"font-size:small;font-style:normal;text-decora=
tion:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style=3D"FONT:10pt tahoma">
<div>=A0</div>
<div style=3D"BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title=3D"[email protected]=
om" href=3D"mailto:[email protected]" target=3D"_blank">Friedrich L=
ocke</a> </div>
<div><b>Sent:</b> Monday, January 14, 2013 4:52 PM</d=
iv>
<div><b>To:</b> <a title=3D"[email protected]=
m" href=3D"mailto:[email protected]" target=3D"_blank">Ismail YENI=
GUL</a> </div>
<div><b>Cc:</b> <a title=3D"[email protected]=
" href=3D"mailto:[email protected]" target=3D"_blank">qmail-ldap@qm=
ail-ldap.org</a>
</div>
<div><b>Subject:</b> Re: Just installed
qmail+ldap: i am loosing my hairs</div>
</div>
</div>
<div>=A0</div>
</div>
<div>
<div>
<div style=3D"font-size:small;font-style:normal;text-de=
coration:none;font-family:'Calibri';display:inline;font-weight:norm=
al">Did
someone here already faced such problem ?<br>
I am really needing help from the mailing list.<br>
<br>
Thanks.<br>
<br>
<div class=3D"gmail_quote">On Mon, Jan 14, 2013 at
1:28 PM, Ismail YENIGUL <span dir=3D"ltr"><<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">ismail.yenigul@s=
urgate.com</a>></span>
wrote:<br>
<blockquote style=3D"BORDER-LEFT:#ccc 1px solid;MAR=
GIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class=3D"gmail_quote">
<div bgcolor=3D"#FFFFFF" text=3D"#000000">Hi,<br>
<br>
Do not use homeDirectory and
mailMessageStore for the same user. I
suggest you to=A0 use mailMessageStore.<br>
<br>
homeDirectory: /home/vlobo<br>
mailMessageStore: vlobo<br>
<br>
Here is my working example:<br>
<br>
dn: <a href=3D"mailto:[email protected]=
,ou=3Dmydomain.com,o=3Dmail,dc=3Dsurmail" target=3D"_blank">uid=3Dismail@my=
domain.com,ou=3Dmydomain.com,o=3Dmail,dc=3Dsurmail</a><br>
objectClass: top<br>
objectClass: person<br>
objectClass: inetOrgPerson<br>
objectClass: qmailUser<br>
uid: <a href=3D"mailto:[email protected]" tar=
get=3D"_blank">[email protected]</a><br>
mail: <a href=3D"mailto:[email protected]" ta=
rget=3D"_blank">[email protected]</a><br>
givenName: ismail<br>
sn: test<br>
cn: ismail test<br>
userPassword::
e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFp=
HTmxaV1kzTURkag=3D=3D<br>
mailHost: <a href=3D"http://mail.mydomain.com" =
target=3D"_blank">mail.mydomain.com</a><br>
mailQuotaSize: 1000000000<br>
mailQuotaCount: 1000<br>
accountStatus: active<br>
mailMessageStore: /mail/<a href=3D"http://mydom=
ain.com/ismail" target=3D"_blank">mydomain.com/ismail</a>
<div>
<div><br>
<br>
<br>
<div>On 14.01.2013 17:17, Friedrich
Locke wrote:<br>
</div>
<blockquote type=3D"cite">Hi folks,<br>
<br>
I have just finnished installing my
qmail-ldap system. I am trying to send
me a local message, but no success so
far.<br>
<br>
Here is what i am trying:<br>
<br>
sioux@gustav$ echo to: vlobo |
/var/qmail/bin/qmail-inject=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
<br>
sioux@gustav$ <br>
<br>
<br>
Here is what i got from qmail-ldap
logs:<br>
<br>
@4000000050f4201a17a0e594 new msg
1039956<br>
@4000000050f4201a17a0e97c info msg
1039956: bytes 220 from <<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>=
>
qp 4069 uid 1000<br>
@4000000050f4201a17a1761c starting
delivery 21: msg 1039956 to local <a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected].=
br</a><br>
@4000000050f4201a17a1df94 status:
local 1/100 remote 0/400<br>
@4000000050f4201a17d130dc delivery 21:
deferral:
Temporary_failure_in_LDAP_lookup._(#4.4.3=
)./<br>
@4000000050f4201a17d1f814 status:
local 0/100 remote 0/400<br>
<br>
<br>
Here is what i get from
qmail-ldaplookup:<br>
<br>
gustav# ../bin/qmail-ldaplookup -d 255
-m <a href=3D"mailto:[email protected]=
.br" target=3D"_blank">[email protected]</a>
<br>
Searching ldap for: (|(mail=3D<a href=3D"=
mailto:[email protected]" target=3D"_blank">[email protected]</=
a>)(mailAlternateAddress=3D<a href=3D"mailto:[email protected]" targe=
t=3D"_blank">[email protected]</a>)))<br>
under dn: ou=3Dpeople,dc=3Dufv,dc=3Dbr<br=
>
qmail-ldaplookup: fatal: qldap_filter:
unspecified error<br>
gustav# <br>
<br>
<br>
And here is what i got from slapd log:<br=
>
<br>
50f42010 ber_get_next on fd 14 failed
errno=3D0 (Undefined error: 0)<br>
50f42010 connection_read(14): input
error=3D-2 id=3D1047, closing.<br>
50f42010 connection_closing: readying
conn=3D1047 sd=3D14 for close<br>
50f42010 daemon: activity on 1
descriptor<br>
50f42010 daemon: waked<br>
50f42010 daemon: select: listen=3D5
active_threads=3D0 tvp=3Dzero<br>
50f42010 daemon: select: listen=3D6
active_threads=3D0 tvp=3Dzero<br>
50f42010 daemon: select: listen=3D7
active_threads=3D0 tvp=3Dzero<br>
50f42010 daemon: select: listen=3D8
active_threads=3D0 tvp=3Dzero<br>
50f42010 daemon: select: listen=3D9
active_threads=3D0 tvp=3Dzero<br>
50f42010 connection_close: deferring
conn=3D1047 sd=3D14<br>
50f42010 conn=3D1047 op=3D1 do_unbind<br>
50f42010 conn=3D1047 op=3D1 UNBIND<br>
50f42010 connection_resched:
attempting closing conn=3D1047 sd=3D14<br=
>
50f42010 connection_close: conn=3D1047
sd=3D14<br>
50f42010 daemon: removing 14<br>
50f42010 conn=3D1047 fd=3D14 closed<br>
<br>
But when i try by hand:<br>
<br>
sioux@gustav$ ldapsearch -D
cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr -b
ou=3Dpeople,dc=3Dufv,dc=3Dbr -h localhost=
-W
\(\|\(mail=3D<a href=3D"mailto:vlobo@gust=
av.cpd.ufv.br" target=3D"_blank">[email protected]</a>\)\(mailAlterna=
teAddress=3D<a href=3D"mailto:[email protected]" target=3D"_blank">vl=
[email protected]</a>\)\)<br>
Enter LDAP Password: <br>
# extended LDIF<br>
#<br>
# LDAPv3<br>
# base <ou=3Dpeople,dc=3Dufv,dc=3Dbr&g=
t;
with scope subtree<br>
# filter: (|(mail=3D<a href=3D"mailto:vlo=
[email protected]" target=3D"_blank">[email protected]</a>)(mailAl=
ternateAddress=3D<a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a>))<br>
# requesting: ALL<br>
#<br>
<br>
# vlobo, people, <a href=3D"http://ufv.br=
" target=3D"_blank">ufv.br</a><br>
dn: uid=3Dvlobo,ou=3Dpeople,dc=3Dufv,dc=
=3Dbr<br>
uid: vlobo<br>
objectClass: organizationalRole<br>
objectClass: posixAccount<br>
objectClass: qmailUser<br>
homeDirectory: /home/vlobo<br>
userPassword::
e1NBU0x9dmxvYm9AVUZWLkJS<br>
mail: <a href=3D"mailto:valter.lobo@gusta=
v.cpd.ufv.br" target=3D"_blank">[email protected]</a><br>
mailAlternateAddress: <a href=3D"mailto:v=
[email protected]" target=3D"_blank">[email protected]</a><br>
mailHost: <a href=3D"http://gustav.cpd.uf=
v.br" target=3D"_blank">gustav.cpd.ufv.br</a><br>
mailMessageStore: vlobo<br>
<br>
# search result<br>
search: 2<br>
result: 0 Success<br>
<br>
# numResponses: 2<br>
# numEntries: 1<br>
sioux@gustav$ <br>
<br>
<br>
Everything works. What am i doing
wrong ?<br>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<div>=A0</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br>
--047d7b33d8c40143ec04d3426b76--