How to skip errors on doveadm backup for migration ?
Hi there, I have to migrate data out of a very old (debian 4) and buggy cyrus mailserver. About 40 Users with 20 Messages each. Doveadm backup works quite well and gives me most of the mails. About every 100.000 Mail cannot be exported by cyrus. I do not want to bother about these errors. Maybe it is filesystem, maybe it is memory leak, or cyrus bug or whatever. My problem is that doveadm backup exits with an error if it cannot read a mail. Is there some way or option to make doveadm backup just skip the errors and continue with the next message ? I want to use doveadm sync because it preserves the uids of the mails. Imapsync works great but does not prserve uids. cyrus2dovecot is not an option because it does not work incremental and conversion would take far too long. Any ideas what I can do ? Thanks Christoph
Re: How to skip errors on doveadm backup for migration ?
Hi Timo, thanks for the patch. I applied it, compiled doveadm and tried the new binary but it still baily out with this message: dsync(u...@domain.de): Error: Exporting mailbox INBOX.Sent failed: Can't lookup saved-date for UID=515: Internal error occurred. Refer to server log for more information. [2016-01-10 17:02:08] Do you have any idea how I can skip these errors ? Thanks Christoph On Fri, Jan 08, 2016 at 05:39:51PM +0200, Timo Sirainen wrote: > On 08 Jan 2016, at 12:50, Christoph Adomeit > wrote: > > > > Hi there, > > > > I have to migrate data out of a very old (debian 4) and buggy cyrus > > mailserver. > > About 40 Users with 20 Messages each. > > > > Doveadm backup works quite well and gives me most of the mails. About every > > 100.000 Mail > > cannot be exported by cyrus. I do not want to bother about these errors. > > Maybe it is filesystem, maybe it is memory leak, or cyrus bug or whatever. > > > > My problem is that doveadm backup exits with an error if it cannot read a > > mail. > > What does Cyrus reply? Is it a NO reply to FETCH command? > > > Is there some way or option to make doveadm backup just skip the errors and > > continue with the next message ? > > Not currently. You could try if the attached patch helps. It should write the > mail as empty. > > >
Re: How to skip errors on doveadm backup for migration ?
Hi Farokh, yes, imapsync is great. I tested it myself and it fetched all the mails. Only Problem: Imapsync will loose the Email-UIDs so all Mail will be downloaded again by the clients after Server switch. dsync is able to presere the Uids. Thanks Christoph On Sun, Jan 10, 2016 at 05:42:53PM -0500, Farokh Irani wrote: > If both servers are using IMAP, maybe imapsync > (http://imapsync.lamiral.info) would be an easier way to go... > > Farokh > > MCF Software...simply dependably engineered > For all your computer and networking needs including hosting solutions > for every need. > Phone: 845-735-0210 > Cell: 914-262-1594 > > > > >Christoph Adomeit <mailto:christoph.adom...@gatworks.de> > >January 8, 2016 at 05:50 > >Hi there, > > > >I have to migrate data out of a very old (debian 4) and buggy cyrus > >mailserver. > >About 40 Users with 20 Messages each. > > > >Doveadm backup works quite well and gives me most of the mails. About > >every 100.000 Mail > >cannot be exported by cyrus. I do not want to bother about these errors. > >Maybe it is filesystem, maybe it is memory leak, or cyrus bug or whatever. > > > >My problem is that doveadm backup exits with an error if it cannot read a > >mail. > > > > > > > >Is there some way or option to make doveadm backup just skip the errors > >and continue with the next message ? > > > >I want to use doveadm sync because it preserves the uids of the mails. > > > >Imapsync works great but does not prserve uids. > > > >cyrus2dovecot is not an option because it does not work incremental and > >conversion would take far too long. > > > >Any ideas what I can do ? > > > >Thanks > >Christoph -- Christoph Adomeit GATWORKS GmbH Reststrauch 191 41199 Moenchengladbach Sitz: Moenchengladbach Amtsgericht Moenchengladbach, HRB 6303 Geschaeftsfuehrer: Christoph Adomeit, Hans Wilhelm Terstappen christoph.adom...@gatworks.de Internetloesungen vom Feinsten Fon. +49 2166 9149-32 Fax. +49 2166 9149-10
dsync: INBOX Can't be deleted
Hi, I am Migrating an old cyrus mailserver to dovecot. in the old cyrus Mailserver all User Mailboxes are sub-mailboxes of their INBOX. I have to preserve that structure. During Migration with dsync I get these Errors: Error: Mailbox INBOX sync: mailbox_delete failed: INBOX can't be deleted Is there a way to work around these Errors ? Thanks Christoph
Deliver same E-Mail in same Mailbox only once ?
Hi there, I have a customer with domain a@tld and domain b@tld. b.tld is an alias for a.tld The Server is using virtual users based on mysql, dovecot for delivery and Maildir for Mail-Storage. If someone writes an e-mail to a.tld with a cc: to b.tld the customer receives the E-Mail twice. Is there a way to deliver the same Mail in the same Mailbox only once ? -- Christoph Adomeit GATWORKS GmbH Reststrauch 191 41199 Moenchengladbach Sitz: Moenchengladbach Amtsgericht Moenchengladbach, HRB 6303 Geschaeftsfuehrer: Christoph Adomeit, Hans Wilhelm Terstappen christoph.adom...@gatworks.de Internetloesungen vom Feinsten Fon. +49 2166 9149-32 Fax. +49 2166 9149-10