LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2011, 06:52 PM   #1
magicman
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
server commands to clear mail


My var partition is full. The main culprit is NOW the mail file. What is the command to empty the mail files? The mqueue and clientmqueue files are now low on usage but the mail file is responsible for filling up the var partition.

Magicman

Last edited by magicman; 03-14-2011 at 03:47 PM. Reason: New problem
 
Old 03-13-2011, 07:42 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

Are you using sendmail?

Code:
sendmail -v -q
That will attempt to clear the queue and tell you why the mail is not moving.
If you don't care about the mail messages.


Code:
stop sendmail
rm -f /var/spool/mqueue/*
start sendmail
However, you should investigate why mqueue is filling up.


Kind regards

Last edited by repo; 03-13-2011 at 07:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to clear CUPS server? JimmyTheSaint Linux - Server 17 10-04-2011 03:57 AM
mail server migration: howto deliver locally AND forward mail to new server pedrobl Linux - Server 1 01-22-2011 12:12 AM
how do i clear my server logs? steve51184 Linux - Server 5 08-06-2009 10:09 PM
Clear previous commands in Terminal Hitboxx Fedora 4 07-12-2006 08:20 AM
How to clear cached commands Kedelfor Linux - Newbie 1 01-20-2004 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration