]> git.proxmox.com Git - pmg-api.git/commitdiff
pmg-system-report: Add mailproxy whitelist
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 24 Apr 2020 17:01:02 +0000 (19:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Apr 2020 17:18:44 +0000 (19:18 +0200)
The pmg-system-report should report which objects are whitelisted during
the SMTP-dialog

the 3 files output contain all the information
(see PMG::Config::rewrite_postfix_whitelist) and should be faster than
opening and loading the Database

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

index 82ae5f7b81072a0c20bf76c556a333e98102e8ce..5e06b685e79a4a40179f3b3f8cb1f8f3da568767 100644 (file)
@@ -44,6 +44,7 @@ my $report_def = {
     pmg => [
        'pmgconfig dump',
        sub { dir2text('/etc/pmg/','(?:domains|mynetworks|tls_policy|transport)' ) },
     pmg => [
        'pmgconfig dump',
        sub { dir2text('/etc/pmg/','(?:domains|mynetworks|tls_policy|transport)' ) },
+       sub { dir2text('/etc/postfix/','(?:clientaccess|senderaccess|rcptaccess)' ) },
        sub { dir2text('/etc/pmg/templates/', '[^.].*' ) },
        'pmgdb dump',
     ],
        sub { dir2text('/etc/pmg/templates/', '[^.].*' ) },
        'pmgdb dump',
     ],