Not a HASH reference at FromNameSpoof.pm line 319

iodisciple

Verified User
Joined
Jan 9, 2018
Messages
6
Hi,

A little hesitant in which forum this should go, so apologies when this is not correct.

For a couple of weeks these alerts are in our syslog on:

Code:
Not a HASH reference at /usr/share/perl/5.24.1/Mail/SpamAssassin/Plugin/FromNameSpoof.pm line 319

At line 319 is this code:

Code:
return 0 if ($self->{main}{conf}{fns_ignore_dkim}{$addr});

It was also discussed briefly in this thread:

http://forum.directadmin.com/showthread.php?t=56895&page=3

Any ideas what to do? Everything is up to date.

Debian 9.5
DirectAdmin 1.54.1
Custom build 2 version 1.0.23
SpamAssassin version 3.4.2
Perl version 5.24.1
 
The errors are in the mail.log and syslog. For now, since it has been weeks, I've disabled these logs to be watched by my HIDS, but I would be glad if there is a solution for this problem. This is an excerpt from the mail.log where the error is also visible with a bit more context:

Code:
Nov 15 14:55:07 shared01 spamd[31006]: spamd: connection from 127.0.0.1 [127.0.0.1]:57154 to port 783, fd 5
Nov 15 14:55:07 shared01 spamd[31006]: spamd: setuid to ignoramus succeeded
Nov 15 14:55:07 shared01 spamd[31006]: spamd: processing message <[email protected]> for ignoramus:1026
Nov 15 14:55:08 shared01 spamd[31006]: rules: failed to run DKIM_ADSP_ALL test, skipping:
Nov 15 14:55:08 shared01 spamd[31006]:  (Not a HASH reference at /usr/share/perl/5.24.1/Mail/SpamAssassin/Plugin/FromNameSpoof.pm line 319.
Nov 15 14:55:08 shared01 spamd[31006]: )
Nov 15 14:55:10 shared01 spamd[31006]: spamd: clean message (-0.5/4.0) for ignoramus:1026 in 2.5 seconds, 53861 bytes.
Nov 15 14:55:10 shared01 spamd[31006]: spamd: result: . 0 - BAYES_00,DATE_IN_PAST_12_24,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_PASS,SUBJ_ALL_CAPS,URIBL_BLOCKED scantime=2.5,size=53861,user=ignoramus,uid=1026,required_score=4.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=57154,mid=<[email protected]>,bayes=0.000000,autolearn=no autolearn_force=no
Nov 15 14:55:10 shared01 spamd[30994]: prefork: child states: II

The 'failed to run DKIM' come in multiple variations, for instance:
Code:
failed to run DKIM_ADSP_DISCARD test
failed to run DKIM_ADSP_ALL test
failed to run DKIM_ADSP_NXDOMAIN test
failed to run DKIM_ADSP_CUSTOM_LOW test
 
Will it help

Code:
cd /usr/share/perl5/Mail/SpamAssassin/Plugin
cp -p FromNameSpoof.pm FromNameSpoof.pm~orig
wget -O FromNameSpoof.pm "https://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/FromNameSpoof.pm?revision=1842029&view=co&pathrev=1842029"

and restart exim/spamd

?
 
Back
Top