On 03/10/2019 22:43, Asai via dovecot wrote:
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"
Ah! I see what you mean now. No, indeed, that home directory is not
created. IMAP doesn't really need it, so it doesn't fail. In contrast,
ManageSieve does fail on that:
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: Effective uid=1001, gid=1001,
home=/vmail/example.com/pieter-joost/home
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: Home dir not found: /vmail/example.com/pieter-joost/home
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes,
hidden=no, list=yes, subscriptions=yes
location=maildir:/vmail/example.com/pieter-joost
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: maildir++: root=/vmail/example.com/pieter-joost, index=,
indexpvt=, control=, inbox=/vmail/example.com/pieter-joost, alt=
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: sieve: Pigeonhole version 0.4.25.alpha0 (3bbd9e9c) initializing
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: sieve: include: sieve_global is not set; it is currently not
possible to include `:global' scripts.
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: sieve: file storage: Performing auto-detection
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Debug: sieve: file storage: access(/vmail/example.com/pieter-joost/home,
rwx) failed: No such file or directory
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Error: sieve: file storage: Could not find storage root directory for
write access; path was left unconfigured and autodetection failed
Oct 3 22:58:19 drieka dovecot: managesieve(pieter-jo...@example.com):
Fatal: Failed to open Sieve storage.
Looks like this still old reply from TImo applies:
https://dovecot.org/list/dovecot/2013-May/090397.html
The welcome plugin could maybe of help:
https://doc.dovecot.org/plugin-settings/welcome-plugin/
Regards,
Stephan.