]> git.proxmox.com Git - pmg-api.git/commit
report: adapt to changes in SpamAssassin DNS api
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 27 Jun 2023 09:00:27 +0000 (11:00 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Jun 2023 09:22:39 +0000 (11:22 +0200)
commitc7fd30ebab18e30aa55301640d5f4dec422b3a94
tree21d8f66f9607d32ff9acd13e8e5c23aa6bbcfc45
parent9972a7ce1690fcb0c39ae64dfe55e11b7aace8b0
report: adapt to changes in SpamAssassin DNS api

SpamAssassin 4.0 changed the way it does DNS-lookups a bit (switched
to asynchronous lookups) - this broke pmg-system-report, since we use
the SpamAssassin API to check that DNS-resolution works.  The reason
for this is that SA used to take only the first entry from
/etc/resolv.conf - and SA being able to do correct resolution is
critical for it to work.

This patch fixes the incompatible use of the DNS-API, but does not
change to the asynchronous model.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
src/PMG/Report.pm