Solved

How to flush mqueue

Posted on 2010-08-16
9
950 Views
Last Modified: 2013-12-18
How can i flush the mqueue from /var/spool/mqueue
do i have to stop any service ....
0
Comment
Question by:apunkabollywood
9 Comments
 
LVL 3

Expert Comment

by:kiitii
Comment Utility
Flush as in re-submit queue?
You can try to restart the sendmail service, it will re-submit the queue.

# service  sendmail  restart
0
 

Author Comment

by:apunkabollywood
Comment Utility
I do not want to restart any service ... is there any alternative...
0
 
LVL 9

Accepted Solution

by:
Barry Gill earned 500 total points
Comment Utility
sendmail -q

that will do it
0
 

Author Comment

by:apunkabollywood
Comment Utility
is this harmful ...
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
no, this simply reloads the queue
0
 
LVL 7

Expert Comment

by:ajay_mhasal
Comment Utility
Hi,

Easiest method to remove the mails from mqueue is

# rm -f /var/spool/mqueue/*

and then restart sendmail service.


other methods are
http://www.brandonhutchinson.com/deleting_mail_queue.html
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1281959982570+28353475&threadId=1231286
0
 

Author Comment

by:apunkabollywood
Comment Utility
It is showing the error....

Connecting to sap...
Operating system error
0
 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
the command "sendmail -q" fails?
why is it connecting to SAP?

ok, lets step back a bit, why are you trying to flush the queue, what has happened?
OS error tells me you have run out of disk space or else there is something seriously wrong with your configuration.

if "sendmail" is not on your path, then add the path in front of it so you have /usr/sbin/sendmail -q (or something liek that)
what did your logs say when you tried that?
0
 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
also makes me ask: why not do as kiitii says and restart sendmail? it should have no true impact to you at all unless you have larger problems.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now