[Dovecot] Errors after enable vnd.dovecot.duplicate
Hi,
on dovecot 2.1.14 and pigeonhole-0.3.3 after creating a default.sieve like this:
require ["vnd.dovecot.duplicate", "fileinto", "mailbox"]; if duplicate { fileinto "Trash"; }
I have two strange errors, one is many of this error in lda.log:
Feb 19 14:43:17 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:43:43 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:44:29 lda(info@domain.com): Error: rename(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes.lock, /home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory Feb 19 14:44:29 lda(info@domain.com): Error: file_dotlock_replace(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory
Note that my mailboxes are store on NFS. This happens for many accounts.
Another error is that some messages have not Message-ID in lda.log and when this happens emails are treated as duplicate:
# grep "msgid=: stored" /var/log/dovecot/lda.log Feb 18 08:02:13 lda(info@domain.com): Info: sieve: msgid=: stored mail into mailbox 'INBOX' Feb 18 09:37:06 lda(info@domain.com): Info: sieve: msgid=: stored mail into mailbox 'Trash' Feb 18 10:29:37 lda(cracigna@domain.com): Info: sieve: msgid=: stored mail into mailbox 'Trash' Feb 18 11:38:00 lda(info@domain.com): Info: sieve: msgid=: stored mail into mailbox 'Trash' Feb 18 12:09:22 lda(info@domain.com): Info: sieve: msgid=: stored mail into mailbox 'Trash' Feb 18 16:10:52 lda(info@domain.com): Info: sieve: msgid=: stored mail into mailbox 'Trash' Feb 19 14:18:19 lda(cracigna@domain.com): Info: sieve: msgid=: stored mail into mailbox 'Trash' Feb 19 14:24:21 lda(panizzon@domain.com): Info: sieve: msgid=: stored mail into mailbox 'INBOX'
After some investigations this emails are sent all from the same user with a Lotus Domino Server.
Can these errors be solved?
My dovecot configuration:
# 2.1.14: /usr/local/dovecot-2.1/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.6 auth_cache_size = 512 k auth_worker_max_count = 60 default_login_user = nobody dict { acl = mysql:/usr/local/dovecot-2.1/etc/dovecot/dovecot-share-folder.conf expire = mysql:/usr/local/dovecot-2.1/etc/dovecot/dovecot-dict-sql.conf.ext } disable_plaintext_auth = no dotlock_use_excl = no first_valid_gid = 89 first_valid_uid = 89 last_valid_gid = 89 last_valid_uid = 89 lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes log_path = /var/log/dovecot/dovecot.log mail_fsync = always mail_location = maildir:~/Maildir mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = quota acl zlib expire maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave vnd.dovecot.duplicate mmap_disable = yes namespace { list = children location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u prefix = shared/%%n/ separator = / subscriptions = no type = shared } namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Spam { auto = subscribe special_use = \Junk } mailbox Trash { auto = subscribe special_use = \Trash } prefix = separator = / } passdb { args = cache_key=%s%u webmail=192.168.13.215 driver = vpopmail } plugin { acl = vfile:/usr/local/dovecot-2.1/etc/dovecot/global-acls:cache_secs=300 acl_shared_dict = proxy::acl expire = Trash expire2 = Spam expire_dict = proxy::expire quota = maildir:UserQuota quota_rule2 = Trash:storage=+100M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_default = /usr/local/dovecot-2.1/etc/dovecot/sieve/default.sieve sieve_dir = ~/sieve sieve_extensions = +vnd.dovecot.duplicate } protocols = imap pop3 sieve service auth { unix_listener auth-userdb { group = vchkpw mode = 0660 user = vpopmail } } service dict { unix_listener dict { group = vchkpw mode = 0660 user = vpopmail } } service imap-login { service_count = 0 } service managesieve-login { inet_listener sieve { port = 4190 } } service pop3-login { service_count = 0 } service quota-warning { executable = script /usr/local/dovecot-2.1/etc/dovecot/scripts/quota-warning.sh unix_listener quota-warning { user = vpopmail } user = vpopmail } ssl_cert =
Thanks
-- Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/ @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
On 19.2.2013, at 16.42, Alessio Cecchi alessio@skye.it wrote:
I have two strange errors, one is many of this error in lda.log:
Feb 19 14:43:17 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:43:43 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:44:29 lda(info@domain.com): Error: rename(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes.lock, /home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory Feb 19 14:44:29 lda(info@domain.com): Error: file_dotlock_replace(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory
Note that my mailboxes are store on NFS. This happens for many accounts.
You are using multiple servers that deliver mails to the same users? Not supported, use director + LMTP: http://wiki2.dovecot.org/Director
Il 19/02/2013 16:44, Timo Sirainen ha scritto:
On 19.2.2013, at 16.42, Alessio Cecchi alessio@skye.it wrote:
I have two strange errors, one is many of this error in lda.log:
Feb 19 14:43:17 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:43:43 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:44:29 lda(info@domain.com): Error: rename(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes.lock, /home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory Feb 19 14:44:29 lda(info@domain.com): Error: file_dotlock_replace(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory
Note that my mailboxes are store on NFS. This happens for many accounts.
You are using multiple servers that deliver mails to the same users? Not supported, use director + LMTP: http://wiki2.dovecot.org/Director
Yes, I will try to switch to LMTP.
Thanks
Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/ @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
Alessio Cecchi wrote:
Il 19/02/2013 16:44, Timo Sirainen ha scritto:
On 19.2.2013, at 16.42, Alessio Cecchi alessio@skye.it wrote:
I have two strange errors, one is many of this error in lda.log:
Feb 19 14:43:17 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:43:43 lda(info@domain.com): Error: file_dotlock_create(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 19 14:44:29 lda(info@domain.com): Error: rename(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes.lock, /home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory Feb 19 14:44:29 lda(info@domain.com): Error: file_dotlock_replace(/home/vpopmail/domains/domain.com/info/.dovecot.lda-dupes) failed: No such file or directory
Note that my mailboxes are store on NFS. This happens for many accounts.
You are using multiple servers that deliver mails to the same users? Not supported, use director + LMTP: http://wiki2.dovecot.org/Director
Yes, I will try to switch to LMTP.
# 2.1.10: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-45-server x86_64 Ubuntu 10.04.4 LTS # Pigeonhole: 0.3.3
Since I'm using the vnd.dovecot.duplicate extension in my sieve script, we got the same error exactly three times, but only on Feb 11. We are using LMTP on a 4 node director+mailbox dual-instance setup with NFSv4.
Feb 11 11:10:45 10.129.3.233 dovecot: lmtp(23044, dparthey@example.org): Error: file_dotlock_create(/mail/dovecot/example.org/dparthey/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 11 11:10:50 10.129.3.233 dovecot: lmtp(23139, dparthey@example.org): Error: file_dotlock_create(/mail/dovecot/example.org/dparthey/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 11 11:10:52 10.129.3.233 dovecot: lmtp(23207, dparthey@example.org): Error: file_dotlock_create(/mail/dovecot/example.org/dparthey/.dovecot.lda-dupes) failed: Resource temporarily unavailable
No further errors on dovecot-error.log. The error did not reoccur yet and seems to be very rare.
Regards Daniel
On 20.2.2013, at 3.58, Daniel Parthey daniel.parthey@informatik.tu-chemnitz.de wrote:
Since I'm using the vnd.dovecot.duplicate extension in my sieve script, we got the same error exactly three times, but only on Feb 11. We are using LMTP on a 4 node director+mailbox dual-instance setup with NFSv4.
Feb 11 11:10:45 10.129.3.233 dovecot: lmtp(23044, dparthey@example.org): Error: file_dotlock_create(/mail/dovecot/example.org/dparthey/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 11 11:10:50 10.129.3.233 dovecot: lmtp(23139, dparthey@example.org): Error: file_dotlock_create(/mail/dovecot/example.org/dparthey/.dovecot.lda-dupes) failed: Resource temporarily unavailable Feb 11 11:10:52 10.129.3.233 dovecot: lmtp(23207, dparthey@example.org): Error: file_dotlock_create(/mail/dovecot/example.org/dparthey/.dovecot.lda-dupes) failed: Resource temporarily unavailable
No further errors on dovecot-error.log. The error did not reoccur yet and seems to be very rare.
This error happens when the dupes file has been locked for 10 seconds. I guess that user was delivered multiple mails at the same time and the delivery took a long time.. I made the error message somewhat better anyway: http://hg.dovecot.org/dovecot-2.1/rev/81ea622b6394
participants (3)
-
Alessio Cecchi
-
Daniel Parthey
-
Timo Sirainen