Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Troubles with Dovecot IMAP

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
MadEgg
l33t
l33t
User avatar
Posts: 678
Joined: Thu Jun 06, 2002 7:46 pm
Location: Netherlands

Troubles with Dovecot IMAP

  • Quote

Post by MadEgg » Fri Nov 02, 2007 8:47 pm

I have got some troubles with Dovecot IMAP server. I'm running Gentoo Linux on a server with fetchmail to fetch all my mail from POP3 servers and put it in my IMAP mailbox on my own server.

This has always worked quite nicely, and in fact, it still does. For new mail.

Each january 1st I create a new folder in my INBOX.Old folder, to archive the mail from the past year. Today I tried opening a mail from december 2006, but it doesn't work. I'm using Thunderbird btw, but it doesn't work using squirremail either. What happens is this: it keeps saying 'Connecting to 192.168.0.15', 'Loading folder', 'Loading message', and then starts all over again. Squirrelmail says the IMAP server unexpectedly terminated the connection.

The /var/log/mail/current containts hundreds of messages like this afterwards:

Code: Select all

Nov  2 21:42:56 [dovecot] imap-login: Login: user=<*****>, method=PLAIN, rip=192.168.0.10, lip=192.168.0.15, TLS
Nov  2 21:42:56 [dovecot] IMAP(****): FETCH for mailbox INBOX.Old.2006 UID 2280 got too little data: 4275 vs 4803
Nov  2 21:42:56 [dovecot] IMAP(****): Disconnected: Disconnected
I grepped the corresponding mail folder(~/.maildir/INBOX.Old.2006/cur/) for the subject of the message and it found it. Message file seems ok, contents are allright. Odd.

To make matters worse: about half the messages of 2006 do seem to load. But they are not the same messages as I click on. If I click on message from 'AAAA' with subject 'XXXX', I get to see a message from 'BBBBB' with subject 'YYYYY'. If I grep on the subject of the message I get to see, that file also exists and seems allright. The same thing happens for messages from 2005, 2004 etc.

So apparently all my messages are still there, but somehow I can't seem to open them using IMAP. Any clues on how to fix this? Things I can try? I really need my old mails...

BTW: is size of any importance to dovecot? I've got thousands of e-mails, my total .maildir is 871 MiB.
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Top
MadEgg
l33t
l33t
User avatar
Posts: 678
Joined: Thu Jun 06, 2002 7:46 pm
Location: Netherlands

  • Quote

Post by MadEgg » Sat Nov 03, 2007 12:05 pm

*kick*

BTW, I also tried the 'Regenerate Index' function in Thunderbird which reloads the index. This has fixed it for 2003 and 2005, but 2004 and 2006 still don't work properly...
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Top
MadEgg
l33t
l33t
User avatar
Posts: 678
Joined: Thu Jun 06, 2002 7:46 pm
Location: Netherlands

  • Quote

Post by MadEgg » Sun Nov 04, 2007 10:02 am

Help?
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Sun Nov 04, 2007 12:20 pm

maybe the index or cache files are corrupt; try to regenerate them. (at dovecot level, not thunderbird)
see http://wiki.dovecot.org/IndexFiles

*edit* looks like a cache problem, according to http://www.dovecot.org/list/dovecot/200 ... 24587.html
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
MadEgg
l33t
l33t
User avatar
Posts: 678
Joined: Thu Jun 06, 2002 7:46 pm
Location: Netherlands

  • Quote

Post by MadEgg » Sun Nov 04, 2007 4:25 pm

Indeed it helped to remove dovecot.index.cache from the mail directories. Thank you very much!
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Top
MadEgg
l33t
l33t
User avatar
Posts: 678
Joined: Thu Jun 06, 2002 7:46 pm
Location: Netherlands

  • Quote

Post by MadEgg » Tue May 27, 2008 8:49 am

Any idea what's causing this? Indeed removing the cache helps, but now, a couple of months later, the same problem reappeared. I fixed it in the same way but it is rather annoying...
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy