I have a big problem with our cluster, if i read my mail with POP3 client (and check the option, keep a copy on server), every time I read my mail, my client retrive ALL messages an the mailbox !!! I test this with: - Apple Mail 1.0 + 2.0 - M$ Outlook 2000 + 2003 - Thunderbird We use: - Dovecot RC1 - Postfix on Debian Sarge (stable) Can you know this bug ? Or have a workaround ? This function is really important for our customer as we offer a backup solution for her mails. Thanks -- Net4all S.A. Dominique Feyer Administrateur Syst?me Ch. de la Colline 5bis CH-1007 Lausanne dfeyer at net4all.ch
Hi, Dominique Feyer wrote:> I have a big problem with our cluster, if i read my mail with POP3 > client (and check the option, keep a copy on server), every time I read > my mail, my client retrive ALL messages an the mailbox !!! > > I test this with: > > - Apple Mail 1.0 + 2.0 > - M$ Outlook 2000 + 2003 > - Thunderbird > > We use: > - Dovecot RC1 > - Postfix on Debian Sarge (stable) > > Can you know this bug ? Or have a workaround ? > > This function is really important for our customer as we offer a backup > solution for her mails. > > Thanks >It's probably just a configuration issue. If you upgraded from dovecot 0.99 or maybe migrated from another IMAP/POP3 server you should set correctly the "pop3_uidl_format" parameter. I upgraded from 0.99 to 1.0.rc2 and below is my "pop3_uidl_format": # POP3 UIDL format to use. You can use following variables: # # %v - Mailbox UIDVALIDITY # %u - Mail UID # %m - MD5 sum of the mailbox headers in hex (mbox only) # %f - filename (maildir only) # # If you want UIDL compatibility with other POP3 servers, use: # UW's ipop3d : %08Xv%08Xu # Courier version 0 : %f # Courier version 1 : %u # Courier version 2 : %v-%u # Cyrus (<= 2.1.3) : %u # Cyrus (>= 2.1.4) : %v.%u # Older Dovecots : %v.%u # # Note that Outlook 2003 seems to have problems with %v.%u format which was # Dovecot's default, so if you're building a new server it would be a good # idea to change this. %08Xu%08Xv should be pretty fail-safe. # # NOTE: Nowadays this is required to be set explicitly, since the old # default was bad but it couldn't be changed without breaking existing # installations. %08Xu%08Xv will be the new default, so use it for new # installations. # #pop3_uidl_format pop3_uidl_format = %v.%u This works fine even with Outlook 2000/2003. Clients (Thunderbird, OE, Outlook 2000/2003) download just new mails. Regards, Dumitru
We use Postfix + Dovecot LDA to deliver the mail localy Le lundi 17 juillet 2006 ? 17:33 +0200, Dominique Feyer a ?crit : -- Net4all S.A. Dominique Feyer Administrateur Syst?me Ch. de la Colline 5bis CH-1007 Lausanne dfeyer at net4all.ch
I did some testing. On my servers I use maildrop as LDA. It does not update dovecot-uidlist on mail delivery (evidently, because it is a file created by dovecot). I tested with dovecot deliver LDA and it indeed updates dovecot-uidlist on mail delivery. Next step was to remove dovecot-uidlist and try to download mail with POP3. Result: Only new messages was downloaded. dovecot-uidlist was recreated by dovecot. Then I deleted only dovecot indexes, without touching dovecot-uidlist. Result: Only new messages was downloaded. dovecot indexes were recreated by dovecot. Then I deleted dovecot-uidlist and dovecot indexes. Result: All existing messages (new and seen) was downloaded. dovecot indexes and dovecot-uidlist were recreated by dovecot. So, maybe somehow dovecot cannot find indexes and dovecot-uidlist file in user maildir and because of this all mails are downloaded every time. What logs are saying? Regards, Dumitru Dominique Feyer wrote:> On our servers, the line is added to the file dovecot-uidlist just when > the server receive the mail (without POP3 download) > > I have this before sending a mail: > > data:/exports/mail/jamesdo.com/mails/test# cat dovecot-uidlist > 1 0 2 > 1 1153144027.P23481Q0M210736.mail2.clm.net4all.ch > > And after sending: > data:/exports/mail/jamesdo.com/mails/test# cat dovecot-uidlist > 1 0 3 > 1 1153144027.P23481Q0M210736.mail2.clm.net4all.ch > 2 1153149315.P24388Q0M539227.mail1.clm.net4all.ch > > If i check with find: > data:/exports/mail/jamesdo.com/mails/test# find . > . > ./cur > ./new > ./new/1153149315.P24388Q0M539227.mail1.clm.net4all.ch > ./tmp > > The 3th line on my dovecot-uidlist is the new mail. > > So are you sur that the file dovecot-uidlist is updated when clien check > with POP ? > > Thanks > > > > Le lundi 17 juillet 2006 ? 17:01 +0300, Dumitru Negara a ?crit : >> stat