On 01/18/2012 11:59 AM, Hervé Hénoch wrote:
Hello

I've a postfix  server with LDAP

In  main.cf  :

home_mailbox = Maildir/
virtual_mailbox_base = /mnt/vmail
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf

In ldap-accounts.cf :
query_filter = (&(objectClass=IscMailAccount)(mail=%s)(mailAccountActive=TRUE))
result_attribute = mailbox

So the drop directory for a user is the attribute mailbox prepended with "/mnt/vmail". I have putted for a user :

mailbox = /opt/test

But the mails always drop in /mnt/vmail/<domain>/<user without domain> and not in /opt/test.

I've tried to put opt/test, thinking that all mails will drop in /mnt/vmail/opt/test for this user : false same thing as preceding.

How can I change a user mail drop directory ?

Regards
virtual_mailbox_base = /opt/test should do it.

Regards,

Reply via email to