Hi to all, Today i have manually copied at least 250 mail from a mailbox to another and i have encountered some problems with dovecot. When finished to download all the messages, via pop3, at the next check mail dovecot give me that error: dovecot: Jan 15 10:59:55 Info: POP3(michele at domain.net): Mailbox init failed top=0/0, retr=0/0, del=0/29, size=932800 Then, the messages from the pop server was deleted, to the client an error was given but no mail downloaded. I have resolved that deleting all the dovecot files into the mailbox, so: dovecot-uidlist dovecot.index dovecot.index.cache dovecot.index.log Then, all restarted to works normally, but...the most bad thing is... the lost mails! I use OpenSuSE 11 with dovecot11-1.1.3-5.1 with postfix and virtual users on mysql. Here is my dovecot -n: # 1.1.3: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot-err.log info_log_path: /var/log/dovecot-inf.log protocols: imap imaps pop3 pop3s disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login first_valid_uid: 51 last_valid_uid: 51 first_valid_gid: 51 last_valid_gid: 51 mail_location: maildir:/var/mail/virtual/%d/%u mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 imap_client_workarounds(default): outlook-idle imap_client_workarounds(imap): outlook-idle imap_client_workarounds(pop3): pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %Mf auth default: passdb: driver: sql args: /etc/dovecot/dovecot-mysql.conf userdb: driver: passwd userdb: driver: sql args: /etc/dovecot/dovecot-mysql.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 plugin: quota: maildir quota: maildir:user quota quota_warning: storage=80%% /usr/bin/quota_warning.sh 80 quota_warning2: storage=90%% /usr/bin/quota_warning.sh 90 quota_warning3: storage=99%% /usr/bin/quota_warning.sh 90 Anyone have some similar experience to mine? Cordially, Claudio Prono. -- ------------ Claudio Prono Systems Development @ PSS Srl, Divisione Implementazione Sistemi Via San Bernardino, 17 - 10137 Torino (TO) - IT Tel +39-011.32.72.100 Fax +39-011.32.46.497 PGP Fingerprint: 75C2 4049 E23D 2FBF A65F 40DB EA5C 11AC C2B0 3647 Disclaimer: http://atpss.net/disclaimer ------------
On Thu, 2009-01-15 at 11:08 +0100, Claudio Prono wrote:> Today i have manually copied at least 250 mail from a mailbox to another > and i have encountered some problems with dovecot. When finished to > download all the messages, via pop3, at the next check mail dovecot give > me that error:Since POP3 supports only downloading mails, I guess this copying operation was the same as if you simply had downloaded the mails.> dovecot: Jan 15 10:59:55 Info: POP3(michele at domain.net): Mailbox init > failed top=0/0, retr=0/0, del=0/29, size=932800Do you see another error message? This isn't actually error (see the Info: line there). The error message should be written either before that line, or perhaps in another log file entirely. See http://wiki.dovecot.org/Logging> Then, the messages from the pop server was deleted,Probably the messages were deleted by the previous download? This error message doesn't cause messages to be deleted.> I have resolved that deleting all the dovecot files into the mailbox, so: > > dovecot-uidlist > dovecot.index > dovecot.index.cache > dovecot.index.logDeleting only the dovecot.index* files would probably have been enough.> Then, all restarted to works normally, but...the most bad thing is... > the lost mails!You mean that all the 250 mails weren't copied, or they were all copied but also deleted? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090115/66e7ee28/attachment-0002.bin>
Timo Sirainen ha scritto:> On Thu, 2009-01-15 at 11:08 +0100, Claudio Prono wrote: > >> Today i have manually copied at least 250 mail from a mailbox to another >> and i have encountered some problems with dovecot. When finished to >> download all the messages, via pop3, at the next check mail dovecot give >> me that error: >> > > Since POP3 supports only downloading mails, I guess this copying > operation was the same as if you simply had downloaded the mails. > >I think so also, before what is happened...>> dovecot: Jan 15 10:59:55 Info: POP3(michele at domain.net): Mailbox init >> failed top=0/0, retr=0/0, del=0/29, size=932800 >> > > Do you see another error message? This isn't actually error (see the > Info: line there). The error message should be written either before > that line, or perhaps in another log file entirely. See > http://wiki.dovecot.org/Logging > >I have looked at all the logging file of Dovecot, but no other error found...>> Then, the messages from the pop server was deleted, >> > > Probably the messages were deleted by the previous download? This error > message doesn't cause messages to be deleted. > >No, sorry i have explained bad what is happened. The Client have downloaded all the mail, without problems. Then, i have send to him a mail for testing purpouse, and the error is happened. The client have got an error like "can't do STAT command to mail server, connection lost", the mail i have sended to him is deleted, and no mail was recieved from the Client.>> I have resolved that deleting all the dovecot files into the mailbox, so: >> >> dovecot-uidlist >> dovecot.index >> dovecot.index.cache >> dovecot.index.log >> > > Deleting only the dovecot.index* files would probably have been enough. > >Yes can be.>> Then, all restarted to works normally, but...the most bad thing is... >> the lost mails! >> > > You mean that all the 250 mails weren't copied, or they were all copied > but also deleted? > >See my previous explaination.> ------------------------------------------------------------------------ > > !DSPAM:70,496f59d3137471420520662!Thank u, Claudio Prono. -- ------------ Claudio Prono Systems Development @ PSS Srl, Divisione Implementazione Sistemi Via San Bernardino, 17 - 10137 Torino (TO) - IT Tel +39-011.32.72.100 Fax +39-011.32.46.497 PGP Fingerprint: 75C2 4049 E23D 2FBF A65F 40DB EA5C 11AC C2B0 3647 Disclaimer: http://atpss.net/disclaimer ------------