Timo Sirainen wrote:
... deliver creates an empty directory "mail" in the virtual user's home. I have only "mail = maildir:%h/Maildir" (same as default_mail_env in dovecot.conf). Harmless, but a little disturbing. But it still delivers mails to maildir? There are no hardcoded "mail" directories in LDA code, so it sounds like it's not using the mail setting at all..
Mail is perfectly delivered into the Maildir folders. Don't know, what's going on, here is an strace:
chdir("/var/spool/vmail/jh") = 0 lstat64("/var/spool/vmail/jh/Maildir/cur", {st_mode=S_IFDIR|0700, st_size=1744, ...}) = 0 lstat64("/var/spool/vmail/jh/Maildir/new", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 lstat64("/var/spool/vmail/jh/Maildir/tmp", {st_mode=S_IFDIR|0700, st_size=264, ...}) = 0 access("/var/spool/vmail/jh/mail", R_OK|W_OK|X_OK) = -1 ENOENT (No such file or directory) access("/var/spool/vmail/jh/Mail", R_OK|W_OK|X_OK) = -1 ENOENT (No such file or directory) stat64("/.imap", 0xbffa6a7c) = -1 ENOENT (No such file or directory) stat64("/inbox", 0xbffa69ec) = -1 ENOENT (No such file or directory) stat64("/mbox", 0xbffa69ec) = -1 ENOENT (No such file or directory) mkdir("/var/spool/vmail/jh/mail", 0770) = 0 access("/var/mail/vmail", R_OK|W_OK) = -1 ENOENT (No such file or directory) access("/var/spool/mail/vmail", R_OK|W_OK) = -1 ENOENT (No such file or directory) fcntl64(0, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
For some reason, the lda looks for directories/files that have nothing to do with Maildir, I think. My "auth default" section uses the static userdb with "args uid=103 gid=104 home=/var/spool/vmail/%Lu", so I only set home, not mail.
btw, I just saw that the current lda (from CVS) compiles .dovecot.sievec everytime (.dovecot.sieve didn't change, of course).
Aug 18 00:30:09 ymmv deliver: entered bc_action_emit with filelen: 16 Aug 18 00:30:09 ymmv deliver: entered bc_action_emit with filelen: 104 These are some debug things that the original libsieve code sends. I have no idea what they mean. Maybe I should just comment them out.
Probably they are thrown out while the message is read, to show progress. But it's surely only useful for (heavy?) debugging, not for normal operation, so commenting out is a good idea, I think.
And sorry :), I have more things:
cosmetic: dovecot complains at every startup "auth(default): bind(/var/spool/vmail/auth-master) failed: Address already in use". The message seems to be harmless, only a little confusing. btw, most programs delete sockets at termination, AFAIK.
Is it possibly to install the lda so that every system user can use it? Even SETUID root didn't work.