I am in contract with a webhoster, having webserver, email and a few
other things.
But, there is no way to backup my emails stored on their imap
server.
I am in contract with a webhoster, having webserver, email and a few other things.
But, there is no way to backup my emails stored on their imap server. Meaning, when anything happens to that infrastructure (or they go broke) then all my emails are gone.
So, I'd like to mirror them via imapsync to a local instance of some
imap server, and then pack them together as a tgz archive.
Now I see, that there are several solutions out, see subject, and I
don't know which one fits best and what component is needed.
Does anyone have some experience here? Do I need an mta (exim for
instance) to just sync emails from external imap server to local?
Hi everyone
and happy new year!
I am in contract with a webhoster, having webserver, email and a few other things.
But, there is no way to backup my emails stored on their imap server. Meaning, when anything happens to that infrastructure (or they go broke) then all my emails are gone.
So, I'd like to mirror them via imapsync to a local instance of some imap server, and then pack them together as a tgz archive.
Now I see, that there are several solutions out, see subject, and I don't know which one fits best and what component is needed.
Dovecot is fairly easy to set up. IrCOve not tried the other IMAP servers.
So, I'd like to mirror them via imapsync to a local instance of some
imap server, and then pack them together as a tgz archive.
Markus Robert Kessler <no_reply@dipl-ing-kessler.de> wrote:
Hi everyone
and happy new year!
I am in contract with a webhoster, having webserver, email and a few
other things.
But, there is no way to backup my emails stored on their imap server.
Meaning, when anything happens to that infrastructure (or they go
broke) then all my emails are gone.
So, I'd like to mirror them via imapsync to a local instance of some
imap server, and then pack them together as a tgz archive.
Now I see, that there are several solutions out, see subject, and I
don't know which one fits best and what component is needed.
Personally I'd ignore all those "solutions" as overkill and use movemail
from GNU Mailutils:
movemail -v imaps://no_reply@dipl-ing-kessler.de mh:///home/[user]/Mail
If you have special characters like '@' in the username, you may need to percent-encode them, eg. "%40".
https://www.mailutils.org/wiki/Fetching_Mail_with_Movemail
I use MH format for storing the mail, check what format/s your email
client understands and change "mh://" to suit.
https://www.mailutils.org/manual/html_node/Local-Mailboxes.html
I actually use POP to get mail using movemail myself, but it works with
IMAP too.
movemail -v imaps://no_reply@dipl-ing-kessler.de mh:///home/[user]/Mail
If you have special characters like '@' in the username, you may need to
percent-encode them, eg. "%40".
https://www.mailutils.org/wiki/Fetching_Mail_with_Movemail
I use MH format for storing the mail, check what format/s your email
client understands and change "mh://" to suit.
https://www.mailutils.org/manual/html_node/Local-Mailboxes.html
I actually use POP to get mail using movemail myself, but it works with
IMAP too.
Anyway, is there an option to automatically transmit content of more than
1 folder, i.e. inbox, draft and sent... at once?
On 2 Jan 2026 07:43:14 +1000 Computer Nerd Kev wrote:
movemail -v imaps://no_reply@dipl-ing-kessler.de
mh:///home/[user]/Mail
If you have special characters like '@' in the username, you may need
to percent-encode them, eg. "%40".
https://www.mailutils.org/wiki/Fetching_Mail_with_Movemail
On 2026-01-03, Markus Robert Kessler <no_reply@dipl-ing-kessler.de>
wrote:
I use MH format for storing the mail, check what format/s your email
client understands and change "mh://" to suit.
https://www.mailutils.org/manual/html_node/Local-Mailboxes.html
I actually use POP to get mail using movemail myself, but it works
with IMAP too.
Anyway, is there an option to automatically transmit content of more
than 1 folder, i.e. inbox, draft and sent... at once?
What is this "mh:" in a URL? Never saw that before. Is that part of the generic URL specification? Or is this a quirk of the "movemail" program?
I guess I need to get out "man movemail" or see what's in
/usr/share/docs ...
On 01.01.2026 20:19 Uhr Markus Robert Kessler wrote:
So, I'd like to mirror them via imapsync to a local instance of some
imap server, and then pack them together as a tgz archive.
I use Cyrus and like it.
It saves the mail as text files. The metadata information (folder permissions, read status etc.) is saved in local databases.
On 2 Jan 2026 07:43:14 +1000 Computer Nerd Kev wrote:
movemail -v imaps://no_reply@dipl-ing-kessler.de mh:///home/[user]/Mail
If you have special characters like '@' in the username, you may need to >>> percent-encode them, eg. "%40".
https://www.mailutils.org/wiki/Fetching_Mail_with_Movemail
On 2026-01-03, Markus Robert Kessler <no_reply@dipl-ing-kessler.de> wrote:
I use MH format for storing the mail, check what format/s your email
client understands and change "mh://" to suit.
https://www.mailutils.org/manual/html_node/Local-Mailboxes.html
I actually use POP to get mail using movemail myself, but it works with
IMAP too.
Anyway, is there an option to automatically transmit content of more than >> 1 folder, i.e. inbox, draft and sent... at once?
What is this "mh:" in a URL? Never saw that before. Is that part of
the generic URL specification? Or is this a quirk of the "movemail"
program?
I guess I need to get out "man movemail" or see what's in
/usr/share/docs ...
On 2026-01-03, Lars Poulsen <lars@beagle-ears.com> wrote:
On 2 Jan 2026 07:43:14 +1000 Computer Nerd Kev wrote:
movemail -v imaps://no_reply@dipl-ing-kessler.de
mh:///home/[user]/Mail
If you have special characters like '@' in the username, you may need
to percent-encode them, eg. "%40".
https://www.mailutils.org/wiki/Fetching_Mail_with_Movemail
On 2026-01-03, Markus Robert Kessler <no_reply@dipl-ing-kessler.de>
wrote:
I use MH format for storing the mail, check what format/s your email
client understands and change "mh://" to suit.
https://www.mailutils.org/manual/html_node/Local-Mailboxes.html
I actually use POP to get mail using movemail myself, but it works
with IMAP too.
Anyway, is there an option to automatically transmit content of more
than 1 folder, i.e. inbox, draft and sent... at once?
What is this "mh:" in a URL? Never saw that before. Is that part of the
generic URL specification? Or is this a quirk of the "movemail"
program?
I guess I need to get out "man movemail" or see what's in
/usr/share/docs ...
Apparently, GNU-Mailutils is not in the Fedora distribution. There are
RPMs for it in SuSE, but I am reluctant to mix "foreign"
RPMs into my Fedora; I have seen that greate small messes in
dependencies. And I really don't like to compile from sources.
movemail seems to work, thanks!
Well, in the document mh was misspelled as
'mh://Mail' instead of
'mh:///Mail', so it took a while until I got it to work.
Anyway, is there an option to automatically transmit content of more than
1 folder, i.e. inbox, draft and sent... at once?
Apparently, GNU-Mailutils is not in the Fedora distribution. There
are RPMs for it in SuSE, but I am reluctant to mix "foreign" RPMs
into my Fedora; I have seen that greate small messes in
dependencies. And I really don't like to compile from sources.
On Sat, 3 Jan 2026 18:40:16 -0000 (UTC) Lars Poulsen wrote:
On 2026-01-03, Lars Poulsen <lars@beagle-ears.com> wrote:
On 2 Jan 2026 07:43:14 +1000 Computer Nerd Kev wrote:
movemail -v imaps://no_reply@dipl-ing-kessler.de
mh:///home/[user]/Mail
If you have special characters like '@' in the username, you may need >>>>> to percent-encode them, eg. "%40".
https://www.mailutils.org/wiki/Fetching_Mail_with_Movemail
On 2026-01-03, Markus Robert Kessler <no_reply@dipl-ing-kessler.de>
wrote:
I use MH format for storing the mail, check what format/s your email >>>>> client understands and change "mh://" to suit.
https://www.mailutils.org/manual/html_node/Local-Mailboxes.html
I actually use POP to get mail using movemail myself, but it works
with IMAP too.
Anyway, is there an option to automatically transmit content of more
than 1 folder, i.e. inbox, draft and sent... at once?
What is this "mh:" in a URL? Never saw that before. Is that part of the
generic URL specification? Or is this a quirk of the "movemail"
program?
I guess I need to get out "man movemail" or see what's in
/usr/share/docs ...
Apparently, GNU-Mailutils is not in the Fedora distribution. There are
RPMs for it in SuSE, but I am reluctant to mix "foreign"
RPMs into my Fedora; I have seen that greate small messes in
dependencies. And I really don't like to compile from sources.
Besides this, it looks like movemail can only transmit 'Inbox' but no
other folders?
Markus Robert Kessler <no_reply@dipl-ing-kessler.de> wrote:
movemail seems to work, thanks!
Well, in the document mh was misspelled as
'mh://Mail' instead of
'mh:///Mail', so it took a while until I got it to work.
Anyway, is there an option to automatically transmit content of more than
1 folder, i.e. inbox, draft and sent... at once?
I think you have to run a separate movemail command for each
folder (and pointing to each destination folder). But you could put
them in a script and have it add the password or set it in
~/.mu-tickets so you don't have to enter it manually multiple
times.
On 03/01/2026 21:56, Computer Nerd Kev wrote:
Markus Robert Kessler <no_reply@dipl-ing-kessler.de> wrote:..and use & to background each folder transfer to spawn many shells to
movemail seems to work, thanks!
Well, in the document mh was misspelled as
'mh://Mail' instead of
'mh:///Mail', so it took a while until I got it to work.
Anyway, is there an option to automatically transmit content of more than >>> 1 folder, i.e. inbox, draft and sent... at once?
I think you have to run a separate movemail command for each
folder (and pointing to each destination folder). But you could put
them in a script and have it add the password or set it in
~/.mu-tickets so you don't have to enter it manually multiple
times.
move it sorta concurrently...
Markus Robert Kessler <no_reply@dipl-ing-kessler.de> wrote:
On Sat, 3 Jan 2026 18:40:16 -0000 (UTC) Lars Poulsen wrote:
On 2026-01-03, Lars Poulsen <lars@beagle-ears.com> wrote:
On 2 Jan 2026 07:43:14 +1000 Computer Nerd Kev wrote:
movemail -v imaps://no_reply@dipl-ing-kessler.de
mh:///home/[user]/Mail
If you have special characters like '@' in the username, you may
need to percent-encode them, eg. "%40".
https://www.mailutils.org/wiki/Fetching_Mail_with_Movemail
On 2026-01-03, Markus Robert Kessler <no_reply@dipl-ing-kessler.de>
wrote:
I use MH format for storing the mail, check what format/s your
email client understands and change "mh://" to suit.
https://www.mailutils.org/manual/html_node/Local-Mailboxes.html
I actually use POP to get mail using movemail myself, but it works >>>>>> with IMAP too.
Anyway, is there an option to automatically transmit content of more >>>>> than 1 folder, i.e. inbox, draft and sent... at once?
What is this "mh:" in a URL? Never saw that before. Is that part of
the generic URL specification? Or is this a quirk of the "movemail"
program?
I guess I need to get out "man movemail" or see what's in
/usr/share/docs ...
Apparently, GNU-Mailutils is not in the Fedora distribution. There are
RPMs for it in SuSE, but I am reluctant to mix "foreign"
RPMs into my Fedora; I have seen that greate small messes in
dependencies. And I really don't like to compile from sources.
Besides this, it looks like movemail can only transmit 'Inbox' but no
other folders?
No, just add the folder to the URL, such as:
movemail imaps://foo@example.com/draft mh:///tmp/Mail/draft
I just tested that and it works for me. I can't see any way to download
all the folders with one command like you asked before though.
By the way, if you want to keep the messages on the server, you probably
want to use the "--sync=uidnext" option:
https://www.mailutils.org/manual/html_node/Sync.html
On 4 Jan 2026 08:05:59 +1000 Computer Nerd Kev wrote:
movemail imaps://foo@example.com/draft mh:///tmp/Mail/draft
I just tested that and it works for me. I can't see any way to download
all the folders with one command like you asked before though.
By the way, if you want to keep the messages on the server, you probably
want to use the "--sync=uidnext" option:
https://www.mailutils.org/manual/html_node/Sync.html
Yes, this way, download by foldername works, thanks!
When wanting the emails to remain on the server, flag '-p' (keep messages) can be used. What does "--sync=uidnext" differently?
B.t.w., just trying to download folders with special characters in them, like "Entwurfe" (drafts). I did not make it yet to get this encoded (for instance "u" in html: ü)
On Fri, 2 Jan 2026 21:10:32 +0100 Marco Moock wrote:
On 01.01.2026 20:19 Uhr Markus Robert Kessler wrote:
So, I'd like to mirror them via imapsync to a local instance of
some imap server, and then pack them together as a tgz archive.
I use Cyrus and like it.
It saves the mail as text files. The metadata information (folder permissions, read status etc.) is saved in local databases.
Is there a sample configuration out, to not having to start from
scratch by "trial and error"?
I use Cyrus and like it.
On Sat, 3 Jan 2026 18:40:16 -0000 (UTC), Lars Poulsen wrote:
Apparently, GNU-Mailutils is not in the Fedora distribution. There are
RPMs for it in SuSE, but I am reluctant to mix "foreign" RPMs into my
Fedora; I have seen that greate small messes in dependencies. And I
really don't like to compile from sources.
Maybe you should switch to a more comprehensive distro?
<https://packages.debian.org/trixie/mailutils>
And whatrCOs with this reluctance to compile from source, anyway? ItrCOs
part of the bread and butter of running any Linux distro.
On Sat, 3 Jan 2026 21:57:23 -0000 (UTC) Lawrence DrCOOliveiro wrote:
And whatrCOs with this reluctance to compile from source, anyway?
ItrCOs part of the bread and butter of running any Linux distro.
Yes, debian has it and openSuSE has it. And I can confirm that
compiling from scratch is not as easy as it looked like. I tried to
create a package for Mageia, based on the original tarball, but
there are plenty of dependencies not visible during configure/make/makeinstall.
I use Cyrus and like it.
It saves the mail as text files. The metadata information (folder
permissions, read status etc.) is saved in local databases.
Is there a sample configuration out, to not having to start from
scratch by "trial and error"?
The default config of Debian is reasonable. If you want mine, let me
know.
On Sat, 3 Jan 2026 21:57:23 -0000 (UTC) Lawrence D'Oliveiro wrote:
<https://packages.debian.org/trixie/mailutils>
And what's with this reluctance to compile from source, anyway? It's
part of the bread and butter of running any Linux distro.
Yes, debian has it and openSuSE has it.
And I can confirm that compiling from scratch is not as easy as it looked like. I tried to create a package for Mageia, based on the original
tarball, but there are plenty of dependencies not visible during configure/make/makeinstall. It compiled and built, but the result was not funtional. Creating a new rpm out of that failed as well.
Well I built GNU Mailutils 3.21 from source with all the functionality
you require and noted the following dependencies:
readline-dev, libunistring-dev, gnutls38-dev, tcp_wrappers-dev,
libltdl, libtool-dev, libgsasl-dev
At least libgsasl-dev probably isn't needed for your use since I only
added that to enable SMTP authentication using putmail. IMAP
authentication using movemail was working before that. Some others might
be surplus to requirements too.
On 01.01.2026 20:19 Uhr Markus Robert Kessler wrote:
So, I'd like to mirror them via imapsync to a local instance of some
imap server, and then pack them together as a tgz archive.
I use Cyrus and like it.
It saves the mail as text files. The metadata information (folder permissions, read status etc.) is saved in local databases.
I am asking this because I once got into big trouble when I had to
move multiple mysql databases to a new machine with new OS and new
version of mysqld. - Nothing worked and I had to use mysql-dump to
export the data as text-dump on the old system and import them into
the new one. After that, the permission system also had to be set up
from scratch because of different data format...
Well, these are the BUILD dependencies - are there RUNTIME requirements
also?
On 12/01/2026 06:36, Markus Robert Kessler wrote:
Well, these are the BUILD dependencies - are there RUNTIME requirements
also?
Generally (but I don't promise that it always works) if you have the dev
package installed in order to meet the build requirements you not need anything more at runtime.
There are non-dev packages that meet *only* the runtime requirements for people who don't need to meet the build requirements, but if you have
the dev packages you don't need those as well.
Meaning, do you let "make install" write directly to the filesystem
...
On 12 Jan 2026 07:20:47 +1000 Computer Nerd Kev wrote:
Well I built GNU Mailutils 3.21 from source with all the functionality
you require and noted the following dependencies:
readline-dev, libunistring-dev, gnutls38-dev, tcp_wrappers-dev,
libltdl, libtool-dev, libgsasl-dev
At least libgsasl-dev probably isn't needed for your use since I only
added that to enable SMTP authentication using putmail. IMAP
authentication using movemail was working before that. Some others might
be surplus to requirements too.
Interesting, thank you!
Well, these are the BUILD dependencies - are there RUNTIME requirements also?
On Mon, 12 Jan 2026 12:45:29 +0000 Daniel James wrote:
On 12/01/2026 06:36, Markus Robert Kessler wrote:
Well, these are the BUILD dependencies - are there RUNTIME requirements
also?
Generally (but I don't promise that it always works) if you have the dev
package installed in order to meet the build requirements you not need
anything more at runtime.
There are non-dev packages that meet *only* the runtime requirements for
people who don't need to meet the build requirements, but if you have
the dev packages you don't need those as well.
B.t.w.,
how do you install all the files retrieved from compiling the tarball from scratch, if you want to avoid building a deb or rpm?
Meaning, do you let "make install" write directly to the filesystem, or do you pack all that files in one tar.gz and then use "alien" to transform it into a deb or rpm?
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 17:45:26 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
4 files (8,203K bytes) |
| Messages: | 184,414 |
| Posted today: | 1 |