<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>delete sendmail queue &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/delete-sendmail-queue/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Mon, 16 May 2011 01:03:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Flush Sendmail Queue In Linux</title>
		<link>https://lifelinux.com/how-to-flush-sendmail-queue-in-linux/</link>
					<comments>https://lifelinux.com/how-to-flush-sendmail-queue-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Mon, 16 May 2011 00:40:04 +0000</pubDate>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/var/spool/mqueue]]></category>
		<category><![CDATA[Check pending mail]]></category>
		<category><![CDATA[delete sendmail queue]]></category>
		<category><![CDATA[find command]]></category>
		<category><![CDATA[Flush Sendmail Queue]]></category>
		<category><![CDATA[mailq command]]></category>
		<category><![CDATA[sendmail restart]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=574</guid>

					<description><![CDATA[<p>Check pending mail To check how many pending mail, type the following command # mailq This will give you example output like this: /var/spool/mqueue (2 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- p4BHPCuP002174 105 Thu May 12 00:25 mualaco (host map: lookup (nixonbox.com): deferred) pedromelon@nixonbox.com p4B8uNPZ023735 1000 Wed May 11 15:56 saigonlab (host map: lookup (gmail.com.vn): deferred) [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-flush-sendmail-queue-in-linux/">How To Flush Sendmail Queue In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><h3>Check pending mail</h3>
<p>To check how many pending mail, type the following command</p>
<pre>
# mailq
</pre>
<p><span id="more-574"></span><br />
This will give you example output like this:</p>
<pre>
 /var/spool/mqueue (2 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
p4BHPCuP002174      105 Thu May 12 00:25 mualaco
                 (host map: lookup (nixonbox.com): deferred)
                                         pedromelon@nixonbox.com
p4B8uNPZ023735     1000 Wed May 11 15:56 saigonlab
                 (host map: lookup (gmail.com.vn): deferred)
                                         tranhai.ht.83@gmail.com.vn
                Total requests: 2
</pre>
<p>There are several techniques to delete sendmail queue</p>
<h3>Manually removed pending mails</h3>
<p>Type the following commands</p>
<pre>
# rm -rf /var/spool/mqueue
# rm -rf /var/spool/clientmqueue
</pre>
<p>Final, restart mail service with the following command</p>
<pre>
# /etc/init.d/sendmail restart
</pre>
<p>Output like this</p>
<pre>
Shutting down sm-client:                                   [  OK  ]
Shutting down sendmail:                                    [  OK  ]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]
</pre>
<p>You can also use find command to remove &#8220;Deferred: Connection refused&#8221; queues</p>
<pre>
# find /var/spool/mqueue -type f -exec grep "Deferred: Connection refused" {} \; -exec rm -rf {} \;
</pre>
<g:plusone href="https://lifelinux.com/how-to-flush-sendmail-queue-in-linux/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-flush-sendmail-queue-in-linux/">How To Flush Sendmail Queue In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-flush-sendmail-queue-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
