<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Kommentare zu: Postfix Mail Queue Überwachung mit E-Mail Warnung	</title>
	<atom:link href="https://www.serverbiz.de/postfix-mail-queue-ueberwachung-mit-e-mail-warnung/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.serverbiz.de/postfix-mail-queue-ueberwachung-mit-e-mail-warnung/</link>
	<description>vServer und Rootserver mieten</description>
	<lastBuildDate>Thu, 21 Apr 2022 20:42:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.3</generator>
	<item>
		<title>
		Von: Marcus Kofen		</title>
		<link>https://www.serverbiz.de/postfix-mail-queue-ueberwachung-mit-e-mail-warnung/#comment-141</link>

		<dc:creator><![CDATA[Marcus Kofen]]></dc:creator>
		<pubDate>Wed, 13 Apr 2016 10:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.serverbiz.de/?p=715#comment-141</guid>

					<description><![CDATA[#!/bin/bash
mailq_count=`/usr/bin/mailq &#124; /usr/bin/tail -n1 &#124; /usr/bin/gawk &#039;{print $5}&#039;`
mailq_count=`expr $mailq_count + 0`
if [ $mailq_count -gt 99 ]; then
 echo &quot;Subject: WARNUNG SERVER: Anzahl Mails in Queue ist $mailq_count&quot; &#124; /usr/sbin/sendmail root@server.de
fi]]></description>
			<content:encoded><![CDATA[<p>#!/bin/bash<br />
mailq_count=`/usr/bin/mailq | /usr/bin/tail -n1 | /usr/bin/gawk &#8218;{print $5}&#8217;`<br />
mailq_count=`expr $mailq_count + 0`<br />
if [ $mailq_count -gt 99 ]; then<br />
 echo &#8222;Subject: WARNUNG SERVER: Anzahl Mails in Queue ist $mailq_count&#8220; | /usr/sbin/sendmail <a href="mailto:root@server.de">root@server.de</a><br />
fi</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Michail G		</title>
		<link>https://www.serverbiz.de/postfix-mail-queue-ueberwachung-mit-e-mail-warnung/#comment-140</link>

		<dc:creator><![CDATA[Michail G]]></dc:creator>
		<pubDate>Thu, 03 Mar 2016 14:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.serverbiz.de/?p=715#comment-140</guid>

					<description><![CDATA[Man kann auf die Datei &quot;/etc/postfix/mailq_count&quot; verzichten.
Lösung:
#Der Wert wird in der Variable &quot;mailq_count&quot; gespeichert
mailq_count=$(/usr/bin/mailq &#124; /usr/bin/tail -n1 &#124; /usr/bin/awk &#039;{print $5}&#039;)

Grüße
Michail]]></description>
			<content:encoded><![CDATA[<p>Man kann auf die Datei &#8222;/etc/postfix/mailq_count&#8220; verzichten.<br />
Lösung:<br />
#Der Wert wird in der Variable &#8222;mailq_count&#8220; gespeichert<br />
mailq_count=$(/usr/bin/mailq | /usr/bin/tail -n1 | /usr/bin/awk &#8218;{print $5}&#8216;)</p>
<p>Grüße<br />
Michail</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: michi		</title>
		<link>https://www.serverbiz.de/postfix-mail-queue-ueberwachung-mit-e-mail-warnung/#comment-139</link>

		<dc:creator><![CDATA[michi]]></dc:creator>
		<pubDate>Mon, 20 Oct 2014 19:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.serverbiz.de/?p=715#comment-139</guid>

					<description><![CDATA[Danke für deine Anleitung, 
genau sowas habe ich gesucht.

Leider funktionierte das bei mir unter debian nicht sofort.
Lösung:
um folgende Fehlermeldung 
&lt;cite&gt;/root/mailqueue.sh: line 9: [: -gt: unary operator expected &lt;/cite&gt;
zu umgehen, sollte die if-Abfrage in Zeile 9 in doppelte Klammern gesetzt werden.
&lt;code&gt;
if [[ `$mailq_count` -gt 100 ]]; then ...............
&lt;/code&gt;

Gruss

michi]]></description>
			<content:encoded><![CDATA[<p>Danke für deine Anleitung,<br />
genau sowas habe ich gesucht.</p>
<p>Leider funktionierte das bei mir unter debian nicht sofort.<br />
Lösung:<br />
um folgende Fehlermeldung<br />
<cite>/root/mailqueue.sh: line 9: [: -gt: unary operator expected </cite><br />
zu umgehen, sollte die if-Abfrage in Zeile 9 in doppelte Klammern gesetzt werden.<br />
<code><br />
if [[ `$mailq_count` -gt 100 ]]; then ...............<br />
</code></p>
<p>Gruss</p>
<p>michi</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
