Hi Wietse,

 I know that postfix does not include a ldap schema (i wish it did
though , it would make things simpler) . I have done almost all db
related stuff already ( authentication , domain and user lookup ) , I am
only - for the time being - missing the forwarding method .

Thank you for your answer ,

Nickitas

On 29/12/2014 04:50 μμ, Wietse Venema wrote:
> Nickitas:
>> Dear all ,
>>
>>  I am having a qmail-ldap server with virtual domains on it . I would
>> like to (slowly) start to transfer the smtp server to postfix . I am
>> still working on test vms in order to make a working configuration first
>> . I am having a problem making the forwards from postfix .
>>
>> For example  [email protected] can now have a forward to
>> [email protected] and also the option to leave a copy of the message
>> on mailbox of [email protected] or not .
>> All these information is in ldap under attributes defined by qmail-ldap
>> schema .
>>
>> So the forwarding address is at attribute mailForwardingAddress:  ,
>> while the forwarding is handled by deliveryMode: (values are forwardonly
>> , nombox , localdelivery) .
>>
>> What is the way to achieve this in postfix ?
> There is no LDAP schema.
>
> Postfix implements a "key, value" interface on top of a variety of
> lookup mechanisms such as Berkeley DB, LMDB, LDAP, *SQL*, and more.
>
> Of special interest is Postfix virtual_alias_maps which supports
> multiple lookup results. That can be used to deliver one message
> on more than one place.
>
> I suggest, as in http://www.postfix.org/DATABASE_README.html, that
> you start with simple file tables first, so that you get familiar
> with Postfix's key/value interface. To deliver one message in
> more than one place:
>
> /etc/postfix/main.cf:
>     virtial_alias_maps  hash:/etc/postfix/virtual
>
> /etc/postfix/virtual:
>     [email protected]    [email protected], [email protected]
>
> ("postmap hash:/etc/postfix/virtual" after changing the source).
>
> Only when simple file tables produce the desired result, convert
> to LDAP. See DATABASE_README.html for more tips.
>
>       Wietse
>

Reply via email to