Hi Suomi ,

 I have more or less the same ldap lookups set up already , I am only
using a more strict query filter and another scope .
This does not solve my forwarding problem , I ve seen it working in
zimbra that uses postfix , however I was not able to figure it out how
it was implemented .

Thanx for your answer ,
Nickitas


On 29/12/2014 05:45 μμ, postfix wrote:
> Hi Nickitas
> we use postfix at our site and all mail parameters are in the openldap
> server. Because postfix has no special LDAP schema (as Wietse said) we
> use the qmail-control.schema and the qmail.schema, which both are
> familiar to you.
>
> You will find in the following the three ldap-config files for
> postfix, we use at this place.
>
> <ldap-alias.cf>
> # virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-alias.cf
> server_host = localhost
> server_port = 389
> search_base = ou=postfix,dc=mydomain,dc=com
> query_filter = (&(mail=%s)(objectclass=qmailuser))
> result_attribute = mailAlternateAddress
> bind = yes
> bind_dn = cn=postfix,ou=postfix,dc=mydomain,dc=com
> bind_pw = secret0assw94d
> scope = one
> version = 3
> </ldap-alias.cf>
>
> <ldap-domain.cf>
> # virtual_domain_maps = proxy:ldap:/etc/postfix/ldap-alias.cf
> server_host = localhost
> server_port = 389
> search_base = cn=mail.mydomain.com,ou=postfix,dc=mydomain,dc=com
> query_filter = (virtualDomains=%s)
> result_attribute = virtualDomains
> bind = yes
> bind_dn = cn=postfix,ou=postfix,dc=mydomain,dc=com
> bind_pw = secret0assw94d
> scope = base
> version = 3
> </ldap-domain.cf>
>
> <ldap-mailbox.cf>
> # virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-mailbox.cf
> server_host = localhost
> server_port = 389
> search_base = ou=postfix,dc=mydomain,dc=com
> query_filter = (&(mail=%s)(objectclass=qmailuser))
> result_attribute = mailMessageStore
> bind = yes
> bind_dn = cn=postfix,ou=postfix,dc=mydomain,dc=com
> bind_pw = secret0assw94d
> scope = one
> version = 3
> </ldap-mailbox.cf>
>
>
>
> suomi
>
>
> On 12/29/2014 03:26 PM, Nickitas wrote:
>> 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 u...@domain.com can now have a forward to
>> us...@otherdomain.com and also the option to leave a copy of the message
>> on mailbox of u...@domain.com 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 ?
>>
>> Thank you in advance,
>> Nickitas
>>
>

Reply via email to