Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to flush mqueue

Posted on 2010-08-16
9
Medium Priority
?
975 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 total points
ID: 33444392
sendmail -q

that will do it
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
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…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

719 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