<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi All,<br>
<br>
We recently moved from RHEL6 to RHEL7 and updated dovecot from
dovecot-2.2.10-1_14.el6.x86_64 to dovecot-2.2.36-8.el7.x86_64. We
use NFS for storing the mail, and 5 servers running at the same
time.<br>
Before updating dovecot we stopped the service and deleted all
dovecot.index* files<br>
Now we're experiencing some problems. For example, when deleting
an email it is note deleted and appears again duplicated. These
are the logs:<br>
<br>
Feb 28 08:50:42 server5 dovecot: imap(user@domain): Error: Index
path/Maildir/dovecot.index: Lost log for seq=5 offset=228: Missing
middle file seq=5 (between 5..4294967295, we have seqs 4): Log is
locked - newer log can't exist (initial_mapped=1, reason=Index
mapped)<br>
Feb 28 08:50:42 server5 dovecot: imap(user@domain): Warning:
fscking index file path/Maildir/dovecot.index<br>
Feb 28 08:50:42 server5 dovecot: imap(user@domain): Error: Failed
to map transaction log path/Maildir/dovecot.index.log at
sync_offset=10328 after locking: pread() failed: Stale file handle<br>
Feb 28 08:50:42 server5 dovecot: imap(user@domain): Error: Index
path/Maildir/dovecot.index: Lost log for seq=5 offset=228: Missing
middle file seq=5 (between 5..4294967295, we have seqs 4):
Requested newer log than exists - still after NFS flush: Log inode
is unchanged (initial_mapped=1, reason=Index mapped)<br>
Feb 28 08:50:45 server5 dovecot: imap(user@domain): Error: Failed
to map transaction log path/Maildir/dovecot.index.log at
sync_offset=10328 after locking: pread() failed: Stale file handle<br>
Feb 28 08:50:45 server5 dovecot: imap(user@domain): Error: Failed
to map view for path/Maildir/dovecot.index: Missing middle file
seq=5 (between 5..5, we have seqs 4): Requested newer log than
exists - still after NFS flush: Log inode is unchanged<br>
<br>
Usually restarting the email client solves the problem for a
while. We've tried deleting the indexes but it happens again some
time later. <br>
<br>
This is dovecot config:<br>
<br>
dovecot -n<br>
# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf<br>
# Pigeonhole version 0.4.24 (124e06aa)<br>
# OS: Linux 3.10.0-1160.6.1.el7.x86_64 x86_64 Red Hat Enterprise
Linux Server release 7.9 (Maipo)<br>
# Hostname: server<br>
auth_cache_negative_ttl = 5 mins<br>
auth_cache_size = 500 M<br>
auth_cache_ttl = 5 mins<br>
auth_failure_delay = 5 secs<br>
default_vsz_limit = 1 G<br>
disable_plaintext_auth = no<br>
hostname = server<br>
imap_logout_format = in(bytes read)=%i out(bytes sent)=%o<br>
listen = *<br>
lock_method = dotlock<br>
mail_fsync = always<br>
mail_location = maildir:%h/Maildir<br>
mail_nfs_index = yes<br>
mail_nfs_storage = yes<br>
mail_plugins = " quota mail_log notify"<br>
managesieve_notify_capability = mailto<br>
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 index ihave duplicate mime foreverypart
extracttext imapflags notify<br>
mbox_write_locks = fcntl<br>
mmap_disable = yes<br>
namespace {<br>
location = maildir:%h/Maildir/_backup<br>
prefix = _backup.<br>
separator = .<br>
type = private<br>
}<br>
namespace inbox {<br>
inbox = yes<br>
location =<br>
mailbox Drafts {<br>
special_use = \Drafts<br>
}<br>
mailbox Junk {<br>
special_use = \Junk<br>
}<br>
mailbox Sent {<br>
special_use = \Sent<br>
}<br>
mailbox "Sent Messages" {<br>
special_use = \Sent<br>
}<br>
mailbox Trash {<br>
special_use = \Trash<br>
}<br>
prefix =<br>
}<br>
passdb {<br>
args = /etc/dovecot/dovecot-ldap.conf.ext<br>
driver = ldap<br>
}<br>
plugin {<br>
mail_log_events = delete undelete expunge mailbox_delete
mailbox_rename mailbox_create save<br>
mail_log_fields = uid box msgid from subject<br>
quota = maildir:_backup:ns=<br>
quota_exceeded_message = El espacio asignado para el
almacenamiento del correo del destinatario ha superado su
capacidad total. Por ello, el correo que usted intenta enviar no
se puede entregar al destinatario.<br>
quota_warning = storage=70%% quota-warning 70 %u<br>
quota_warning1 = storage=90%% quota-warning 90 %u<br>
quota_warning2 = storage=95%% quota-warning 95 %u<br>
quota_warning3 = storage=99%% quota-warning 99 %u<br>
sieve = ~/.dovecot.sieve<br>
sieve_dir = ~/Maildir/sieve<br>
sieve_extensions = +notify +imapflags<br>
}<br>
postmaster_address = postmaster@domain<br>
protocols = imap pop3 sieve<br>
service auth {<br>
unix_listener auth-userdb {<br>
group = vmail<br>
mode = 0666<br>
user = vmail<br>
}<br>
}<br>
service imap-login {<br>
inet_listener imap {<br>
port = 143<br>
}<br>
process_min_avail = 20<br>
}<br>
service imap {<br>
process_limit = 2048<br>
}<br>
service managesieve-login {<br>
inet_listener sieve {<br>
port = 4190<br>
}<br>
inet_listener sieve_deprecated {<br>
port = 2000<br>
}<br>
process_min_avail = 20<br>
}<br>
service pop3-login {<br>
inet_listener pop3 {<br>
port = 110<br>
}<br>
process_min_avail = 20<br>
}<br>
service pop3 {<br>
process_limit = 2048<br>
}<br>
service quota-warning {<br>
executable = script
/etc/dovecot/scripts_notification_quota/quota-warning.sh<br>
unix_listener quota-warning {<br>
user = vmail<br>
}<br>
user = vmail<br>
}<br>
ssl = no<br>
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem<br>
ssl_key = # hidden, use -P to show it<br>
submission_host = smtp.domain:25<br>
syslog_facility = local1<br>
userdb {<br>
args = /etc/dovecot/dovecot-ldap.conf.ext<br>
driver = ldap<br>
}<br>
protocol lda {<br>
mail_plugins = " quota mail_log notify sieve"<br>
}<br>
protocol imap {<br>
mail_max_userip_connections = 10000<br>
mail_plugins = " quota mail_log notify imap_quota"<br>
}<br>
protocol pop3 {<br>
mail_max_userip_connections = 10<br>
}<br>
<br>
Can you please help me?<br>
Thanks in advance and best regards<br>
</p>
<div class="moz-signature">-- <br>
<p class="3DMsoNormal"
style="3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=:auto;line-height:12.0pt'"><b><span
style="3D'font-size:10.5pt;font-family:"Arial"
narrow",sans-serif;mso-fareast-font-family:"times="" new=""
roman";mso-bidi-font-family:"times=""
roman";color:#4d4d4d;="" mso-fareast-language:es'="">Gonzalo
Palacios Goicolea</span></b><span
style="3D'font-size:10.5pt;font-family:"Arial"
narrow",sans-serif;mso-fareast-font-family:="" "times=""
new="" roman";mso-bidi-font-family:"times=""
roman";color:#4d4d4d;="" mso-fareast-language:es'=""><br>
U.T de Infraestructura de Equipos Centrales<br>
</span><i><span
style="3D'font-size:10.5pt;font-family:"Arial"
narrow",sans-serif;="" mso-fareast-font-family:"times=""
new="" roman";mso-bidi-font-family:"times="" roman";=""
color:#00abe4;mso-fareast-language:es'="">Tecnologías de la
Información</span></i><span
style="3D'font-size:10.5pt;font-family:"Arial"
narrow",sans-serif;mso-fareast-font-family:="" "times=""
new="" roman";mso-bidi-font-family:"times=""
roman";color:#00abe4;="" mso-fareast-language:es'=""><br>
</span><span style="3D'font-size:10.5pt;font-family:"Arial"
narrow",sans-serif;="" mso-fareast-font-family:"times=""
new="" roman";mso-bidi-font-family:"times="" roman";=""
color:#4d4d4d;mso-fareast-language:es'="">Universidad Autónoma
de Madrid • Campus
de <span class="3DSpellE">Cantoblanco</span><br>
<br>
<a href="3D"http://www.uam.es/"" target="3Dblank"><span
style="3D'color:#95C11F'"></span></a> </span>
</p>
<span style="3D'font-size:10.5pt;font-family:"Arial"
narrow",sans-serif;="" mso-fareast-font-family:"times="" new=""
roman";mso-bidi-font-family:"times="" roman";=""
color:#4d4d4d;mso-fareast-language:es'=""></span><span
style="3D'font-size:" 12.0pt;font-family:"times="" new=""
roman",serif;mso-fareast-font-family:"times="" roman";=""
mso-fareast-language:es'=""><o:p></o:p></span>
<p class="3DMsoListParagraph"
style="3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:"
auto;mso-add-space:auto;text-indent:-18.0pt;line-height:22.5pt;mso-list:l0=""
level1="" lfo1;="" tab-stops:list="" 36.0pt'=""><span
style="3D'font:7.0pt" "times="" new="" roman"'=""> </span><span
style="3D'font-size:9.0pt;font-family:"Arial"
narrow",sans-serif;mso-fareast-font-family:="" "times=""
new="" roman";mso-bidi-font-family:"times=""
roman";color:#95c11f;mso-fareast-language:es'="">Antes de
imprimir este correo piense si es necesario.Cuidemos el
medioambiente. </span>
</p>
</div>
</body>
</html>