<p>Try to autodetect which mailq implementation we are using</p>

<p>This is done by looking at some common directories and files each MTA installs on the system. If no known file is found, the old default sendmail is used. Of course this still can be overridden by -M.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/evgeni/monitoring-plugins automatic_mta</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1242'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1242</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>try to autodetect which mailq implementation we are using</li>
  <li>document autodetection in the usage output</li>
  <li>add $mailq to check output, so it is easily visible what was autodetected</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1242/files#diff-0">plugins-scripts/check_mailq.pl</a>
    (63)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1242.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1242.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1242.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1242.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1242'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTA2MDczMSwiZGF0YSI6eyJpZCI6MjY2MTg4MTV9fQ==--768a7e9ea9df01b2a2f594378c2de43f4352b49e.gif' height='1' width='1'></p>