Skip to main content

Use of uninitialized value $2 in concatenation (.) or string

Comments

15 comments

  • zgia
    I have the same error after activating SpamAssassin on cpanel account. WHM 56.0 (build 16) CentOS 6 64bit May 19 19:34:44.654 [30662] warn: Use of uninitialized value in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/PerMsgStatus.pm line 3082.
    0
  • cPanelMichael
    Hello, CPANEL-3751 is open to address an issue where "Use of uninitialized value in concatenation" messages are output when enabling SpamAssassin on an account for the first time. The message should not prevent SpamAssassin from functioning as expected. I'll update this thread with more information on the status of this case as it becomes available. Thank you.
    0
  • bloatedstoat
    Hello. I note this thread is still pending a case outcome. As a heads up, I am still seeing the concatenation messages from URIDNSBL.pm but now the output is followed by a previously unseen notice in our logs:
    spamd[932396]: dns: new_dns_packet (domain=...(.sbl.spamhaus.org. type=A class=IN) failed: a domain name contains a null label spamd[932396]: dns: new_dns_packet (domain=...(.zen.spamhaus.org. type=A class=IN) failed: a domain name contains a null label
    0
  • cPanelMichael
    As a heads up, I am still seeing the concatenation messages from URIDNSBL.pm but now the output is followed by a previously unseen notice in our logs:

    Do you continue to notice the issue if you use alternate resolvers in your /etc/resolv.conf file (e.g. Google's Public DNS Resolvers)? Thank you.
    0
  • bloatedstoat
    Thanks Michael, Our resolv.conf contains: nameserver 8.8.8.8 nameserver 8.8.4.4 The errors when grepping "a domain name contains a null label" are exclusively for spamhaus.org:
    Jul 18 09:06:53 servername spamd[933650]: dns: new_dns_packet (domain=...(.sbl.spamhaus.org. type=A class=IN) failed: a domain name contains a null label Jul 18 09:06:53 servername spamd[933650]: dns: new_dns_packet (domain=...(.zen.spamhaus.org. type=A class=IN) failed: a domain name contains a null label Jul 18 09:30:10 servername spamd[7679]: dns: new_dns_packet (domain=...(.sbl.spamhaus.org. type=A class=IN) failed: a domain name contains a null label Jul 18 09:30:10 servername spamd[7679]: dns: new_dns_packet (domain=...(.zen.spamhaus.org. type=A class=IN) failed: a domain name contains a null label Jul 18 10:02:30 servername spamd[12073]: dns: new_dns_packet (domain=...(.sbl.spamhaus.org. type=A class=IN) failed: a domain name contains a null label Jul 18 10:02:30 servername spamd[12073]: dns: new_dns_packet (domain=...(.zen.spamhaus.org. type=A class=IN) failed: a domain name contains a null label
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • cPanelMichael
    Hello @bloatedstoat, I've not seen an update to this thread with reference to an opened support ticket. Were you able to open a support ticket so we can take a closer look? Thank you.
    0
  • mtindor
    I just upgraded two machines today (8-16-2016) from WHM 54 LTS to WHM 56 LTS (56.0.32). I'm getting the same errors from spamassassin. And no, that's not really my machine name in the log.
    Aug 16 07:32:56 crappyhost spamd[5340]: Use of uninitialized value $4 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042. Aug 16 07:32:56 crappyhost spamd[5340]: Use of uninitialized value $3 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042. Aug 16 07:32:56 crappyhost spamd[5340]: Use of uninitialized value $2 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042. Aug 16 07:32:56 crappyhost spamd[5340]: dns: new_dns_packet (domain=...(.sbl.spamhaus.org. type=A class=IN) failed: a domain name contains a null label Aug 16 07:32:56 crappyhost spamd[5340]: dns: new_dns_packet (domain=...(.zen.spamhaus.org. type=A class=IN) failed: a domain name contains a null label Aug 16 07:32:56 crappyhost spamd[5340]: Use of uninitialized value $4 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042. Aug 16 07:32:56 crappyhost spamd[5340]: Use of uninitialized value $3 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042. Aug 16 07:32:56 crappyhost spamd[5340]: Use of uninitialized value $2 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042.
    m
    0
  • bloatedstoat
    Hello @bloatedstoat, I've not seen an update to this thread with reference to an opened support ticket. Were you able to open a support ticket so we can take a closer look? Thank you.

    Hello, apologies, I have opened a ticket today: 7629669 To add; I've done some trawling on this issue and it seems it is documented as multiple dots in domain names which are not sanitized prior to despatch to spamhaus - perhaps the matter raised here is one and the same? spamd: dns: new_dns_packet: a domain name contains a null label | SpamAssassin | users
    0
  • bloatedstoat
    Hello, apologies, I have opened a ticket today: 7629669 To add; I've done some trawling on this issue and it seems it is documented as multiple dots in domain names which are not sanitized prior to despatch to spamhaus - perhaps the matter raised here is one and the same? spamd: dns: new_dns_packet: a domain name contains a null label | SpamAssassin | users

    To update this thread; the error was investigated, a complete reinstall of spamassassin was performed and the error persisted. The conclusion is that the error is upstream and that we must wait for SA to address the problem.
    0
  • cPanelMichael
    The conclusion is that the error is upstream and that we must wait for SA to address the problem.

    Hello, This is correct. The issue is tracked at: Bug 7196 " PerMsgStatus Warning Thank you.
    0
  • dcusimano
    With regards to the first post in this thread, regarding "Use of uninitialized value $2 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042, line 615." ... The relevant SpamAssassin bug is #7231: 7231 " Net::DNS 1.01 returns answers formatted differently, breaks SA That bug report states that a fix is targeted for release in SpamAssassin 3.4.2 I have SpamAssassin 3.4.1 and the error shows up in my /var/log/maillog as: Use of uninitialized value $4 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042, line 1397. My URIDNSBL.pm is dated 2015-04-28 12:56:47. The bug is fixed in URIDNSBL.pm Revision 1694122, Tue Aug 4 23:10:16 2015 UTC See log of Revisions for URIDNSBL.pm (page includes download links): [Apache-SVN] Log of /spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm After making a backup copy of my URIDNSBL.pm, I downloaded URIDNSBL.pm Revision 1694122. I then sent a test email to myself and it went through okay. Note: The log of Revisions shows that there is an even later URIDNSBL.pm Revision 1694129, Tue Aug 4 23:46:47 2015 UTC (for "Bug 7231: simplify overlycomplicated debug-logging in Plugin::URIDNSBL::complete_a_lookup").
    0
  • cPanelMichael
    Hello, Internal case CPANEL-9200 is included with cPanel version 62 and suppresses this non-fatal warning message when enabling SpamAssassin in the cPanel UI: Fixed case CPANEL-9200: Only show SpamAssassin setup output when something goes wrong. Thank you.
    0
  • dcusimano
    cPanelMichael, you refer to "Fixed case CPANEL-9200: Only show SpamAssassin setup output when something goes wrong." The original poster mentions additional warning messages above; perhaps you are answering in reply to those. My reply was with regards to the initial post #1. I'm talking about the following error message that appears in /var/log/maillog during normal operation, not a warning during setup: Use of uninitialized value $4 in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 1042, line 1397. The above warning is due to the way URIDNSBL.pm parses the DNS record. Only email from some domains triggers the warning (I don't know which domains trigger it; perhaps spammers?). It is fixed by URIDNSBL.pm Revision 1694122 (see my above post for the download link of the SpamAssassin trunk at apache.org). I'm using the latest SpamAssassin with the latest WHM/cPanel on a new server. This bug exists in SpamAssassin 3.4.1 and is documented at apache.org (see my previous post for bug links at apache.org). After replacing my URIDNSBL.pm with this Revision, the warning stopped appearing in my /var/log/maillog. Again, this fix in targeted for release in SpamAssassin 3.4.2. For anyone wondering about this warning, now you know what causes it, when SpamAssassin plans on releasing a fix, and how to fix it on your own if you want to. Thanks.
    0
  • dcusimano
    Note: Manually replacing/modifying the URIDNSBL.pm file will cause WHM to issue a Security Advisor notification email each day with subject "[SERVERNAME] Altered RPMs found." Do not turn off such notifications.
    0

Please sign in to leave a comment.