[Dovecot] Errors after enable vnd.dovecot.duplicate

Alessio Cecchi alessio at skye.it
Tue Feb 19 16:42:36 EET 2013


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 at 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 at 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 at 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 at 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 at domain.com): Info: sieve: msgid=: stored mail 
into mailbox 'INBOX'
Feb 18 09:37:06 lda(info at domain.com): Info: sieve: msgid=: stored mail 
into mailbox 'Trash'
Feb 18 10:29:37 lda(cracigna at domain.com): Info: sieve: msgid=: stored 
mail into mailbox 'Trash'
Feb 18 11:38:00 lda(info at domain.com): Info: sieve: msgid=: stored mail 
into mailbox 'Trash'
Feb 18 12:09:22 lda(info at domain.com): Info: sieve: msgid=: stored mail 
into mailbox 'Trash'
Feb 18 16:10:52 lda(info at domain.com): Info: sieve: msgid=: stored mail 
into mailbox 'Trash'
Feb 19 14:18:19 lda(cracigna at domain.com): Info: sieve: msgid=: stored 
mail into mailbox 'Trash'
Feb 19 14:24:21 lda(panizzon at 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 = </usr/local/dovecot-2.1/etc/ssl/wildcard.pem
ssl_key = </usr/local/dovecot-2.1/etc/ssl/wildcard.key
submission_host = localhost
userdb {
   args = quota_template=quota_rule=*:backend=%q
   driver = vpopmail
}
protocol lda {
   log_path = /var/log/dovecot/lda.log
   mail_plugins = quota acl zlib expire sieve
}
protocol imap {
   imap_client_workarounds = delay-newmail tb-extra-mailbox-sep 
tb-lsub-flags
   imap_idle_notify_interval = 29 mins
   mail_max_userip_connections = 18
   mail_plugins = quota acl zlib expire imap_quota imap_acl
}
protocol sieve {
   mail_max_userip_connections = 10
}
protocol pop3 {
   mail_max_userip_connections = 5
   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}

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




More information about the dovecot mailing list