<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="message-partheaders">Hi.</div>
<div class="message-partheaders"> </div>
<div class="message-partheaders">I know this is quite an old issue but I am suddenly seeing quite a lot of these errors in my logwatch </div>
<div id="message-part5" class="message-part">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="padding-left: 40px;"><span>Use of uninitialized value $QueueID in hash element at</span><br /><span> /usr/share/logwatch/scripts/services/sendmail line 920, <STDIN> line 94 (#1)</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>I don't particularly want to change to Postfix as I've got the hang of sendmail over the years!</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>This is a new install of 5210R on Almalinux 8.5.</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>Question: Blueonyx is currently deploying quite an old Logwatch (7.4.3 (04/27/16) ) and it looks like the "current" version is <a title="Click to enter logwatch-7.6" href="https://eeiabdi.r.bh.d.sendibt3.com/tr/cl/XoOd_wodURhEOwnN666tjmWyi0BKBn6Mp50ZhkkyvEWuSKoLUjaLbCkNSaADdy_XeLayth-tcgZqScoBb1j3cby4p3wETrhS-86WNO7aUxLcN4RbKsOwKq97dCt_empI9Y_pojnW-C1dOXKMC96V_iubcPJfVPSZ4liRXHAPTrWorpgho-mR5mHoCC03zS4iR8WCDzziYYvMYsjcrvCzXqwYx9ih1DIKFCSGY94s5ijfsjYU7jS4P5x1ArEXjzKPQajHySqFkbKJKXIusWw87CtV84DAbprS"><span class="name">logwatch-7.6</span></a> from 2022-01-22, which implies the package is undergoing development... I wonder if this issue has been fixed in a subsequent build?</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>So... is there any scope for an upgrade?</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>Thanks and best regards</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>Neil.</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On 2020-06-30 20:36 <span class="adr"><a class="rcmContactAddress" style="color: #666666; text-decoration: none;" href="mailto:mstauber@blueonyx.it">Michael Stauber <mstaub</a><a class="rcmContactAddress" style="color: #666666; text-decoration: none;" href="mailto:mstauber@blueonyx.it">@blueonyx.it> said:</a></span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" dir="ltr" style="padding-left: 40px;">Hi Richard,<br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Getting these (seems like thousands of) errors in the logwatch report:<br /><br />Use of uninitialized value $QueueID in hash element at<br /><br /> /usr/share/logwatch/scripts/services/sendmail line 920,<br /><STDIN> line 24100 (#1)</blockquote>
<br /><br />We're using the run-of-the-mill and umodified "logwatch" from the CentOS<br />repository. I just checked a few 5210R of mine and I don't see this<br />problem on any of these. So ... no idea.<br /><br />I checked /usr/share/logwatch/scripts/services/sendmail at line 920 to<br />see what it's doing when the error happens and it's this section:<br /><br />-----------------------------------------------------------------<br /> } elsif ( ( $Host ) = ($ThisLine =~ /(.*) (\(may be forged\) )?did<br />not issue MAIL\/EXPN\/VRFY\/ETRN during connection to /) ) {<br /> # we test if they previously sent junk, because the connection is<br />expected to fail<br /> if (defined $CommandUnrecognized{$QueueID}) {<br /> $CommandUnrecognized{$QueueID} = $CommandUnrecognized{$QueueID}<br />. " ... and then exited without communicating\n";<br /> } else {<br /> $DummyConnection{$Host}++;<br /> }<br />-----------------------------------------------------------------<br /><br />So this triggers when the server is probed via "MAIL/EXPN/VRFY/ETRN"<br />*and* the email in question doesn't have a $QueueID.<br /><br />The variable $QueueID is set in line 397 of this script. But if this is<br />a server probe via VRFY for example, then that script cannot possibly<br />have a $QueueID yet, because stuff hasn't progressed far enough to<br />generate a QueueID yet.<br /><br />To me this looks like an oversight on behalf of the "logwatch" maintainers.<br /><br />My suggestion: Comment out the lines 918-924 to disable this check.<br />That's exactly the block of code I quoted above.<br /><br />Another alternative: Switch to Postfix. Logwatch will then no longer use<br />the Sendmail code snippets and will instead use the ones for Postfix.<br /><br /><span class="sig">-- <br />With best regards<br /><br />Michael Stauber<br /></span></div>
</blockquote>
</div>
<div id="signature"></div>
<p><br /></p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
</blockquote>
<img width="1" height="1" src="https://eeiabdi.r.bh.d.sendibt3.com/tr/op/FzDrs6Ns6hkfeXw4_GqlkCNa-5ddLduJU6XyNLhqcG7YAocK5QpTuykmyCefOoAWj6RoV2CyLHj1IvKN1WkgUn6S1sdkIwuuujzpSBkFyuo3WQfSctIopRQJ_r_u6gg8Nx4W6HyNEFXiS3Zc5eEXu74imAp1vrUGRptP5ucb9e6Q" alt="" /></body></html>