Delete all root mail / inbox from a shell prompt
Q. I've CentOS Linux acting as router for our small community based college. I see logwatch and other cron job generating emails for root account. How do I delete those emails? I don't want to disable email facility but just wanted to get rid of all root emails.
A. The easilst way is to empty root / users email message file i.e. /var/spool/mail/root or /var/spool/mail/username. Simply type the following command at shell:
> /var/spool/mail/root
Capture each and every moment of life with a FREE 4 GB SD memory card with the purchase of select digital cameras from Canon, Nikon, Pentax and others from Amazon
E-mail
Print
Can't find an answer to your question? Contact us
Related Other Helpful FAQs:
- Linux / UNIX find out size of email account or mailbox
- Fetch email from a remote server to a local user mailbox
- Qmail delivering mail ~/Mailbox home directories
- How to Delete Exim Email For A Particular User From Mail Server Queue
- Ubuntu Linux Disable control-alt-delete [CTRL-ALT-DEL] Emergency Keypress Handling
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: centos linux, email, empty user emailbox, mail username, root account, root users, spool



Recent Comments
Today ~ 17 Comments
Today ~ 5 Comments
Today ~ 11 Comments
Yesterday ~ 24 Comments
Yesterday ~ 6 Comments