[pmg-devel] [PATCH pmg-api 3/3] pmg-system-report: Add mailproxy whitelist

Stoiko Ivanov s.ivanov at proxmox.com
Fri Apr 24 19:01:02 CEST 2020


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 at proxmox.com>
---
 src/PMG/Report.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PMG/Report.pm b/src/PMG/Report.pm
index 82ae5f7..5e06b68 100644
--- a/src/PMG/Report.pm
+++ b/src/PMG/Report.pm
@@ -44,6 +44,7 @@ my $report_def = {
     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',
     ],
-- 
2.20.1




More information about the pmg-devel mailing list