Solved

How to flush mqueue

Posted on 2010-08-16
9
955 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
ID: 33444246
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
ID: 33444259
I do not want to restart any service ... is there any alternative...
0
 
LVL 9

Accepted Solution

by:
Barry Gill earned 500 total points
ID: 33444392
sendmail -q

that will do it
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:apunkabollywood
ID: 33444845
is this harmful ...
0
 
LVL 9

Expert Comment

by:Barry Gill
ID: 33444853
no, this simply reloads the queue
0
 
LVL 7

Expert Comment

by:ajay_mhasal
ID: 33444876
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
ID: 33444909
It is showing the error....

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

Expert Comment

by:Barry Gill
ID: 33444965
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
ID: 33444979
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Easy CSR creation in Exchange 2007,2010 and 2013
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create a mailbox database 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 Servers >> Data…

816 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

11 Experts available now in Live!

Get 1:1 Help Now