LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-03-2005, 06:15 AM   #1
LC Jonesy
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
Clearing the mailq HELP


Ok, to start with i'm a complete novice when it comes to mail servers.

Using Colbalt Qube2, and we are having problems with emails looping and not clearing from the server once collected by clients

Help please please please it's driving me mad!!!!!!!

HOW DO I CLEAR THE MAIL QUEUE AND FROM WHAT DIRECTORY by using telnet
 
Old 05-03-2005, 07:46 AM   #2
apsivam
Member
 
Registered: Mar 2005
Location: Chennai, India
Distribution: Ubuntu, CentOS
Posts: 72

Rep: Reputation: 15
AFAIK there is no systematic way to clear the mailq. go to /var/spool/mqueue and delete the queued mail there.
 
Old 05-03-2005, 07:53 AM   #3
LC Jonesy
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
being a complete numpty can you tell me the command for this please?

Thanks
 
Old 05-03-2005, 08:10 AM   #4
apsivam
Member
 
Registered: Mar 2005
Location: Chennai, India
Distribution: Ubuntu, CentOS
Posts: 72

Rep: Reputation: 15
Code:
# cd /var/spool/mqueue
# rm -rf * # COMMENT Note this command erases all the files stored in the current directory be sure what you are doing
 
Old 05-03-2005, 08:11 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
It depends on what MTA you're using. If it is Postfix, then
Code:
mailq
will give you each post's id, and
Code:
postsuper -d id
will delete a post in the queue.

Yves.
 
  


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
mailq clearing mnauta Linux - General 0 04-12-2005 08:34 PM
I/O Error on mailq? gigi Linux - Software 0 04-15-2004 12:31 AM
Qmail - Mailq R4z0r Linux - Software 0 01-14-2004 03:09 AM
qmail mailq R4z0r Linux - Software 1 10-13-2003 08:37 AM
sendmail - mailq pk21 Linux - General 4 10-05-2003 01:05 AM

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

All times are GMT -5. The time now is 03:06 AM.

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