Mailing List Archive

tools for migration to dovecot
Dear dbmail users,

recently James Greig wrote about a patch he did for dbmail-export to
export the mailboxes into maildir++ format mbox's along with a
subscriptions file for dovecot 2.2.

https://github.com/pjstevns/dbmail/pull/43/commits/4a0909a02b220f3e16fbc66efa03d7554ecde3a5?diff=split&w=1

Sadly my server already runs dovecot version 2.3 so the patch won't work.

Are there any migration tools to export the mailboxes from dbmail to
dovecot 2.3.x

Do you have any recommendations?

thanks & greetings
Becki

_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
Re: tools for migration to dovecot [ In reply to ]
Am 07.04.20 um 14:23 schrieb Admin Beckspaced:
> Dear dbmail users,
>
> recently James Greig wrote about a patch he did for dbmail-export to
> export the mailboxes into maildir++ format mbox's along with a
> subscriptions file for dovecot 2.2.
>
> https://github.com/pjstevns/dbmail/pull/43/commits/4a0909a02b220f3e16fbc66efa03d7554ecde3a5?diff=split&w=1
>
>
> Sadly my server already runs dovecot version 2.3 so the patch won't work.
>
> Are there any migration tools to export the mailboxes from dbmail to
> dovecot 2.3.x
>
> Do you have any recommendations?

imapsync is your friend because it's agnostic, the follow up sync after
the initial one is fast and in the meantime oyu can test all accounts

finally one just gives the new server the same IP as the old and that's
it, no matter what software or operating system was on the old

been there done that 2009 from Apple EIMS to Fedora dbmail
_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
Re: tools for migration to dovecot [ In reply to ]
I used doveadm, something like this:

doveadm -Dv \
  -o imapc_host="from_server_address" \
  -o imapc_user="user_login" \
  -o imapc_password="XXXXXXXXX" \
  -o imapc_features=rfc822.size \
  -o mail_fsync=never \
  backup -T 300 -R -u new_user_login imapc:



07.04.20 15:23, Admin Beckspaced ?????:
> Dear dbmail users,
>
> recently James Greig wrote about a patch he did for dbmail-export to
> export the mailboxes into maildir++ format mbox's along with a
> subscriptions file for dovecot 2.2.
>
> https://github.com/pjstevns/dbmail/pull/43/commits/4a0909a02b220f3e16fbc66efa03d7554ecde3a5?diff=split&w=1
>
>
> Sadly my server already runs dovecot version 2.3 so the patch won't work.
>
> Are there any migration tools to export the mailboxes from dbmail to
> dovecot 2.3.x
>
> Do you have any recommendations?
>
> thanks & greetings
> Becki
>
> _______________________________________________
> DBmail mailing list
> DBmail@lists.nfg.nl
> https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
Re: tools for migration to dovecot [ In reply to ]
Hi Adam,

The main issue in my instance was that the output file for inbox expected in dovecot 2.2 with maildir++ and mbox is 'inbox' with sub folders prefixed with a dot whereas in 2.3 it's '.INBOX'. so a fairly straightforward change could fix that.

Imapsync is also a fair method really because the dbmail-export method won't retain inbox flags such as 'marked as read' which customers/users are likely to notice

Kind regards

James Greig

-----Original Message-----
From: DBmail <dbmail-bounces@lists.nfg.nl> On Behalf Of Admin Beckspaced
Sent: 07 April 2020 13:24
To: dbmail@lists.nfg.nl
Subject: [Dbmail] tools for migration to dovecot

Dear dbmail users,

recently James Greig wrote about a patch he did for dbmail-export to export the mailboxes into maildir++ format mbox's along with a subscriptions file for dovecot 2.2.

https://github.com/pjstevns/dbmail/pull/43/commits/4a0909a02b220f3e16fbc66efa03d7554ecde3a5?diff=split&w=1

Sadly my server already runs dovecot version 2.3 so the patch won't work.

Are there any migration tools to export the mailboxes from dbmail to dovecot 2.3.x

Do you have any recommendations?

thanks & greetings
Becki

_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
Re: tools for migration to dovecot [ In reply to ]
Apologies, Becki not adam - one of those days! I misread the email address 'admin' there :)

You could script imapsync to achieve this if you have all the logins, i.e.:-

imapsync --timeout=2 --host1 1.2.3.4 --user1 $userid --password1 '$passwd' --host2 5.6.7.8 --user2 $userid --password2 '$passwd'

if you do happen to use the export feature be sure to call an index on the dovecot side.

Kind regards

James Greig

-----Original Message-----
From: DBmail <dbmail-bounces@lists.nfg.nl> On Behalf Of James Greig
Sent: 07 April 2020 14:04
To: 'admin@beckspaced.com' <admin@beckspaced.com>; 'dbmail@lists.nfg.nl' <dbmail@lists.nfg.nl>
Subject: Re: [Dbmail] tools for migration to dovecot

Hi Adam,

The main issue in my instance was that the output file for inbox expected in dovecot 2.2 with maildir++ and mbox is 'inbox' with sub folders prefixed with a dot whereas in 2.3 it's '.INBOX'. so a fairly straightforward change could fix that.

Imapsync is also a fair method really because the dbmail-export method won't retain inbox flags such as 'marked as read' which customers/users are likely to notice

Kind regards

James Greig

-----Original Message-----
From: DBmail <dbmail-bounces@lists.nfg.nl> On Behalf Of Admin Beckspaced
Sent: 07 April 2020 13:24
To: dbmail@lists.nfg.nl
Subject: [Dbmail] tools for migration to dovecot

Dear dbmail users,

recently James Greig wrote about a patch he did for dbmail-export to export the mailboxes into maildir++ format mbox's along with a subscriptions file for dovecot 2.2.

https://github.com/pjstevns/dbmail/pull/43/commits/4a0909a02b220f3e16fbc66efa03d7554ecde3a5?diff=split&w=1

Sadly my server already runs dovecot version 2.3 so the patch won't work.

Are there any migration tools to export the mailboxes from dbmail to dovecot 2.3.x

Do you have any recommendations?

thanks & greetings
Becki

_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
Re: tools for migration to dovecot [ In reply to ]
Hello James,

Adam is perfectly fine with me as Becki is also only my nickname ;)

I think I will give imapsync a try. I Was just looking if i can specify
also the port numbers which I actually can according to the docs

https://github.com/imapsync/imapsync

As dovecot and dbmail are already running on the same machine but on
different port numbers

Will play around with it once I find some time and report back how it went.

Thanks for your time & help

Best regards
Becki

Am 07.04.2020 um 15:09 schrieb James Greig:
> Apologies, Becki not adam - one of those days! I misread the email address 'admin' there :)
>
> You could script imapsync to achieve this if you have all the logins, i.e.:-
>
> imapsync --timeout=2 --host1 1.2.3.4 --user1 $userid --password1 '$passwd' --host2 5.6.7.8 --user2 $userid --password2 '$passwd'
>
> if you do happen to use the export feature be sure to call an index on the dovecot side.
>
> Kind regards
>
> James Greig
>
> -----Original Message-----
> From: DBmail <dbmail-bounces@lists.nfg.nl> On Behalf Of James Greig
> Sent: 07 April 2020 14:04
> To: 'admin@beckspaced.com' <admin@beckspaced.com>; 'dbmail@lists.nfg.nl' <dbmail@lists.nfg.nl>
> Subject: Re: [Dbmail] tools for migration to dovecot
>
> Hi Adam,
>
> The main issue in my instance was that the output file for inbox expected in dovecot 2.2 with maildir++ and mbox is 'inbox' with sub folders prefixed with a dot whereas in 2.3 it's '.INBOX'. so a fairly straightforward change could fix that.
>
> Imapsync is also a fair method really because the dbmail-export method won't retain inbox flags such as 'marked as read' which customers/users are likely to notice
>
> Kind regards
>
> James Greig
>
> -----Original Message-----
> From: DBmail <dbmail-bounces@lists.nfg.nl> On Behalf Of Admin Beckspaced
> Sent: 07 April 2020 13:24
> To: dbmail@lists.nfg.nl
> Subject: [Dbmail] tools for migration to dovecot
>
> Dear dbmail users,
>
> recently James Greig wrote about a patch he did for dbmail-export to export the mailboxes into maildir++ format mbox's along with a subscriptions file for dovecot 2.2.
>
> https://github.com/pjstevns/dbmail/pull/43/commits/4a0909a02b220f3e16fbc66efa03d7554ecde3a5?diff=split&w=1
>
> Sadly my server already runs dovecot version 2.3 so the patch won't work.
>
> Are there any migration tools to export the mailboxes from dbmail to dovecot 2.3.x
>
> Do you have any recommendations?
>
> thanks & greetings
> Becki
>
> _______________________________________________
> DBmail mailing list
> DBmail@lists.nfg.nl
> https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
> _______________________________________________
> DBmail mailing list
> DBmail@lists.nfg.nl
> https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail
Re: tools for migration to dovecot [ In reply to ]
Am 07.04.20 um 16:11 schrieb Admin Beckspaced:
> Hello James,
>
> Adam is perfectly fine with me as Becki is also only my nickname ;)
>
> I think I will give imapsync a try. I Was just looking if i can specify
> also the port numbers which I actually can according to the docs
>
> https://github.com/imapsync/imapsync

https://github.com/imapsync/imapsync

CTRL+F "port"

OPTIONS/credentials

--host1 str : Source or "from" imap server.
--port1 int : Port to connect on host1.
Optional since default ports are the
well known ports 143 or 993.
--user1 str : User to login on host1.
--password1 str : Password for the user1.

--host2 str : "destination" imap server.
--port2 int : Port to connect on host2. Optional
--user2 str : User to login on host2.
--password2 str : Password for the user2.
_______________________________________________
DBmail mailing list
DBmail@lists.nfg.nl
https://lists.nfg.nl/cgi-bin/mailman/listinfo/dbmail