Hi Viktor ,

 Thanx for clearing some things out :)

Regards,
Nickitas

On 29/12/2014 06:07 μμ, Viktor Dukhovni wrote:
> On Mon, Dec 29, 2014 at 04:45:32PM +0100, 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>
> Note, this is to be used for virtual(5) not aliases(5).  It employs
> the full email address as a lookup key.
>
>> <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>
> I guess this is "virtual_mailbox_domains".  I would use "cn" for
> a more compact result attribute.  The lookup value is not important
> here.
>
>> <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>
> This is likely "virtual_mailbox_maps", possibly used with
> the virtual(8) delivery agent, or else just as an address
> validation table, in which case the result is not significant,
> only record presence/absence matters.
>

Reply via email to