[Dovecot] default_mail_env %d var problem
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@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@domain" and not as just "jane", the userdb is removing the @domain part. Otherwise the error message would begin imap(jane@domain).
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 I am using pam "jane@domain" and not as just "jane", the userdb is removing the @domain part. Otherwise the error message would begin imap(jane@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.
I am changing my linux distro .. to slackware from fendora core .. but dovecot/postfix will remain the same , what are the steps involved inbacking up all my users mailboxes & then resotring again .. i have never done this sucessfully so please help me out .. users are authenticated via /etc/passwd
thanks
On Thu, 21 Oct 2004, Faisal wrote:
I am changing my linux distro .. to slackware from fendora core .. but dovecot/postfix will remain the same , what are the steps involved inbacking up all my users mailboxes & then resotring again .. i have never done this sucessfully so please help me out .. users are authenticated via /etc/passwd
First of all, may I suggest to you to read a book about unix/posix systems and to check some online sources of information, such as the documentation of your MTA. Only you can know where you store mailboxes and how the software on your machine has been configured.
Check the configuration files of your MTA (sendmail, postfix?) and dovecot's configuration file, dovecot.conf to see where mail is delivered; the inboxes can probably be found in /var/mail or thereabouts depending on the exact OS and MTA you are using.
If you have never done this before and don't know much about unix-like systems, practice backing up and restoring on non-production servers first. Really.
participants (4)
-
Faisal
-
pythonic
-
Timo Sirainen
-
Wouter Van Hemel