Home Directory Creation

Asai asai at globalchangemusic.org
Thu Oct 3 23:43:37 EEST 2019


> Tried your config here and it works. My debug log looks as follows for 
> the first brief IMAP session:
>
> Oct  3 22:28:56 drieka dovecot: imap-login: Login: 
> user=<diederik-jan>, method=PLAIN, rip=::1, lip=::1, mpid=21949, 
> secured, session=<OtQjbweUvpIAAAAAAAAAAAAAAAAAAAAB>
> Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Added 
> userdb setting: plugin/=yes
> Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Effective 
> uid=1001, gid=1001, home=/vmail//diederik-jan/home
> Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Home dir 
> not found: /vmail//diederik-jan/home
> Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Namespace 
> inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, 
> subscriptions=yes location=maildir:/vmail//diederik-jan
> Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: maildir++: 
> root=/vmail//diederik-jan, index=, indexpvt=, control=, 
> inbox=/vmail//diederik-jan, alt=
> Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Namespace : 
> /vmail//diederik-jan doesn't exist yet, using default permissions
> Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Namespace : 
> Using permissions from /vmail//diederik-jan: mode=0700 gid=default
> Oct  3 22:29:02 drieka dovecot: imap(diederik-jan): Debug: INBOX: 
> Mailbox opened because: SELECT
> Oct  3 22:29:04 drieka dovecot: imap(diederik-jan): Logged out in=31 
> out=747
>
> Took me a few tries to get this working though. You need to configure 
> the permissions of /vmail correctly. Are you sure you're looking in 
> the correct log file for finding errors?
>
> You can execute the following to find out:
>
> $ sudo doveadm log find
> Looking for log files from /var/log
> Debug: /var/log/syslog
> Debug: /var/log/mail.log
> Info: /var/log/syslog
> Info: /var/log/mail.info
> Info: /var/log/mail.log
> Warning: /var/log/mail.warn
> Warning: /var/log/syslog
> Warning: /var/log/mail.info
> Warning: /var/log/mail.log
> Error: /var/log/mail.warn
> Error: /var/log/syslog
> Error: /var/log/mail.info
> Error: /var/log/mail.err
> Error: /var/log/mail.log
> Fatal: /var/log/mail.warn
> Fatal: /var/log/syslog
> Fatal: /var/log/mail.info
> Fatal: /var/log/mail.err
> Fatal: /var/log/mail.log
>

Thank you for your reply, Stephan.

But did it create the home directory in the new account's mail folder? 
e.g. /vmail/domain/user/home?

Because this debug message is exactly similar to what I'm getting: 
"Debug: Home dir not found: /vmail//diederik-jan/home"

I have thought that there could be a permissions problem, but dovecot is 
able to create all directories inside the main folder except for that 
"home" folder.  I'm starting to think that maybe sieve is creating that 
folder on the old server automatically.

My vmail dir (NFS share) is set to 750 (vmail:vmail), but all new 
maildirs get created with 700.

Here's our log file output:

[root at triata4 ~]# doveadm log find
Looking for log files from /var/log
Debug: /var/log/dovecot-debug.log
Info: /var/log/dovecot-info.log
Warning: /var/log/maillog
Error: /var/log/maillog
Fatal: /var/log/maillog

Asai



More information about the dovecot mailing list