Hello, I had an Inbox with 975,604 emails on ext3 filesystem. I keept getting dropped on the comand "copy 1:2000 inbox2", the syslog gave me an error message indicating "out of memory" problems. This despite the fact that the server has 800MB of ram free. Anyways, I asked if I could manuanlly move the files at the filesystem level or if that would mess up dovecot (break the GUIDs etc). I was informed that dovecot does not use GUIDs and that I could go ahead and move the emails at the shell level. So I did that, now the /cur folder only has 40,000 emails, but when I connect to the account via telnet, I still get the following: telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK Dovecot ready. 110 login somelameuser somelamepass 110 OK Logged in. 111 select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 975604 EXISTS * 0 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 1188426666] UIDs valid * OK [UIDNEXT 979500] Predicted next UID 111 OK [READ-WRITE] Select completed. So even though there are only 40,000 emails in /cur, dovecot still thinks that there are 9756304 emails. How can I fix this? Thanks Marcelo
on 11/21/2007 5:06 AM Marcelo Iturbe spake the following:> Hello, > I had an Inbox with 975,604 emails on ext3 filesystem. > I keept getting dropped on the comand "copy 1:2000 inbox2", the syslog gave > me an error message indicating "out of memory" problems. > This despite the fact that the server has 800MB of ram free. > > Anyways, I asked if I could manuanlly move the files at the filesystem level > or if that would mess up dovecot (break the GUIDs etc). > I was informed that dovecot does not use GUIDs and that I could go ahead and > move the emails at the shell level. > > So I did that, now the /cur folder only has 40,000 emails, but when I > connect to the account via telnet, I still get the following: > > telnet localhost 143 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > * OK Dovecot ready. > 110 login somelameuser somelamepass > 110 OK Logged in. > 111 select inbox > * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) > * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags > permitted. > * 975604 EXISTS > * 0 RECENT > * OK [UNSEEN 1] First unseen. > * OK [UIDVALIDITY 1188426666] UIDs valid > * OK [UIDNEXT 979500] Predicted next UID > 111 OK [READ-WRITE] Select completed. > > So even though there are only 40,000 emails in /cur, dovecot still thinks > that there are 9756304 emails. > > How can I fix this? > > Thanks > Marcelo >Did you try and move/remove index files? -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
On Wed, 21 Nov 2007, Marcelo Iturbe wrote:> Hello, > I had an Inbox with 975,604 emails on ext3 filesystem. > I keept getting dropped on the comand "copy 1:2000 inbox2", the syslog gave > me an error message indicating "out of memory" problems. > This despite the fact that the server has 800MB of ram free.What version of dovecot? People tend to ask for "dovecot -n" output for a precise answer to that. -- Asheesh. -- There are no great men, only great challenges that ordinary men are forced by circumstances to meet. -- Admiral William Halsey
On Wed, 2007-11-21 at 10:06 -0300, Marcelo Iturbe wrote:> So I did that, now the /cur folder only has 40,000 emails, but when I > connect to the account via telnet, I still get the following:..> So even though there are only 40,000 emails in /cur, dovecot still thinks > that there are 9756304 emails.What filesystem do you use? Dovecot should have noticed that change automatically. Updating cur/ directory's mtime (touch cur) should cause a resync, if it wasn't updated for some reason. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071122/85546d43/attachment-0002.bin>
Hello, I am using ext3. I followed the advice or removing all the dovecot.* files in the account directory. That solved the problem. Cheers, Marcelo On 22/11/2007, Timo Sirainen <tss at iki.fi> wrote:> > On Wed, 2007-11-21 at 10:06 -0300, Marcelo Iturbe wrote: > > > So I did that, now the /cur folder only has 40,000 emails, but when I > > connect to the account via telnet, I still get the following: > .. > > So even though there are only 40,000 emails in /cur, dovecot still > thinks > > that there are 9756304 emails. > > What filesystem do you use? Dovecot should have noticed that change > automatically. Updating cur/ directory's mtime (touch cur) should cause > a resync, if it wasn't updated for some reason. > >