retrieval of several values in ldap

From: Rudy Gevaert (no email)
Date: Sat Oct 01 2005 - 16:00:08 EDT

  • Next message: Magnus Bäck: "Re: Lot of errors on Fedora 4"

    Hello,

    I have set up virtual aliases (for one person) with ldap nicely:

    zalm:/etc/postfix# cat /etc/postfix/ldap_virtual_mailbox_maps.cf
    server_host = localhost
    version = 3
    search_base = ou=Mail,dc=UGent,dc=be
    bind_dn = cn=mailadmin,ou=accounts,dc=UGent,dc=be
    bind_pw = mailadmin
    query_filter =
    (&(|(mailUid=%s)(mailAliasAddress=%s))(accountStatus=enabled))
    result_attribute = maildrop

    Example entries in ldap:

    dn: mailUid=,ou=Mail,dc=UGent,dc=be
    mailUid:
    mailDomain: appel.ugent.be
    userPassword:: e0NSWVBUfWFhZi5kWEQwVFk2T0k=
    mailLogin: foo
    mailQuota: 500000
    maildrop: appel.ugent.be/f/fo/foo
    mailAliasAddress:
    mailAliasAddress:
    objectClass: virtualmail
    accountStatus: enabled

    dn: mailUid=,ou=Mail,dc=UGent,dc=be
    mailUid:
    mailDomain: appel.ugent.be
    userPassword:: e0NSWVBUfWFhZi5kWEQwVFk2T0k=
    mailLogin: webworm
    mailQuota: 500000
    maildrop: appel.ugent.be/w/we/webworm
    mailAliasAddress:
    objectClass: virtualmail
    accountStatus: enabled

    Running postmap -q gives:

    zalm:/etc/postfix# postmap -q \
    ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf
    appel.ugent.be/f/fo/foo,appel.ugent.be/w/we/webworm

    But delivery of the mail doesn't work:

    Oct 1 21:36:00 zalm postfix/virtual[32293]: 34032BEE1:
    to=<>, relay=virtual, delay=1083, status=deferred
    (mailbox
    /home/vmail/appel.ugent.be/f/fo/foo,appel.ugent.be/w/we/webworm: cannot
    create file exclusively: No such file or directory)

    My question: how does postfix handle multiple results of an ldap query?
    And how should I configure it so users who have mailAliasAddress set
    should accept mail for that address?

    Thank you in advance,

    Rudy


  • Next message: Magnus Bäck: "Re: Lot of errors on Fedora 4"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD