I run an internal mail server which I make nightly backups of. I want to also make backups of 3rd party email accounts such as Gmail and Hotmail. I know that both these services have access via POP/IMAP, but is there an easy way to grab messages from the commandline and back them up as with normal Maildir format files?
Asked
Active
Viewed 53 times
1 Answers
0
Someone heard about the google debacle. :-)
Every service that has POP or IMAP, can be backed up by using fetchmail in Maildir-format.
This is a very nice tutorial: wains.be
![](../../users/profiles/59789.webp)
Bart De Vos
- 17,761
- 6
- 62
- 81
-
Quick question, can I download via imap, and can I download only inbox and sent folders and exclude certain labels? – Jay White Mar 01 '11 at 00:51
-
Someone wrote a script for getmail (alternative to fetchmail) that should do the trick. http://www.propertymaps.com/blog/technical/deciphering-gmail-imap-labels-with-getmail/ – Bart De Vos Mar 01 '11 at 07:40