[Dovecot] UIDL question
Hi all,
I'm migrating a Postfix + Dovecot 1.0 server with mboxes to Qmail + Dovecot 1.4 with Maildirs and encounter the following the problem.
Using perfect-maildir.pl from: http://perfectmaildir.home-dn.net/ i can relatively succesfully convert the mbox to a Maildir. The problem, however is that clients with "leave mail on server" set to on retrieve all email a 2nd time.
I understand this must be because the email client "sees" a different UIDL and downloads the message again. Looking at the 1.0 configuration, i do not see a "pop3_uidl_format" setting. So was wondering how the UIDL is generated.
Is anybody aware of a conversion script that properly maintains the UIDL? Or am I misisng something else here?
Sincerely,
- Wouter van der Schagt
Wouter van der Schagt wrote:
Hi all,
I'm migrating a Postfix + Dovecot 1.0 server with mboxes to Qmail + Dovecot 1.4 with Maildirs and encounter the following the problem.
Using perfect-maildir.pl from: http://perfectmaildir.home-dn.net/ i can relatively succesfully convert the mbox to a Maildir. The problem, however is that clients with "leave mail on server" set to on retrieve all email a 2nd time.
I understand this must be because the email client "sees" a different UIDL and downloads the message again. Looking at the 1.0 configuration, i do not see a "pop3_uidl_format" setting. So was wondering how the UIDL is generated.
Is anybody aware of a conversion script that properly maintains the UIDL? Or am I misisng something else here?
Hi,
Please look at http://wiki.dovecot.org/Migration/MailFormat
There's a modified version of mb2md.pl there that will keep the existing UIDL info.
As for "pop3_uidl_format", I seem to recall the source needing modification to change the format in earlier versions of Dovecot, until it was added as a configuration option.
OT: I'm curious as to why you're migrating from Postfix to Qmail.
Regards,
Jase.
OT: I'm curious as to why you're migrating from Postfix to Qmail.
Thanks I will have a look.
To answer your question, we've several high volume production servers running Qmail and one small server running Postfix. We are migrating not because Postfix doesn't work well, but because we want to maintain one system and the ratio of domains on our qmail servers (heavily patched) is thousands to one. And secondly (not important), our inhouse expertise is limited to qmail. (not postfix).
Sincerely,
- Wouter van der Schagt
Please look at http://wiki.dovecot.org/Migration/MailFormat
There's a modified version of mb2md.pl there that will keep the existing UIDL info.
I look at it, it does indeed generate the ~/Maildir/dovecot-uidlist file with the proper values, however my email client still retrieves a 2nd copy in this test scenario
- Download emails from postfix server
- Migrate to other server
- Download emails from new server (should not happen, due to same uidl), but still does
How can i further troubleshoot what the uidl problem is?
Sincerely,
- Wouter van der Schagt
On Nov 28, 2008, at 4:54 PM, Wouter van der Schagt wrote:
Please look at http://wiki.dovecot.org/Migration/MailFormat
There's a modified version of mb2md.pl there that will keep the
existing UIDL info.I look at it, it does indeed generate the ~/Maildir/dovecot-uidlist
file with the proper values, however my email client still retrieves a 2nd
copy in this test scenario
- Download emails from postfix server
- Migrate to other server
- Download emails from new server (should not happen, due to same
uidl), but still doesHow can i further troubleshoot what the uidl problem is?
Look at the old UIDLs and look at the new UIDLs. How are they different?
My guess is you'll need to set pop3_uidl_format = %v.%u
Thank you for the reply, I understand the problem now, however changing the pop3_uidl_format on the target server is not an option since it is a high volume production server. It is currently set to %f because of a previous migration from qmail-pop3d.
I don't suppose the pop3_uidl_format setting can be configured on a per popbox basis?
Sincerely,
- Wouter van der Schagt
On Nov 28, 2008, at 5:18 PM, Wouter van der Schagt wrote:
Thank you for the reply, I understand the problem now, however
changing the pop3_uidl_format on the target server is not an option
since it is a high volume production server. It is currently set to
%f because of a previous migration from qmail-pop3d.I don't suppose the pop3_uidl_format setting can be configured on a
per popbox basis?
With v1.1 you can add POP3 UIDLs fo dovecot-uidlist. For example if
you have mailbox with UIDVALIDITY 1234 and then entries:
123 :file1 124 :file2
You can add their %v.%u UIDL:
123 P1234.123 :file1 124 P1234.124 :file2
i.e. P followed by the UIDL.
With v1.1 you can add POP3 UIDLs fo dovecot-uidlist. For example if you have mailbox with UIDVALIDITY 1234 and then entries: You can add their %v.%u UIDL: 123 P1234.123 :file1 124 P1234.124 :file2
i.e. P followed by the UIDL.
That sounds good, however, when i have the following dovecot-uidlist file...
1 1146473021 25449 25360 P1146473021.25360 :1227888318.000000.mbox,S=37351:2, 25361 P1146473021.25361 :1227888318.000001.mbox,S=35833:2, 25362 P1146473021.25362 :1227888318.000002.mbox,S=31107:2,
And execute a USER, PASS and UIDL command, i'm getting the %f returned instead of the %v.%u as specified in the dovecot-uidlist file. I'm using the 1.1.4 version of Dovecot. Did i do something wrong? Also the file is updated after i close my telnet session to sometihng that looks like:
3 V1146473021 N25627 1146473021 25449 25538 :1227888318.000000.mbox,S=37351:2, 25539 :1227888318.000001.mbox,S=35833:2, 25540 :1227888318.000002.mbox,S=31107:2,
IE: the header is different, if the first is the version number, where can i find more information on the syntax to use in v3?
Sincerely,
- Wouter van der Schagt
On Sat, 2008-11-29 at 00:15 +0800, Wouter van der Schagt wrote:
With v1.1 you can add POP3 UIDLs fo dovecot-uidlist. For example if you have mailbox with UIDVALIDITY 1234 and then entries: You can add their %v.%u UIDL: 123 P1234.123 :file1 124 P1234.124 :file2
i.e. P followed by the UIDL.
That sounds good, however, when i have the following dovecot-uidlist file...
1 1146473021 25449 25360 P1146473021.25360 :1227888318.000000.mbox,S=37351:2,
This mixes v3 syntax with v1 syntax, won't work.
3 V1146473021 N25627 1146473021 25449
This is more like what the header should look like, except for the extra two fields.
IE: the header is different, if the first is the version number, where can i find more information on the syntax to use in v3?
I'm not sure if I've documented it anywhere. Anyway, the header is simple:
3 Vuidvalidity Nnext-uid
Where uidvalidity and next-uid are exactly the same as in v1 (1 uidvalidity next-uid). The records are as you tried to use them originally.
participants (3)
-
Jase Thew
-
Timo Sirainen
-
Wouter van der Schagt