error /SpamAssassin/Plugin/DNSEval.pm

knorbi

New Member
Oct 20, 2022
15
0
1
Dear Proxmox Staff,
Net::DNS::RR::NS 1814 at /usr/share/perl5/Mail/SpamAssassin/Plugin/DNSEval.pm line 583, <GEN7998> line 2678.
I have a proxmox error in log. Unfortunately, this causes some emails to be lost.I couldn't find a rule among the senders, sometimes it works, sometimes it doesn't.
The Spamassassin is default.
Version:
proxmox-mailgateway: 7.3-2pmg-api: 7.3-7pmg-gui: 3.3-2pve-kernel-5.15: 7.4-4pve-kernel-5.13: 7.1-9pve-kernel-5.15.108-1-pve: 5.15.108-2pve-kernel-5.15.107-2-pve: 5.15.107-2pve-kernel-5.15.104-1-pve: 5.15.104-2pve-kernel-5.15.102-1-pve: 5.15.102-1pve-kernel-5.15.85-1-pve: 5.15.85-1pve-kernel-5.15.83-1-pve: 5.15.83-1pve-kernel-5.15.74-1-pve: 5.15.74-1pve-kernel-5.15.64-1-pve: 5.15.64-1pve-kernel-5.15.60-2-pve: 5.15.60-2pve-kernel-5.13.19-6-pve: 5.13.19-15pve-kernel-5.13.19-1-pve: 5.13.19-3clamav-daemon: 0.103.8+dfsg-0+deb11u1ifupdown2: 3.1.0-1+pmx4libarchive-perl: 3.4.0-1libjs-extjs: 7.0.0-1libjs-framework7: 4.4.7-1libproxmox-acme-perl: 1.4.4libproxmox-acme-plugins: 1.4.4libpve-apiclient-perl: 3.2-1libpve-common-perl: 7.4-2libpve-http-server-perl: 4.2-3libxdgmime-perl: 1.0-1lvm2: 2.03.11-2.1pmg-docs: 7.3-3pmg-i18n: 2.12-1pmg-log-tracker: 2.3.2-1postgresql-13: 13.11-0+deb11u1proxmox-mini-journalreader: 1.3-1proxmox-offline-mirror-helper: 0.5.2proxmox-spamassassin: 4.0.0-2proxmox-widget-toolkit: 3.7.3pve-firmware: 3.6-5pve-xtermjs: 4.16.0-2zfsutils-linux: 2.1.11-pve1
 
this is sample log:
Aug 18 08:03:56 smtp pmg-smtp-filter[175821]: WARNING: async: query 31250/IN/NS/posta.hu completed, callback NS/posta.hu failed: *** FATAL PROGRAM ERROR!! Unknown instance method "mname"*** which the program has attempted to call for the object:***posta.hu. 390 IN NS ns1.posta.hu.****** THIS IS A BUG IN THE CALLING SOFTWARE, which incorrectly assumes*** that the object would be of a particular type. The type of an*** object should be checked before calling any of its methods.***Net::DNS::RR::NS 1814 at /usr/share/perl5/Mail/SpamAssassin/Plugin/DNSEval.pm line 583, <GEN5359> line 357. Mail::SpamAssassin::plugin::DNSEval::complete_ns_lookup(Mail::SpamAssassin::plugin::DNSEval=HASH(0x55cb1db4e198), Mail::SpamAssassin::perMsgStatus=HASH(0x55cb1f86dcc0), HASH(0x55cb258cc0c8), Net::DNS::packet=HASH(0x55cb2555e1a8), "posta.hu") called at /usr/share/perl5/Mail/SpamAssassin/Plugin/DNSEval.pm line 559 Mail::SpamAssassin::plugin::DNSEval::__ANON__(HASH(0x55cb258cc0c8), Net::DNS::packet=HASH(0x55cb2555e1a8)) called at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 364 eval {...} called at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 365 Mail::SpamAssassin::AsyncLoop::__ANON__(Net::DNS::packet=HASH(0x55cb2555e1a8), "31250/IN/NS/posta.hu", 1692338636.88034) called at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 873 Mail::SpamAssassin::DnsResolver::poll_responses(Mail::SpamAssassin::DnsResolver=HASH(0x55cb1fee99b0), 0) called at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 574 eval {...} called at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 634 Mail::SpamAssassin::AsyncLoop::complete_lookups(Mail::SpamAssassin::AsyncLoop=HASH(0x55cb1f948f58), 0, 0) called at /usr/share/perl5/Mail/SpamAssassin/Dns.pm line 373 Mail::SpamAssassin::perMsgStatus::harvest_completed_queries(Mail::SpamAssassin::perMsgStatus=HASH(0x55cb1f86dcc0)) called at /usr/share/perl5/Mail/SpamAssassin/Plugin/Check.pm line 148 Mail::SpamAssassin::plugin::Check::check_main(Mail::SpamAssassin::plugin::Check=HASH(0x55cb1db4df70), HASH(0x55cb1f2e6428)) called at /usr/share/perl5/Mail/SpamAssassin/PluginHandler.pm line 220 eval {...} called at /usr/share/perl5/Mail/SpamAssassin/PluginHandler.pm line 222 Mail::SpamAssassin::pluginHandler::callback(Mail::SpamAssassin::pluginHandler=HASH(0x55cb1db11aa0), "check_main", HASH(0x55cb1f2e6428)) called at /usr/share/perl5/Mail/SpamAssassin.pm line 2296 Mail::SpamAssassin::call_plugins(Mail::SpamAssassin=HASH(0x55cb1943e610), "check_main", HASH(0x55cb1f2e6428)) called at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 424 Mail::SpamAssassin::perMsgStatus::check_timed(Mail::SpamAssassin::perMsgStatus=HASH(0x55cb1f86dcc0), Mail::SpamAssassin::Timeout=HASH(0x55cb1f2a7c90), CODE(0x55cb1e3d39d0), 0) called at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 373 Mail::SpamAssassin::perMsgStatus::__ANON__ called at /usr/share/perl5/Mail/SpamAssassin/Timeout.pm line 219 eval {...} called at /usr/share/perl5/Mail/SpamAssassin/Timeout.pm line 235 Mail::SpamAssassin::Timeout::_run(Mail::SpamAssassin::Timeout=HASH(0x55cb1f2a7c90), CODE(0x55cb1e3d39d0), 0) called at /usr/share/perl5/Mail/SpamAssassin/Timeout.pm line 138 Mail::SpamAssassin::Timeout::run(Mail::SpamAssassin::Timeout=HASH(0x55cb1f2a7c90), CODE(0x55cb1e3d39d0)) called at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 373 Mail::SpamAssassin::perMsgStatus::check(Mail::SpamAssassin::perMsgStatus=HASH(0x55cb1f86dcc0)) called at /usr/share/perl5/Mail/SpamAssassin.pm line 582 Mail::SpamAssassin::check(Mail::SpamAssassin=HASH(0x55cb1943e610), Mail::SpamAssassin::Message=HASH(0x55cb1fef97f0)) called at /usr/share/perl5/PMG/RuleDB/Spam.pm line 413 eval {...} called at /usr/share/perl5/PMG/RuleDB/Spam.pm line 386 PMG::RuleDB::Spam::analyze_spam(PMG::RuleDB::Spam=HASH(0x55cb23dd6e68), PMG::MailQueue=HASH(0x55cb23dc0430), MIME::Entity=HASH(0x55cb1f7687a0), HASH(0x55cb25584658)) called at /usr/share/perl5/PMG/RuleDB/Spam.pm line 177 PMG::RuleDB::Spam::what_match_targets(PMG::RuleDB::Spam=HASH(0x55cb23dd6e68), PMG::MailQueue=HASH(0x55cb23dc0430), MIME::Entity=HASH(0x55cb1f7687a0), HASH(0x55cb25584658), DBI::db=HASH(0x55cb2501e2f8)) called at /usr/share/perl5/PMG/RuleCache.pm line 323 PMG::RuleCache::what_match(PMG::RuleCache=HASH(0x55cb1f90d728), 9, PMG::MailQueue=HASH(0x55cb23dc0430), MIME::Entity=HASH(0x55cb1f7687a0), HASH(0x55cb25584658), DBI::db=HASH(0x55cb2501e2f8)) called at /usr/bin/pmg-smtp-filter line 266 main::apply_rules(main=HASH(0x55cb1dabfeb0), PMG::MailQueue=HASH(0x55cb23dc0430), HASH(0x55cb25584658), MIME::Entity=HASH(0x55cb1f7687a0), PMG::LDAPSet=HASH(0x55cb25032d30)) called at /usr/bin/pmg-smtp-filter line 754 eval {...} called at /usr/bin/pmg-smtp-filter line 616 main::handle_smtp(main=HASH(0x55cb1dabfeb0), PMG::SMTP=HASH(0x55cb1f975310)) called at /usr/share/perl5/PMG/SMTP.pm line 147 eval {...} called at /usr/share/perl5/PMG/SMTP.pm line 147 PMG::SMTP::loop(PMG::SMTP=HASH(0x55cb1f975310), CODE(0x55cb1da86610), main=HASH(0x55cb1dabfeb0), 19) called at /usr/bin/pmg-smtp-filter line 845 eval {...} called at /usr/bin/pmg-smtp-filter line 829 main::process_request(main=HASH(0x55cb1dabfeb0), Net::Server::proto::TCP=GLOB(0x55cb24fe41e0)) called at /usr/share/perl5/Net/Server.pm line 72 Net::Server::run_client_connection(main=HASH(0x55cb1dabfeb0)) called at /usr/share/perl5/Net/Server/PreFork.pm line 225 eval {...} called at /usr/share/perl5/Net/Server/PreFork.pm line 225 Net::Server::preFork::run_child(main=HASH(0x55cb1dabfeb0)) called at /usr/share/perl5/Net/Server/PreFork.pm line 183 Net::Server::preFork::run_n_children(main=HASH(0x55cb1dabfeb0), 1) called at /usr/share/perl5/Net/Server/PreFork.pm line 380 Net::Server::preFork::coordinate_children(main=HASH(0x55cb1dabfeb0)) called at /usr/share/perl5/Net/Server/PreFork.pm line 327 Net::Server::preFork::run_parent(main=HASH(0x55cb1dabfeb0)) called at /usr/share/perl5/Net/Server/PreFork.pm line 109 Net::Server::preFork::loop(main=HASH(0x55cb1dabfeb0)) called at /usr/share/perl5/Net/Server.pm line 58 Net::Server::run(main=HASH(0x55cb1dabfeb0)) called at /usr/bin/pmg-smtp-filter line 936
 
Please use [code] tags for logs and traces - else it's not easily readable...

* do you have any custom spamassassin configuration/plugins/adapations?
* please provide `pmgversion -v`
* how is your DNS setup? (what's the resolver used by PMG - how does your /etc/resolv.conf look)?[/code]
 
Last edited:
Please use
Code:
 tags for logs and traces - else it's not easily readable...

* do you have any custom spamassassin configuration/plugins/adapations?
* please provide `pmgversion -v`
* how is your DNS setup? (what's the resolver used by PMG - how does your /etc/resolv.conf look)?
Hy Stoiko,
1:
I don't use custom spamassassin config.
2:
proxmox-mailgateway: 7.3-2 (API: 7.3-7/4d06ead9, running kernel: 5.15.108-1-pve)
pmg-api: 7.3-7
pmg-gui: 3.3-2
pve-kernel-5.15: 7.4-4
pve-kernel-5.13: 7.1-9
pve-kernel-5.15.108-1-pve: 5.15.108-2
pve-kernel-5.15.107-2-pve: 5.15.107-2
pve-kernel-5.15.104-1-pve: 5.15.104-2
pve-kernel-5.15.102-1-pve: 5.15.102-1
pve-kernel-5.15.85-1-pve: 5.15.85-1
pve-kernel-5.15.83-1-pve: 5.15.83-1
pve-kernel-5.15.74-1-pve: 5.15.74-1
pve-kernel-5.15.64-1-pve: 5.15.64-1
pve-kernel-5.15.60-2-pve: 5.15.60-2
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.13.19-1-pve: 5.13.19-3
clamav-daemon: 0.103.8+dfsg-0+deb11u1
ifupdown2: 3.1.0-1+pmx4
libarchive-perl: 3.4.0-1
libjs-extjs: 7.0.0-1
libjs-framework7: 4.4.7-1
libproxmox-acme-perl: 1.4.4
libproxmox-acme-plugins: 1.4.4
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.4-2
libpve-http-server-perl: 4.2-3
libxdgmime-perl: 1.0-1
lvm2: 2.03.11-2.1
pmg-docs: 7.3-3
pmg-i18n: 2.12-1
pmg-log-tracker: 2.3.2-1
postgresql-13: 13.11-0+deb11u1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.2
proxmox-spamassassin: 4.0.0-2
proxmox-widget-toolkit: 3.7.3
pve-firmware: 3.6-5
pve-xtermjs: 4.16.0-2
zfsutils-linux: 2.1.11-pve1
3:
nameserver 192.168.100.1 /*(this is router)
nameserver 8.8.8.8


Best Regards:
Norbert Kis
 

Attachments

  • log.txt
    9.7 KB · Views: 4
Do you maybe have spamhaus-dqs installed on that system? - there are a few threads in this forum with similar descriptions - and all affected users used spamhaus-dqs
 
There is nothing completely basic, I don't even understand it that much.
The whole proxmox base is set only on filtering.
 
Last edited:
hmm - that's odd - does DNS resolution work in general on the PMG?

please also provide:
* `spamassassin -Dall --lint > sa-lint.out 2>&1` (it will generate a file sa-lint.out)
maybe then we can see where the issue is
 
Ok - on a first glance nothing stands out (sadly).

does DNS-resolution work in general on the box?:
* `apt install bind9-dnsutils` (to get the `dig` command)
* `dig ns plutius.com.`
* `dig mx plutius.com`
* `dig plutius.com`

post the results as [code]
 
hy Stoiko
Of course, everything works, there is only this log entry.
 

Attachments

  • dig.txt
    2.2 KB · Views: 3
Hm - actually diffing the spamassassin lint output - what's the contents of your:
/root/.spamassassin/user_prefs
?
 
Hm - actually diffing the spamassassin lint output - what's the contents of your:
/root/.spamassassin/user_prefs
?
hy stoiko, attachment
I don't have such a folder.
 

Attachments

  • spamassasin.png
    spamassasin.png
    16.3 KB · Views: 4
Last edited:
Sadly I'm unable to reproduce the issue here - and I did not find too many fitting hits - as said above

Just in case - you did try rebooting the PMG?
(while this still would be odd if it fixes things)
 
could you share the complete contents of /etc/mail/spamassassin
 
not a listing of the files - but the complete files - put them in a tarball/zip please
 
I'm not a big linux wizard :(. Winscp worked.
 

Attachments

  • spamassassin.zip
    17.9 KB · Views: 2

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!