How to back up emails from the email server?

offlineimap actually does "synchronization"---if an email is deleted from the server, the email will be deleted from the local Maildir ( This is good for mail sync.

However, for backing up emails,one would like to keep the email even if it is deleted from the server. How to achieve this?

related to an answer for: How to back up a complete IMAP account?
asked Sep 3, 2014 by anonymous

1 Answer

You can use fetchmail + procmail to fetch email from pop3 which is usually supported by email servers and store the email in Maildir.

There are lots good tutorials on the Web which you can refer to:

Backup your Gmail account in maildir format using fetchmail:

Managing your email with fetchmail, procmail and mutt:

Using fetchmail and procmail for maildir style storage from a pop3 account:

Geek to Live: Back up Gmail with fetchmail:

answered Sep 8, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost