Hi Charles
I receive the Timo's reply. thanks for send me again
Use the option that i said, but the problem persists.
userdb static {
   args = uid=500 gid=500
}
userdb prefetch {
     }
Jan  2 23:50:08 michel dovecot: auth(default): new auth connection: pid=18374
Jan  2 23:50:20 michel dovecot: auth(default): client in: AUTH  1       
  PLAIN  service=POP3     secured lip=127.0.0.1   rip=127.0.0.1    
resp=<hidden>
Jan  2 23:50:20 michel dovecot: auth(default): pam(michel,127.0.0.1):  
lookup service=dovecot
Jan  2 23:50:20 michel dovecot: auth(default): client out: OK   1       
  user=michel
Jan  2 23:50:20 michel dovecot: auth(default): master in: REQUEST       
  1      18306    1
Jan  2 23:50:20 michel dovecot: auth(default): master out: USER 1       
  michel uid=503  gid=503
Jan  2 23:50:20 michel dovecot: POP3(michel): Loading modules from  
directory: /usr/lib64/dovecot/pop3
Jan  2 23:50:20 michel dovecot: pop3-login: Login: user=<michel>,  
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Jan  2 23:50:20 michel dovecot: POP3(michel): Module loaded:  
/usr/lib64/dovecot/pop3/lib10_quota_plugin.so
Jan  2 23:50:20 michel dovecot: POP3(michel): Effective uid=503, gid=503
Jan  2 23:50:20 michel dovecot: POP3(michel): maildir:  
data=/var/spool/virtualmail//michel
Jan  2 23:50:20 michel dovecot: POP3(michel): maildir:  
root=/var/spool/virtualmail//michel,  
index=/var/spool/virtualmail//michel, control=, inbox
Dovecot detect the username , but no detect the part domain that i  
need to build the path to maildir.
Use ldap (active directory) to retrieve the mail attribute which  
specifies the address of my mail users.
I ask, as I could do with pam.
As I get the attribute mail with pam
mail_location = maildir:/var/storage/virtualmail/%d/%n
So must be /var/spool/virtualmail/casa.co.cu/michel
not
/var/spool/virtualmail//michel
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Hi,
I'm using dovecot 1.0.5-1 (debian stable) and I'm trying to build a 
virtual host machine with ldap.
In my dovecot-ldap.conf thats what I have:
uris = ldap://<ldapserver>/
dn = cn=Manager, dc=domain, dc=com, dc=br
dnpass = <ultra secret passwd>
sasl_bind = no
tls = no
ldap_version = 3
base = ou=Users, dc=domain, dc=com, dc=br
deref = never
scope = subtree
user_attrs = homeDirectory=homeDirectory
user_filter = (&(mail=%u))
pass_attrs = mail=user,userPassword=password
pass_filter = (&(mail=%u))
default_pass_scheme = CRYPT
user_global_uid = 107
user_global_gid = 109
But I don't want to read homeDirectory from LDAP, so I have the 
following in dovecot.conf
mail_location = maildir:/var/virtual/%d/%n/
The question is when I try to log into imap I receive the following error:
dovecot: 2008-01-03 10:03:55 Error: IMAP(magalhaes at fmcs.com.br): 
mkdir(/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB/expunged/cur) failed: 
Permission denied
dovecot: 2008-01-03 10:03:55 Error: IMAP(magalhaes at fmcs.com.br): 
mkdir(/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB/deleted/cur) failed: 
Permission denied
dovecot: 2008-01-03 10:03:55 Error: IMAP(magalhaes at fmcs.com.br): 
mkdir(/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB/deleted/expunged/cur) 
failed: Permission denied
(I'm using lazy_expunge too)
I can log in and etc, but this is strange for me, why do I receive this 
Permission denied message?
The directory /var/virtual/<domain>/<user>/ is owned by uid 107 and
gid
109, so, i believe thats ok.
My homedir in ldap is /home/samba/<user> , so I changed tried to chown 
107:109 too but I still get this error.
Is there a way for me to know what is the full path that dovecot is 
trying to use?  HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB is no 
helping me too much!
Oh, I imagine that my lazy_expunge conf may be helpfull:
namespace private {
  prefix = .EXPUNGED/
  separator = /
  location = maildir:~/expunged
  hidden = yes
}
namespace private {
  prefix = .DELETED/
  separator = /
  location = maildir:~/deleted
  hidden = yes
}
namespace private {
  prefix = .DELETED/.EXPUNGED/
  separator = /
  location = maildir:~/deleted/expunged
  hidden = yes
}
Thanks for all!
> namespace private { > prefix = .DELETED/.EXPUNGED/ > separator = / > location = maildir:~/deleted/expunged > hidden = yes > }Have you tried using the %d and %n in your namespaces? Like location = maildir:/var/virtual/%d/%n/deleted/expunged