Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a requirement that I want to archive mails older than say, 6 months to another server, so that I can keep space of first server to be minimum, but still able to access older mails if user requires.

The case is the live server is much expensive. Getting more storage is not a good idea. What I need is keep the latest mails in live server and old mails in less reliable and cheaper server.

Is that possible, if so, how?

share|improve this question

closed as not a real question by mgorven, EEAA, Ward, Dave M, TheCleaner Feb 22 '13 at 22:31

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

up vote 1 down vote accepted

You could use an archiving program that works on your mail format (mailbox/maildir) and then rsync those over to the second server, and finally remove them.

More specific recommendations would require more specific information about what you're running, what format, and other useful info.

This program (http://archivemail.sourceforge.net/) works with the mbox format, but many dovecot installs use maildir nowadays.

share|improve this answer
    
The thing is I want them to access the old mails also from their mail clients. I just want to exploit fact that old mails are rarely accessed and the downtime on it won't be noticed much. –  Anish Sheela Feb 21 '13 at 18:21
    
Again, it depends on the mail storage format, with maildir, you could just do a scan for mail older than a certain date, move it to the other server in the same directory /home/username/mail (an example obviously), and use a DB for user authentication, so they'd just need an account on a second machine to be able to log in to see their emails. –  NickW Feb 22 '13 at 9:36
add comment

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