OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Alper Kamil Demir (demir_at_kou.edu.tr)
Date: Mon Sep 30 2002 - 08:51:16 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    > ldapsource is placed in alias_maps. alias_maps are only used by the local
    > delivery agent.

    > You should be able to see the whole process in the log file. The message
    > arrives, somehow it is determined that the mail should be delivered
    > locally and the message is handed to the local delivery agent. At this
    > point, it is headed for the mailbox of a local account (or file or
    > command), no matter what. The local delivery agent looks through
    > alias_maps, and it finds a match for ldap_test. The local delivery agent
    > tries to look for the local account "demircc.kou.edu.tr" but there is no
    > account with that name. Consequently, the user is unknown.

    There is a local account "demir" cause I can send email to demircc.kou.edu.tr. I also tried with mail : demir in ldif. I got the same "unknown user" problem. I used ldapsource_query_filter = (uid=%u) this time cause uid=user in ldif.

    Alper K. Demir

    -----Original Message-----
    From: Russell Mosemann [mailto:mosens.cune.edu]
    Sent: Mon 9/30/2002 3:38 PM
    To: Alper Kamil Demir
    Cc: postfix-userspostfix.org
    Subject: Re: postfix/ldap configure problem?

    On Mon, 30 Sep 2002, Alper Kamil Demir wrote:

    > I configured postfix ldap part as:
    > alias_maps = hash:/etc/aliases, ldap:ldapsource
    > ldapsource_server_host = ldap.cc.kou.edu.tr
    > ldapsource_server_port = 389
    > ldapsource_search_base = ou=Ogrenci,ou=People,dc=kou,dc=edu,dc=tr
    > ldapsource_query_filter = (uid=%s)
    > ldapsource_result_attribute = (mail)
    >
    > and there is an entry 'n ldif as:
    > dn: uid=ldap_test,ou=Fen Bilimleri,ou=Enstitu,ou=Ogrenci,ou=People, dc=kou,dc=
    > edu,dc=tr
    > mail: demircc.kou.edu.tr
    > uid: ldap_test
    > givenName: ldap
    > objectClass: inetorgperson
    > objectClass: organizationalPerson
    > objectClass: person
    > objectClass: top
    > sn: test
    > cn: ldap test
    >
    > when I send an email to ldap_testcc.kou.edu.tr, I expect the email is sent to demircc.kou.edu. However /var/log/maillog shows:
    > Sep 30 10:41:22 mozart postfix/local[11912]: 722DAEB64: to=<ldap_testmozart.cc.kou.edu.tr>, relay=local, delay=0, status=bounced (unknown user: "ldap_test")
    >
    > I searched ldap using ldapsearch command and it works fine. I also used tcpdump to see if there is any connection made between email server and ldap server and saw there was. However, email is bounced back to sender cause user ldap_test is not found. Am I doing something wrong? I appreciate any help. Thank you.

    ----
    Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
    "Lying is easy to do, but it's hard to do well." - Mike Reith
    

    - To unsubscribe, send mail to majordomopostfix.org with content (not subject): unsubscribe postfix-users