The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'E-mail Discussions' started by bloatedstoat, May 17, 2016.

Tags:
  1. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    83
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    So here's a new one in our maillog:

    Code:
    May 18 09:28:50 ourserver spamd[728224]: 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, <GEN438> line 615.
    Anyone else getting this?
    Thank you.
     
  2. zgia

    zgia Member

    Joined:
    Jul 8, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,263
    Likes Received:
    995
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    83
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    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:

    Code:
    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
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,263
    Likes Received:
    995
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  6. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    83
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    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:

    Code:
    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
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,263
    Likes Received:
    995
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,263
    Likes Received:
    995
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  9. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,296
    Likes Received:
    41
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    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.
    Code:
    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
     
    #9 mtindor, Aug 16, 2016
    Last edited by a moderator: Aug 16, 2016
  10. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    83
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    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
     
    #10 bloatedstoat, Aug 16, 2016
    Last edited: Aug 16, 2016
  11. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    83
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator

    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.
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,263
    Likes Received:
    995
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    This is correct. The issue is tracked at:

    Bug 7196 – PerMsgStatus Warning

    Thank you.
     
  13. dcusimano

    dcusimano Member

    Joined:
    Feb 24, 2008
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Toronto, Ontario, Canada
    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, <GEN438> 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, <GEN14> 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").
     
    cPanelMichael likes this.
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,263
    Likes Received:
    995
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  15. dcusimano

    dcusimano Member

    Joined:
    Feb 24, 2008
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Toronto, Ontario, Canada
    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, <GEN14> 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.
     
    cPanelMichael likes this.
  16. dcusimano

    dcusimano Member

    Joined:
    Feb 24, 2008
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Toronto, Ontario, Canada
    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.
     
Loading...

Share This Page