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.
1 Answer
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.
-
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.– SethJan 7, 2013 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. Jan 7, 2013 at 15:56
-
-
you could try the suggestions in this link, especially splitting the mbox file. kb.mozillazine.org/Edit_large_mbox_files Jan 7, 2013 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?– SethJan 7, 2013 at 17:33