Customer Paradigm

Cart Contents

cart iconItems: 0

Total: $0.00

View Cart >> Checkout >>

Free Newsletter

Upcoming Events

Removing All of the email on a Linux server from the root user

If you have a bunch of emails stuck on your Linux server for the root user, here's an easy process to remove the root user's email from the system.

Please use caution when doing this... you could break things if you're not careful.

First, see how many messages you have:

mail

(This will display how many messages you have). Press q to quit the mail application:

q

From the command line, you'll next want to go to the location of the mail spool:

cd /var/spool/mail/

First, rename / backup the file:

cp root root_bak


Then, remove the root mail file:

rm root

Answer Y at the prompt:

Y

Then, you'll need to recreate the file:

touch root

Type in mail again to see how many messages you have:

mail

Please use caution when doing this... you could break things if you're not careful.

Need help with your server? Please call us at 303.473.4400 or fill out the form below >>

Please have someone contact me now:

First Name :
Last Name :
Phone :
Email :
Comments :
 
  Word Verification:
  Enter the word as it is shown in the box below
 
 This step is required to prevent abuse of our services.

 

Google Adwords Certified Yahoo Search Ambassadorphp programmersphp programmer outsourced
Customer Paradigm is a Boulder, Colorado based Website Development & Website Marketing Organization.
5353 Manhattan Circle, Suite 103, Boulder, Colorado 80303. (303) 473-4400
Copyright © 2008 Customer Paradigm. All Rights Reserved.