]>
git.proxmox.com Git - pmg-docs.git/blob - gen-pmg.conf.5-opts.pl
12 my $types = PMG
::Config
::Base-
>lookup_types;
14 my $single_section = shift;
27 rejectunknownsender
=> 1,
36 conn_count_limit
=> 1,
38 message_rate_limit
=> 1,
40 before_queue_filtering
=> 1,
66 dkim_sign_all_mail
=> 1,
71 # verify if we document all mail settings
72 my $plugin = PMG
::Config
::Base-
>lookup('mail');
73 my $schema = $plugin->updateSchema(1);
74 my $properties = $schema->{properties
};
76 my $found_mail_keys = {};
77 foreach my $group (keys %$key_groups) {
78 my ($sec, $hash) = @{$key_groups->{$group}};
79 next if $sec ne 'mail';
80 foreach my $k (keys %$hash) {
81 die "unknown key '$k'" if !defined($properties->{$k});
82 $found_mail_keys->{$k} = 1;
85 foreach my $k (keys %$properties) {
86 next if $skiped_keys->{$k};
87 next if $k =~ m/^max_(filters|policy|smtpd_in|smtpd_out)$/;
88 die "undocumented key '$k'" if !defined($found_mail_keys->{$k});
95 if ($single_section) {
96 if (my $a = $key_groups->{$single_section}) {
97 my ($sec, $hash) = @$a;
98 $single_section = $sec;
104 foreach my $section (@$types) {
105 my $plugin = PMG
::Config
::Base-
>lookup($section);
106 my $schema = $plugin->updateSchema(1);
107 my $properties = $schema->{properties
};
109 if (defined($single_section)) {
110 next if $section ne $single_section;
112 print ".Section '$section'\n\n";
118 my ($key, $phash) = @_;
119 return 1 if $skiped_keys->{$key};
120 return 1 if $select_keys && !$select_keys->{$key};
124 print PVE
::RESTHandler
::dump_properties
(
125 $properties, 'asciidoc', 'config', $filter);
128 if (defined($single_section)) {
129 die "no such section '$single_section'" if !$found;