[Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory
Hi,
I am having some problems with my vacation messages using dovecot. The mail is send without problems, and the auto-respond is working as well. But its always auto-responding, because the lda-dupes file can't be created.
See mail log below: Nov 16 13:43:03 mail003 postfix/smtpd[6501]: connect from mail-bw0-f211.google.com[209.85.218.211] Nov 16 13:43:03 mail003 postfix/smtpd[6501]: D6FE6F64F: client=mail-bw0-f211.google.com[209.85.218.211] Nov 16 13:43:03 mail003 postfix/cleanup[6505]: D6FE6F64F: message-id=<4B014929.1000008@gmail.com> Nov 16 13:43:03 mail003 postfix/qmgr[27330]: D6FE6F64F: from=<[my.gmail.account]>, size=1946, nrcpt=1 (queue active) Nov 16 13:43:03 mail003 deliver([my.test.account]): file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory Nov 16 13:43:03 mail003 postfix/pickup[5934]: F202DF690: uid=5000 from=<> Nov 16 13:43:03 mail003 deliver([my.test.account]): msgid=<4B014929.1000008@gmail.com>: sent vacation response to <[my.gmail.account]> Nov 16 13:43:03 mail003 postfix/cleanup[6505]: F202DF690: message-id=<dovecot-1258375383-947629-0@mail003> Nov 16 13:43:04 mail003 postfix/qmgr[27330]: F202DF690: from=<>, size=570, nrcpt=1 (queue active) Nov 16 13:43:04 mail003 deliver([my.test.account]): msgid=<4B014929.1000008@gmail.com>: saved mail to INBOX Nov 16 13:43:04 mail003 postfix/pipe[6506]: D6FE6F64F: to=<[my.test.account]>, relay=dovecot, delay=0.21, delays=0.08/0.01/0/0.12, dsn=2.0.0, status=sent (delivered via dovecot service) Nov 16 13:43:04 mail003 postfix/qmgr[27330]: D6FE6F64F: removed Nov 16 13:43:05 mail003 postfix/smtp[6510]: F202DF690: to=<[my.gmail.account]>, relay=gmail-smtp-in.l.google.com[74.125.93.114]:25, delay=1.6, delays=0.07/0.01/0.32/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1258375453 7si18156568qwb.35) Nov 16 13:43:05 mail003 postfix/qmgr[27330]: F202DF690: removed
I manually created the file, but its keeping getting the message: root@mail003:/home/vmail/mydomain.com/info/.Maildir# ls -la drwx------ 6 vmail vmail 4096 2009-11-16 14:04 . drwx------ 3 vmail vmail 4096 2009-11-16 12:37 .. drwx------ 2 vmail vmail 4096 2009-11-16 14:04 cur -rw------- 1 vmail vmail 340 2009-11-16 13:49 dovecot.index -rw------- 1 vmail vmail 22528 2009-11-16 14:04 dovecot.index.cache -rw------- 1 vmail vmail 7000 2009-11-16 14:04 dovecot.index.log -rwx------ 1 vmail vmail 0 2009-11-16 14:03 .dovecot.lda-dupes -rwx------ 1 vmail vmail 485 2009-11-16 12:33 .dovecot.sieve -rw------- 1 vmail vmail 208 2009-11-16 12:56 .dovecot.sievec -rw------- 1 vmail vmail 522 2009-11-16 14:04 dovecot-uidlist -rw------- 1 vmail vmail 8 2009-11-11 14:31 dovecot-uidvalidity -rw------- 1 vmail vmail 0 2009-11-11 14:31 dovecot-uidvalidity.4afabcaa drwx------ 2 vmail vmail 4096 2009-11-16 14:04 new -rw------- 1 vmail vmail 6 2009-11-11 14:45 subscriptions drwx------ 2 vmail vmail 4096 2009-11-16 14:04 tmp drwx------ 5 vmail vmail 4096 2009-11-11 14:45 .Trash
Is the ~/.dovecot.lda-dupes linking to another path, and how can I adjust this so it searches for /home/vmail/%d/%n/.Maildir/ ?
Thanks,
- Rene
On 11/16/2009 02:10 PM Rene Bakkum wrote:
Hi,
I am having some problems with my vacation messages using dovecot. The mail is send without problems, and the auto-respond is working as well. But its always auto-responding, because the lda-dupes file can't be created.
See mail log below: … Nov 16 13:43:03 mail003 deliver([my.test.account]): file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory …
I manually created the file, but its keeping getting the message: root@mail003:/home/vmail/mydomain.com/info/.Maildir# ls -la drwx------ 6 vmail vmail 4096 2009-11-16 14:04 . drwx------ 3 vmail vmail 4096 2009-11-16 12:37 .. drwx------ 2 vmail vmail 4096 2009-11-16 14:04 cur -rw------- 1 vmail vmail 340 2009-11-16 13:49 dovecot.index -rw------- 1 vmail vmail 22528 2009-11-16 14:04 dovecot.index.cache -rw------- 1 vmail vmail 7000 2009-11-16 14:04 dovecot.index.log -rwx------ 1 vmail vmail 0 2009-11-16 14:03 .dovecot.lda-dupes -rwx------ 1 vmail vmail 485 2009-11-16 12:33 .dovecot.sieve -rw------- 1 vmail vmail 208 2009-11-16 12:56 .dovecot.sievec -rw------- 1 vmail vmail 522 2009-11-16 14:04 dovecot-uidlist -rw------- 1 vmail vmail 8 2009-11-11 14:31 dovecot-uidvalidity -rw------- 1 vmail vmail 0 2009-11-11 14:31 dovecot-uidvalidity.4afabcaa drwx------ 2 vmail vmail 4096 2009-11-16 14:04 new -rw------- 1 vmail vmail 6 2009-11-11 14:45 subscriptions drwx------ 2 vmail vmail 4096 2009-11-16 14:04 tmp drwx------ 5 vmail vmail 4096 2009-11-11 14:45 .Trash
Is the ~/.dovecot.lda-dupes linking to another path, and how can I adjust this so it searches for /home/vmail/%d/%n/.Maildir/ ?
Thanks,
- Rene
Mildir != ~ Why are you storing the sieve files in the Maildir? Let your userdb return /home/vmail/%d/%n as home, and ~/.Maildir as mail. If the permissions on the directories are set correctly, everything should work fine.
Regards, Pascal
The trapper recommends today: decade.0932015@localdomain.org
Pascal Volk wrote:
Mildir != ~ Why are you storing the sieve files in the Maildir? Let your userdb return /home/vmail/%d/%n as home, and ~/.Maildir as mail. If the permissions on the directories are set correctly, everything should work fine.
Thanks I got it working now! Too be honest... I have no idea why I stored them in the Maildir. I just configured it like that. Changed it to /home/vmail/%d/%n/ now. :)
For feature reference, the following change I made to get it working... I configured my server that it gets the information from the database. I have the following set in /etc/dovecot/dovecot.conf: mail_location = maildir:/home/vmail/%d/%n/.Maildir # SQL database <doc/wiki/AuthDatabase.SQL.txt> userdb sql { # Path for SQL configuration file args = /etc/dovecot/dovecot-sql.conf }
In /etc/dovecot/dovecot-sql.conf I had it standing on:
user_query =
SELECT uid, gid
FROM users WHERE username = '%u'
I changed this to:
user_query =
SELECT home, uid, gid
FROM users WHERE username = '%u'
this made it working. Basically looking back, I can't believe why I removed the check for 'home'. As it clearly was stated in the example as needed.
Should RTFM more often I guess!
- Rene
participants (2)
-
Pascal Volk
-
Rene Bakkum