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

We have a centOS 5.6 with sendmail configured. We have quite a few email accounts which receive hundreds of emails a day. We have one particular account with thousdands of emails withint in, but we're unable to access it. It times out. I want to know if there is a way for me to access that account and export all of the emails out of this account so that we can start accessing it again. As of now, we're unable to and emails keep piling up.

share|improve this question
up vote 1 down vote accepted

The default installation delivers mail messages to /var/spool/mail/${USER}; that is a simple mbox-formatted text file. You can mv this file or simply rm it to clear the existing messages.

share|improve this answer
thanks, i looked at the size of this mailbox and its 2.6GB. It has 2.7 million emails. Its huge. Can you please give me exact command on how to move emails out of this? We need to keep all these emails. By the way, i have no knowledge of linux. – Seth Jan 7 '13 at 15:45
How do you want to keep the mails? You could use Thunderbird to access the mails in the mbox file and export them if needed. – chewbakka Jan 7 '13 at 15:56
I tried to use Thunderbird, but it keeps timing out. – Seth Jan 7 '13 at 16:16
you could try the suggestions in this link, especially splitting the mbox file. – chewbakka Jan 7 '13 at 16:40
we're using webmin and i found somewhere that i can download that mailbox to another local server. Will that work? While its downloading, will it prevent emails coming through? – Seth Jan 7 '13 at 17:33

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.