<p>Speaking about MTA specific behavior: <code>exim4 -bpc</code> simply prints the number of messages in the queue, and is <em>much</em> more efficient than printing the message details by <code>mailq</code> (which is <code>exim4 -bp</code>) for just counting them. This can make a difference between a timeout and proper report when you have thousands of messages in the queue.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1208#issuecomment-49587389">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTU1NDkzOCwiZGF0YSI6eyJpZCI6MTg3NzcwMzV9fQ==--4c70de67d0cd3f92fe4b88d69706be4449bb0112.gif" width="1" /></p>