How to clean Postfix mailbox

Hello;

I am using Postfix with my Hylafax "email to fax" and "fax to email" feature.  I found that my /var/spool/mail/root mailbox has a lot of content, how can I erase them.  I believed this is a mailbox to receive some kind of notification whenever I sent fax or receive fax.  The mailbox has 51199748 bytes, I want to clean it but how?

thanks!
LVL 1
KANEWONGAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
VenabiliConnect With a Mentor Commented:
rm /var/spool/mail/root
or
> /var/spool/mail/root
should do it...  if you are sure you do not need them.
But I would backup the file before this just in case (always backup before deleting/purging) - then delete the backup if you want :)

The file will get recreated automatically when needed next time if you delete it and the second command will simply empty it...
0
 
VenabiliCommented:
PS: You might read http://www.issociate.de/board/post/422748/Purging_Mailboxes.html for some warnings as well - but if you know what you are using the mail for (as it looks like), you can purge when there is no mail that is incoming so you should be fine.
0
 
KANEWONGAuthor Commented:
if I use following command, does it permanently delete the file or I need to purge it, like empty the recycle bin in windows.

rm root
0
 
VenabiliCommented:
Deletes permanently - no safety net on Unix.

That's why I say: First backup, then delete. Just in case. If you make it wrong - you have the backup.
0
All Courses

From novice to tech pro — start learning today.