[Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory ...

2011-12-22 Thread LE NORCY Arnaud

Hello,

i get this message every time that a user has enabled the vacation 
script (into Horde webmail)  in my mail.err log file:


Dec 22 10:18:16 mailserver dovecot: deliver(user324): 
file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory


normally the reply is sent only once in the number of configured days.. 
but for all users the reply is sent every time...
the day variable is ignored.. because the file dovecot.lda-dupes is 
not wrotten i think..




~# dpkg -l | grep dovecot
ii  dovecot-common  1:1.2.15-4   
secure mail server that supports mbox and maildir mailboxes
ii  dovecot-imapd   1:1.2.15-4   
secure IMAP server that supports mbox and maildir mailboxes
ii  dovecot-pop3d   1:1.2.15-4   
secure POP3 server that supports mbox and maildir mailboxes



dovecot.conf :

protocols = imap imaps pop3s managesieve
mail_location = maildir:/ext/spool/imap/%1Mu/%u
mail_uid = vmail
mail_gid = vmail


protocol lda {
mail_plugins = quota sieves.fr
}

..
plugin {
..
sieve_dir = /ext/spool/sieve/%1Mu/%u
sieve = /ext/spool/sieve/%1Mu/%u/dovecot.sieve
}



rights are OK for user vmail in /ext/spool/sieve/%1Mu/%u/ ;

for example :

/ext/spool/sieve/d/user324# ls -la
total 20
drwxr-x---  3 vmail vmail 4096 20 déc.  19:15 .
drwxr-x--- 43 vmail vmail 4096 17 nov.  10:14 ..
lrwxrwxrwx  1 vmail vmail   10 20 déc.  18:38 dovecot.sieve - ingo.sieve
-rw-r-  1 vmail vmail   65 20 déc.  19:15 dovecot.svbin
-rw-r-  1 vmail vmail   88 20 déc.  18:38 ingo.sieve
drwxr-x---  2 vmail vmail 4096 20 déc.  18:38 tmp


any ideas?thanks

Arnaud,


Re: [Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory ...

2011-12-22 Thread Pascal Volk
On 12/22/2011 11:31 AM LE NORCY Arnaud wrote:
 
 Dec 22 10:18:16 mailserver dovecot: deliver(user324): 
 file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory
  ^
http://wiki.dovecot.org/VirtualUsers/Home


Regards,
Pascal
-- 
The trapper recommends today: cafefeed.1135...@localdomain.org


[Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory

2009-11-16 Thread Rene Bakkum

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.1000...@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.1000...@gmail.com: sent vacation response to 
[my.gmail.account]
Nov 16 13:43:03 mail003 postfix/cleanup[6505]: F202DF690: 
message-id=dovecot-1258375383-94762...@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.1000...@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:
r...@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




Re: [Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory

2009-11-16 Thread Pascal Volk
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:
 r...@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.0932...@localdomain.org


Re: [Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory

2009-11-16 Thread Rene Bakkum

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