Re: Just installed qmail+ldap: i am loosing my hairs

Ismail YENIGUL <[email protected]> Mon, 14 Jan 2013 18:09:49 +0200
Newsgroups gmane.mail.qmail.ldap
Organization SurGATE Labs
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------000600060808050701060906
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit


 >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=mail,ou=appsrv,dc=ufv,dc=br -b ou=people,dc=ufv,dc=br 
> -h 127.0.0.1 -s subtree -W \(\|\([email protected] 
> <mailto:[email protected]>\)\([email protected] 
> <mailto:[email protected]>\)\)
> Enter LDAP Password:
> # extended LDIF
> #
> # LDAPv3
> # base <ou=people,dc=ufv,dc=br> with scope subtree
> # filter: (|([email protected] 
> <mailto:[email protected]>)([email protected] 
> <mailto:[email protected]>))
> # requesting: ALL
> #
>
> # vlobo, people, ufv.br <http://ufv.br>
> dn: uid=vlobo,ou=people,dc=ufv,dc=br
> uid: vlobo
> objectClass: organizationalRole
> objectClass: posixAccount
> objectClass: qmailUser
> homeDirectory: /home/vlobo
> userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS
> mail: [email protected] <mailto:[email protected]>
> mailAlternateAddress: [email protected] 
> <mailto:[email protected]>
> mailHost: gustav.cpd.ufv.br <http://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ía Gómez 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     It seems
>     gustav# ../bin/qmail-ldaplookup -d 255 -m [email protected]
>     <mailto:[email protected]>
>     Searching ldap for: (|([email protected]
>     <mailto:[email protected]>)([email protected]
>     <mailto:[email protected]>)))
>     under dn: ou=people,dc=ufv,dc=br
>     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 “)”
>     Regards
>     Carlos
>     http://www.netcgg.es
>     Murcia-Spain
>     *From:* Friedrich Locke <mailto:[email protected]>
>     *Sent:* Monday, January 14, 2013 4:52 PM
>     *To:* Ismail YENIGUL <mailto:[email protected]>
>     *Cc:* [email protected] <mailto:[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] <mailto:[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=mydomain.com,o=mail,dc=surmail
>         <mailto:[email protected],ou=mydomain.com,o=mail,dc=surmail>
>         objectClass: top
>         objectClass: person
>         objectClass: inetOrgPerson
>         objectClass: qmailUser
>         uid: [email protected] <mailto:[email protected]>
>         mail: [email protected] <mailto:[email protected]>
>         givenName: ismail
>         sn: test
>         cn: ismail test
>         userPassword::
>         e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFpHTmxaV1kzTURkag==
>         mailHost: mail.mydomain.com <http://mail.mydomain.com>
>         mailQuotaSize: 1000000000
>         mailQuotaCount: 1000
>         accountStatus: active
>         mailMessageStore: /mail/mydomain.com/ismail
>         <http://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] <mailto:[email protected]>> qp
>>         4069 uid 1000
>>         @4000000050f4201a17a1761c starting delivery 21: msg 1039956
>>         to local [email protected] <mailto:[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] <mailto:[email protected]>
>>         Searching ldap for: (|([email protected]
>>         <mailto:[email protected]>)([email protected]
>>         <mailto:[email protected]>)))
>>         under dn: ou=people,dc=ufv,dc=br
>>         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=0 (Undefined
>>         error: 0)
>>         50f42010 connection_read(14): input error=-2 id=1047, closing.
>>         50f42010 connection_closing: readying conn=1047 sd=14 for close
>>         50f42010 daemon: activity on 1 descriptor
>>         50f42010 daemon: waked
>>         50f42010 daemon: select: listen=5 active_threads=0 tvp=zero
>>         50f42010 daemon: select: listen=6 active_threads=0 tvp=zero
>>         50f42010 daemon: select: listen=7 active_threads=0 tvp=zero
>>         50f42010 daemon: select: listen=8 active_threads=0 tvp=zero
>>         50f42010 daemon: select: listen=9 active_threads=0 tvp=zero
>>         50f42010 connection_close: deferring conn=1047 sd=14
>>         50f42010 conn=1047 op=1 do_unbind
>>         50f42010 conn=1047 op=1 UNBIND
>>         50f42010 connection_resched: attempting closing conn=1047 sd=14
>>         50f42010 connection_close: conn=1047 sd=14
>>         50f42010 daemon: removing 14
>>         50f42010 conn=1047 fd=14 closed
>>
>>         But when i try by hand:
>>
>>         sioux@gustav$ ldapsearch -D cn=mail,ou=appsrv,dc=ufv,dc=br -b
>>         ou=people,dc=ufv,dc=br -h localhost -W
>>         \(\|\([email protected]
>>         <mailto:[email protected]>\)\([email protected]
>>         <mailto:[email protected]>\)\)
>>         Enter LDAP Password:
>>         # extended LDIF
>>         #
>>         # LDAPv3
>>         # base <ou=people,dc=ufv,dc=br> with scope subtree
>>         # filter: (|([email protected]
>>         <mailto:[email protected]>)([email protected]
>>         <mailto:[email protected]>))
>>         # requesting: ALL
>>         #
>>
>>         # vlobo, people, ufv.br <http://ufv.br>
>>         dn: uid=vlobo,ou=people,dc=ufv,dc=br
>>         uid: vlobo
>>         objectClass: organizationalRole
>>         objectClass: posixAccount
>>         objectClass: qmailUser
>>         homeDirectory: /home/vlobo
>>         userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS
>>         mail: [email protected]
>>         <mailto:[email protected]>
>>         mailAlternateAddress: [email protected]
>>         <mailto:[email protected]>
>>         mailHost: gustav.cpd.ufv.br <http://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 ?
>
>


