]> git.proxmox.com Git - pmg-docs.git/blobdiff - gen-pmg.conf.5-opts.pl
bump version to 7.2-1
[pmg-docs.git] / gen-pmg.conf.5-opts.pl
index 37f61419cb7621d56a7d3943056d80c504c03439..23cad7c18d87166500a7c616d377b408836b956c 100755 (executable)
@@ -30,6 +30,9 @@ my $key_groups = {
            dnsbl_threshold => 1,
            verifyreceivers => 1,
            greylist => 1,
+           greylistmask4 => 1,
+           greylist6 => 1,
+           greylistmask6 => 1,
            spf => 1,
            hide_received => 1,
            dwarning => 1,
@@ -79,14 +82,21 @@ if (1) {
        my ($sec, $hash) = @{$key_groups->{$group}};
        next if $sec ne 'mail';
        foreach my $k (keys %$hash) {
-           die "unknown key '$k'" if !defined($properties->{$k});
+           if (!defined($properties->{$k})) {
+               warn "\n WARNING: unknown key '$k'";
+               next;
+           }
            $found_mail_keys->{$k} = 1;
        }
     }
     foreach my $k (keys %$properties) {
        next if $skiped_keys->{$k};
        next if $k =~ m/^max_(filters|policy|smtpd_in|smtpd_out)$/;
-       die "undocumented key '$k'" if !defined($found_mail_keys->{$k});
+
+       if (!defined($found_mail_keys->{$k})) {
+           die "undocumented key '$k'" if !$ENV{PMG_DOCS_IGNORE_MISSING_KEY};
+           warn "WARNING: undocumented key '$k'\n";
+       }
     }
 }