LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Clearing the mailq HELP (https://www.linuxquestions.org/questions/linux-newbie-8/clearing-the-mailq-help-319642/)

LC Jonesy 05-03-2005 05:15 AM

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

apsivam 05-03-2005 06:46 AM

AFAIK there is no systematic way to clear the mailq. go to /var/spool/mqueue and delete the queued mail there.

LC Jonesy 05-03-2005 06:53 AM

being a complete numpty can you tell me the command for this please?

Thanks

apsivam 05-03-2005 07:10 AM

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


theYinYeti 05-03-2005 07:11 AM

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.


All times are GMT -5. The time now is 01:36 AM.