OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix with ldap...Virtual issue!

From: Alex aka Magobin (magobingmail.com)
Date: Wed May 10 2006 - 09:26:22 CDT


> What is "special_result_filter"? What is "$s" intended to mean? Have
> you tested this table with "postmap -q" to make sure it yields the
> results you expect. You have posted no logs demonstrating the
> delivery problems.
>

Sorry, during this time I still read documentation...now I have modified
virtual.cf in this way:

bind = no
version = 3
timeout = 5
size_limit = 1
expansion_limit = 0
server_host= ldap://ldap1.domain.example.com/
ldap://ldap2.domain.example.com/
search_base= ou=people, dc=domain, dc=example, dc=com
scope=sub
query_filter= (uid=%s)
result_attribute = mail

I deleted virtual_alias_maps and I added to
alias_maps...ldap:/etc/postfix7virtual.cf

...running postmap -q user1 ldap:/etc/postfix/virtual.cf

 now I can succesfully query my ldap server...

Unfortunately I still don't understand how can I have virtual mailbox in
maildir format contained in a specific directory...reading doc it says
to add virtual_mailbox_maps, but this file if I understood well, points
to a file that contains an address rewriting...so at this time I'm very
confused :-(

Thanks in advance
Alex