Hello, I am new to Dovecot and trying to setup on my Fedora Core 1 mail servers (actually migrating from uw to dovecot ;-) ). In my setup I use pam to authenticate virtual users. All the usernames include @domainname in their usernames like 'jane at somevhost.com'. Now path to user's home and INBOX includes /home/vhosts/<domainname>/home/<username>. I have added following to dovecot.conf. ------------------------ auth_passdb = pam auth_verbose = yes auth_username_chars default_mail_env mbox:/home/vhosts/%d/%h/:INBOX=/home/vhosts/%d/var/spool/mail/%n -------------------------- Now if I try to connect imap I get foll. error. -- imap(jane): May 19 01:58:08 Error: mkdir_parents(/home/vhosts///home/jane//.imap/INBOX) failed: Permission denied -- So %h and %u looks working but not %d :(. My pam module works right as if I use actual domain path in dovecot.conf everything works fine. Auth works correctly with uw. Any pointers ? TIA, Pythonic
On 18.10.2004, at 18:57, pythonic wrote:> Now if I try to connect imap I get foll. error. > -- > imap(jane): May 19 01:58:08 Error: > mkdir_parents(/home/vhosts///home/jane//.imap/INBOX) failed: > Permission denied > -- > > So %h and %u looks working but not %d :(.What userdb are you using? If you really are logging in as "jane at domain" and not as just "jane", the userdb is removing the @domain part. Otherwise the error message would begin imap(jane at domain). -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20041019/e0ea2f18/attachment-0001.bin>
> > Now if I try to connect imap I get foll. error. > > -- > > imap(jane): May 19 01:58:08 Error: > > mkdir_parents(/home/vhosts///home/jane//.imap/INBOX) failed: > > Permission denied > > -- > > > > So %h and %u looks working but not %d :(. > > What userdb are you using? If you really are logging in asI am using pam> "jane at domain" and not as just "jane", the userdb is removing the > @domain part. Otherwise the error message would begin > imap(jane at domain). >May be you are right but uw-imap works with that same pam module. Does pam has any role to play in dovecot's %d macro expansion? I wish this to work then I could deploy dovecot on all my mail servers. Thanks.