On Tue, Jul 6, 2010 at 15:58, Victor Duchovni wrote:
> On Sat, Jul 03, 2010 at 02:15:53AM +0200, Fran Garcia wrote:
>
>> Basically the schema should :
>>
>> - Be OpenLDAP compatible
>
> Not a problem.
>
>> - Allow multidomain
>
> I don't know what this means.

Hi Viktor, thanks for your reply.

This means "be able to hold several virtual domains as destination".
Think of an ISP configuring a shared email platform for several
domains / customers. Ideally those domains would be held in LDAP as
well.  (I've seen the qmail.schema and apparently is only ready fo one
single domain).


>> - Host transports for each defined account / email address.
>
> This is not a good idea. Avoid using LDAP for transport lookups.
> Instead:
>
>    - rewrite envelope recipients to an appropriate destination
>      domain via virtual(5) (i.e. virtual_alias_maps).
>
>    - explicitly set virtual_alias_domains (even if empty).
>
>    - Map each destination domain to a suitable transport via
>      an indexed file (Berkeley DB hash or btree, CDB, ...)

The rationale for requesting this was "how do I grow if I have  say
100k accounts in a single domain and I want to spread the load on
several backend servers". As per your description, that would be
handled like :  us...@example.org ->
us...@internal_backendx.example.org ?


>> - Integrate with dovecot and/or cyrus-imapd.
>
> Postfix will happily use any schema in which lookup keys
> (typically email addresses) can be mapped to a result
> value (or list of values which are transformed to a comma-separated
> result string) by a query as explained in:
>
>    http://www.postfix.org/ldap_table.5.html
>    http://www.postfix.org/LDAP_README.html
>
> Postfix has no preferred LDAP schemas, it operates at a higher level of
> abstraction, i.e. virtual_alias_maps, transport_maps, ...  which can be
> implemented via LDAP if you so choose. The mapping between an actual
> LDAP dataset and the conceptual Postfix key/value table is up to you.

Thanks for the links :-) . I already came across the "postfix adapts
to any ldap schema" but, since I'm starting with ldap and not very
familiar with all the concepts, I wanted to get some reall ife
examples of actual schemas people are using.

cheers

Reply via email to