OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Dirk Datzert (Dirk.Datzertrasselstein-hoesch.de)
Date: Thu Apr 12 2001 - 17:13:20 CDT

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

    Hi postfix-users,

    I read the LDAP_README and tried a little. Every info about mailgroups
    and person come from OpenLDAP.

    I want realize the following:

    mailgroups can go to members,uniquemembers and mailalternateaddresses.
    works fine.
    persons can have mail, mailalternateadesses and mailforwardingaddresses.
    works fine too.

    person can have an attribute 'maildeliveryoption: mailbox' or not: If a
    person has such an attribute than the mail should delivered local next
    to cyrus by uid. If the attribute is missing than no local delivery
    should be done, only forwarding if mailforwardingaddress is set.

    Has anybody an idea or a similar problem ?

    Regards,
    Dirk

    --- START MAIN.CF ---
    mydomain = datzert.de

    virtual_maps = ldap:virtual

    virtual_server_host = localhost
    virtual_search_base = o=datzert,c=de
    virtual_query_filter = (|(mail=%s)(mailalternateaddress=%s))
    virtual_result_attribute = uid,mailforwardingaddress
    virtual_special_result_attribute = member,uniquemember
    virtual_domain = datzert.de
    --- END MAIN.CF

    --- START DATZERT.LDIF ---
    dn: uid=dirk,o=datzert,c=de
    uid: dirk
    cn: dirk datzert
    gn: dirk
    sn: datzert
    mail: dirkdatzert.de
    maildeliveryoption: mailbox
    mailalternateaddress: testtest.de
    mailforwardingaddress: dirk.datzertgmx.de
    objectclass: top
    objectclass: person

    dn: cn=mygr,o=datzert,c=de
    cn: mygr
    uniquemember: uid=wolf,o=datzert,c=de
    uniquemember: uid=dirk,o=datzert,c=de
    objectclass: top
    objectclass: mailGroup
    objectclass: groupOfUniqueNames
    objectclass: groupOfUniqueMembers
    mail: mygrdatzert.de
    --- END DATZERT.LDIF ---

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