]>
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,
64 dkim_sign_all_mail
=> 1,
69 # verify if we document all mail settings
70 my $plugin = PMG
::Config
::Base-
>lookup('mail');
71 my $schema = $plugin->updateSchema(1);
72 my $properties = $schema->{properties
};
74 my $found_mail_keys = {};
75 foreach my $group (keys %$key_groups) {
76 my ($sec, $hash) = @{$key_groups->{$group}};
77 next if $sec ne 'mail';
78 foreach my $k (keys %$hash) {
79 die "unknown key '$k'" if !defined($properties->{$k});
80 $found_mail_keys->{$k} = 1;
83 foreach my $k (keys %$properties) {
84 next if $skiped_keys->{$k};
85 next if $k =~ m/^max_(filters|policy|smtpd_in|smtpd_out)$/;
86 die "undocumented key '$k'" if !defined($found_mail_keys->{$k});
93 if ($single_section) {
94 if (my $a = $key_groups->{$single_section}) {
95 my ($sec, $hash) = @$a;
96 $single_section = $sec;
102 foreach my $section (@$types) {
103 my $plugin = PMG
::Config
::Base-
>lookup($section);
104 my $schema = $plugin->updateSchema(1);
105 my $properties = $schema->{properties
};
107 if (defined($single_section)) {
108 next if $section ne $single_section;
110 print ".Section '$section'\n\n";
116 my ($key, $phash) = @_;
117 return 1 if $skiped_keys->{$key};
118 return 1 if $select_keys && !$select_keys->{$key};
122 print PVE
::RESTHandler
::dump_properties
(
123 $properties, 'asciidoc', 'config', $filter);
126 if (defined($single_section)) {
127 die "no such section '$single_section'" if !$found;