--------------000600060808050701060906
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    &gt;mailMessageStore: vlobo<br>
    Also messagestore value must be a full path.  and directory owner
    must be ldapuid value.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 14.01.2013 18:05, Friedrich Locke
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANMDHqcnLaQvTpt6d9HF2GhTiKZD=S-UFh9VUUXM=+LMURM3Bw@mail.gmail.com"
      type="cite">Here you have it:<br>
      <br>
      ldapsearch -D cn=mail,ou=appsrv,dc=ufv,dc=br -b
      ou=people,dc=ufv,dc=br -h 127.0.0.1 -s subtree -W \(\|\(mail=<a
        moz-do-not-send="true" href="mailto:[email protected]">[email protected]</a>\)\(mailAlternateAddress=<a
        moz-do-not-send="true" href="mailto:[email protected]">[email protected]</a>\)\)  
      <br>
      Enter LDAP Password: <br>
      # extended LDIF<br>
      #<br>
      # LDAPv3<br>
      # base &lt;ou=people,dc=ufv,dc=br&gt; with scope subtree<br>
      # filter: (|(mail=<a moz-do-not-send="true"
        href="mailto:[email protected]">[email protected]</a>)(mailAlternateAddress=<a
        moz-do-not-send="true" href="mailto:[email protected]">[email protected]</a>))<br>
      # requesting: ALL<br>
      #<br>
      <br>
      # vlobo, people, <a moz-do-not-send="true" href="http://ufv.br">ufv.br</a><br>
      dn: uid=vlobo,ou=people,dc=ufv,dc=br<br>
      uid: vlobo<br>
      objectClass: organizationalRole<br>
      objectClass: posixAccount<br>
      objectClass: qmailUser<br>
      homeDirectory: /home/vlobo<br>
      userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS<br>
      mail: <a moz-do-not-send="true"
        href="mailto:[email protected]">[email protected]</a><br>
      mailAlternateAddress: <a moz-do-not-send="true"
        href="mailto:[email protected]">[email protected]</a><br>
      mailHost: <a moz-do-not-send="true"
        href="http://gustav.cpd.ufv.br">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>
      <div class="gmail_quote">
        On Mon, Jan 14, 2013 at 1:58 PM, Carlos García Gómez <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div dir="ltr">
              <div style="font-size:12pt;font-family:'Calibri'">
                <div>It seems</div>
                <div class="im">
                  <div> </div>
                  <font face="Times New Roman">gustav#
                    ../bin/qmail-ldaplookup -d 255 -m </font><a
                    moz-do-not-send="true"
                    href="mailto:[email protected]"
                    target="_blank"><font face="Times New Roman">[email protected]</font></a><font
                    face="Times New Roman"> <br>
                    Searching ldap for: (|(mail=</font><a
                    moz-do-not-send="true"
                    href="mailto:[email protected]"
                    target="_blank"><font face="Times New Roman">[email protected]</font></a><font
                    face="Times New Roman">)(mailAlternateAddress=</font><a
                    moz-do-not-send="true"
                    href="mailto:[email protected]"
                    target="_blank"><font face="Times New Roman">[email protected]</font></a><font
                    face="Times New Roman">)))<br>
                    under dn: ou=people,dc=ufv,dc=br<br>
                    qmail-ldaplookup: fatal: qldap_filter: <font
                      color="#ff0000">unspecified error</font><br>
                    gustav# </font>
                  <div> </div>
                </div>
                <div>Try to do this query with this filter in your ldap
                  client </div>
                <div> </div>
                <div>I think there are too many “)”</div>
                <div> </div>
                <div>Regards</div>
                <div> </div>
                <div style="font-size:12pt;font-family:'Calibri'">Carlos</div>
                <div style="font-size:12pt;font-family:'Calibri'"> <a
                    moz-do-not-send="true" href="http://www.netcgg.es"
                    target="_blank">http://www.netcgg.es</a></div>
                <div style="font-size:12pt;font-family:'Calibri'">Murcia-Spain</div>
                <div
