]> git.proxmox.com Git - pmg-api.git/commit
close #1917: add pmg-system-report command
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 11 Feb 2019 14:43:06 +0000 (15:43 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 12 Feb 2019 09:27:41 +0000 (10:27 +0100)
commit275e62509c76d75d5965f3582ac74dad9d8551ef
tree0f51a68cd2a49674d1187a1776b2702c7825c34b
parentd3d54e6864e5a848306c4aff713e4f13b3a47afa
close #1917: add pmg-system-report command

pmg-system-report gathers information about a PMG installation, like
pvereport does for PVE.

The name was chosen because pmgreport is already taken (for the daily
reportmails).

The DNS resolution check uses SpamAssassin's internal DnsResolver, since
SpamAssassin has a few pecularities, e.g. only using the first entry in
/etc/resolv.conf - see [0] and Mail::SpamAssassin::DnsResolver and
spam-detection is abysmal if SpamAssassin cannot resolve RBL-entries.
The SpamAssassin initialization is taken from pmg-smtp-filter (except that
local_tests_only is unconditionally disabled (otherwise it would not do DNS
Resolution).

[0] https://wiki.apache.org/spamassassin/DnsBlocklists

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PMG/Report.pm [new file with mode: 0644]
bin/pmg-system-report [new file with mode: 0755]