Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My company actually use gmail with our domain for the email service,and I need to take backup from all accounts from this domain in local drive.

Its possible? Is there any tool to backup all accounts for the domain ?

share|improve this question

I know they offer an archiving service, which probably has this facility built-in. Otherwise, you'd have to connect to each account and download the entire mailbox for each user. This could be very time consuming.

share|improve this answer
I did some quick research just now, there are some utilities on the google apps marketplace but none look promising. How are your users connecting? – SpacemanSpiff May 30 '11 at 7:52

This might come in handy: gmail_backup, which is based on "imap2maildir".
Maybe create some DIY-scripting around it, since you need it for all accounts.

share|improve this answer

If you have a Linux server at your disposal:

There is a Perl command line tool called imapsync (apt-get install imapsync) which synchronizes IMAP accounts accross two servers.

The tricky part is that you have to gather usernames and passwords from all your users.

Your work would be a bash script which automatically backups emails to a local IMAP server. You would personally go this way.

You can even use a crontab to do it every night.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.