style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
                  <div style="FONT:10pt tahoma">
                    <div> </div>
                    <div style="BACKGROUND:#f5f5f5">
                      <div><b>From:</b> <a moz-do-not-send="true"
                          title="[email protected]"
                          href="mailto:[email protected]"
                          target="_blank">Friedrich Locke</a> </div>
                      <div><b>Sent:</b> Monday, January 14, 2013 4:52 PM</div>
                      <div><b>To:</b> <a moz-do-not-send="true"
                          title="[email protected]"
                          href="mailto:[email protected]"
                          target="_blank">Ismail YENIGUL</a> </div>
                      <div><b>Cc:</b> <a moz-do-not-send="true"
                          title="[email protected]"
                          href="mailto:[email protected]"
                          target="_blank">[email protected]</a>
                      </div>
                      <div><b>Subject:</b> Re: Just installed
                        qmail+ldap: i am loosing my hairs</div>
                    </div>
                  </div>
                  <div> </div>
                </div>
                <div>
                  <div class="h5">
                    <div
style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">Did
                      someone here already faced such problem ?<br>
                      I am really needing help from the mailing list.<br>
                      <br>
                      Thanks.<br>
                      <br>
                      <div class="gmail_quote">On Mon, Jan 14, 2013 at
                        1:28 PM, Ismail YENIGUL <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:[email protected]"
                            target="_blank">[email protected]</a>&gt;</span>
                        wrote:<br>
                        <blockquote style="BORDER-LEFT:#ccc 1px
                          solid;MARGIN:0px 0px 0px
                          0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
                          <div bgcolor="#FFFFFF" text="#000000">Hi,<br>
                            <br>
                            Do not use homeDirectory and
                            mailMessageStore for the same user. I
                            suggest you to  use mailMessageStore.<br>
                            <br>
                            homeDirectory: /home/vlobo<br>
                            mailMessageStore: vlobo<br>
                            <br>
                            Here is my working example:<br>
                            <br>
                            dn: <a moz-do-not-send="true"
                              href="mailto:[email protected],ou=mydomain.com,o=mail,dc=surmail"
                              target="_blank">[email protected],ou=mydomain.com,o=mail,dc=surmail</a><br>
                            objectClass: top<br>
                            objectClass: person<br>
                            objectClass: inetOrgPerson<br>
                            objectClass: qmailUser<br>
                            uid: <a moz-do-not-send="true"
                              href="mailto:[email protected]"
                              target="_blank">[email protected]</a><br>
                            mail: <a moz-do-not-send="true"
                              href="mailto:[email protected]"
                              target="_blank">[email protected]</a><br>
                            givenName: ismail<br>
                            sn: test<br>
                            cn: ismail test<br>
                            userPassword::
                            e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFpHTmxaV1kzTURkag==<br>
                            mailHost: <a moz-do-not-send="true"
                              href="http://mail.mydomain.com"
                              target="_blank">mail.mydomain.com</a><br>
                            mailQuotaSize: 1000000000<br>
                            mailQuotaCount: 1000<br>
                            accountStatus: active<br>
                            mailMessageStore: /mail/<a
                              moz-do-not-send="true"
                              href="http://mydomain.com/ismail"
                              target="_blank">mydomain.com/ismail</a>
                            <div>
                              <div><br>
                                <br>
                                <br>
                                <div>On 14.01.2013 17:17, Friedrich
                                  Locke wrote:<br>
                                </div>
                                <blockquote type="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                    
                                  <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 &lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>&gt;
                                  qp 4069 uid 1000<br>
                                  @4000000050f4201a17a1761c starting
                                  delivery 21: msg 1039956 to local <a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</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 moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>
                                  <br>
                                  Searching ldap for: (|(mail=<a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>)(mailAlternateAddress=<a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>)))<br>
                                  under dn: ou=people,dc=ufv,dc=br<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=0 (Undefined error: 0)<br>
                                  50f42010 connection_read(14): input
                                  error=-2 id=1047, closing.<br>
                                  50f42010 connection_closing: readying
                                  conn=1047 sd=14 for close<br>
                                  50f42010 daemon: activity on 1
                                  descriptor<br>
                                  50f42010 daemon: waked<br>
                                  50f42010 daemon: select: listen=5
                                  active_threads=0 tvp=zero<br>
                                  50f42010 daemon: select: listen=6
                                  active_threads=0 tvp=zero<br>
                                  50f42010 daemon: select: listen=7
                                  active_threads=0 tvp=zero<br>
                                  50f42010 daemon: select: listen=8
                                  active_threads=0 tvp=zero<br>
                                  50f42010 daemon: select: listen=9
                                  active_threads=0 tvp=zero<br>
                                  50f42010 connection_close: deferring
                                  conn=1047 sd=14<br>
                                  50f42010 conn=1047 op=1 do_unbind<br>
                                  50f42010 conn=1047 op=1 UNBIND<br>
                                  50f42010 connection_resched:
                                  attempting closing conn=1047 sd=14<br>
                                  50f42010 connection_close: conn=1047
                                  sd=14<br>
                                  50f42010 daemon: removing 14<br>
                                  50f42010 conn=1047 fd=14 closed<br>
                                  <br>
                                  But when i try by hand:<br>
                                  <br>
                                  sioux@gustav$ ldapsearch -D
                                  cn=mail,ou=appsrv,dc=ufv,dc=br -b
                                  ou=people,dc=ufv,dc=br -h localhost -W
                                  \(\|\(mail=<a moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>\)\(mailAlternateAddress=<a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>\)\)<br>
                                  Enter LDAP Password: <br>
                                  # extended LDIF<br>
                                  #<br>
                                  # LDAPv3<br>
                                  # base &lt;ou=people,dc=ufv,dc=br&gt;
                                  with scope subtree<br>
                                  # filter: (|(mail=<a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>)(mailAlternateAddress=<a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a>))<br>
                                  # requesting: ALL<br>
                                  #<br>
                                  <br>
                                  # vlobo, people, <a
                                    moz-do-not-send="true"
                                    href="http://ufv.br" target="_blank">ufv.br</a><br>
                                  dn: uid=vlobo,ou=people,dc=ufv,dc=br<br>
                                  uid: vlobo<br>
                                  objectClass: organizationalRole<br>
                                  objectClass: posixAccount<br>
                                  objectClass: qmailUser<br>
                                  homeDirectory: /home/vlobo<br>
                                  userPassword::
                                  e1NBU0x9dmxvYm9AVUZWLkJS<br>
                                  mail: <a moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a><br>
                                  mailAlternateAddress: <a
                                    moz-do-not-send="true"
                                    href="mailto:[email protected]"
                                    target="_blank">[email protected]</a><br>
                                  mailHost: <a moz-do-not-send="true"
                                    href="http://gustav.cpd.ufv.br"
                                    target="_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> </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>

--------------000600060808050701060906--