From a18c67c0fa8a5ca3da6f0b8833e2b45037e243ee Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 2 Jan 2018 10:11:49 +0100 Subject: [PATCH] gen-pmg.conf.5-opts.pl - skip digest and delete properties --- gen-pmg.conf.5-opts.pl | 10 +++++++- pmg.conf.5-opts.adoc | 54 +++--------------------------------------- 2 files changed, 12 insertions(+), 52 deletions(-) diff --git a/gen-pmg.conf.5-opts.pl b/gen-pmg.conf.5-opts.pl index 601d14f..32e3efc 100755 --- a/gen-pmg.conf.5-opts.pl +++ b/gen-pmg.conf.5-opts.pl @@ -17,8 +17,16 @@ foreach my $section (@$types) { my $properties = $schema->{properties}; print ".Section '$section'\n\n"; + + my $filter = sub { + my ($key, $phash) = @_; + return 1 if $key eq 'digest'; + return 1 if $key eq 'delete'; + return 0; + }; - print PVE::RESTHandler::dump_properties($properties); + print PVE::RESTHandler::dump_properties( + $properties, 'asciidoc', 'config', $filter); } exit(0); diff --git a/pmg.conf.5-opts.adoc b/pmg.conf.5-opts.adoc index d3d52fa..71a6338 100644 --- a/pmg.conf.5-opts.adoc +++ b/pmg.conf.5-opts.adoc @@ -8,18 +8,10 @@ Use advanced filters for statistic. Send daily reports. -`delete`: `` :: - -A list of settings you want to delete. - `demo`: `` ('default =' `0`):: Demo mode - do not start SMTP filter. -`digest`: `` :: - -Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. - `email`: `` ('default =' `admin@domain.tld`):: Administrator E-Mail address. @@ -54,14 +46,6 @@ Files larger than this limit won't be scanned. ClamAV database mirror server. -`delete`: `` :: - -A list of settings you want to delete. - -`digest`: `` :: - -Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. - `maxcccount`: ` (0 - N)` ('default =' `0`):: This option sets the lowest number of Credit Card or Social Security numbers found in a file to generate a detect. @@ -88,14 +72,6 @@ How many simultaneous connections any client is allowed to make to this service. The maximal number of connection attempts any client is allowed to make to this service per minute. To disable this feature, specify a limit of 0. -`delete`: `` :: - -A list of settings you want to delete. - -`digest`: `` :: - -Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. - `dnsbl_sites`: `` :: Optional list of DNS white/blacklist domains (see postscreen_dnsbl_sites parameter). @@ -188,10 +164,6 @@ Add TLS received header. Enable TLS Logging. -`use_rbl`: `` ('default =' `1`):: - -Use Realtime Blacklists. - `verifyreceivers`: `<450 | 550>` :: Enable receiver verification. The value spefifies the numerical reply code when the Postfix SMTP server rejects a recipient address. @@ -202,19 +174,15 @@ Enable receiver verification. The value spefifies the numerical reply code when Additional score for bounce mails. -`delete`: `` :: - -A list of settings you want to delete. +`clamav_heuristic_score`: ` (0 - 1000)` ('default =' `3`):: -`digest`: `` :: - -Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. +Score for ClamaAV heuristics (Google Safe Browsing database, PhishingScanURLs, ...). `languages`: `(all|([a-z][a-z])+( ([a-z][a-z])+)*)` ('default =' `all`):: This option is used to specify which languages are considered OK for incoming mail. -`maxspamsize`: ` (64 - N)` ('default =' `204800`):: +`maxspamsize`: ` (64 - N)` ('default =' `262144`):: Maximum size of spam messages in bytes. @@ -248,14 +216,6 @@ Allow to view hyperlinks. Authentication mode to access the quarantine interface. Mode 'ticket' allows login using tickets sent with the daily spam report. Mode 'ldap' requires to login using an LDAP account. Finally, mode 'ldapticket' allows both ways. -`delete`: `` :: - -A list of settings you want to delete. - -`digest`: `` :: - -Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. - `hostname`: `` :: Quarantine Host. Usefule if you run a Cluster and want users to connect to a specific host. @@ -282,14 +242,6 @@ Allow to view images. Allow to view hyperlinks. -`delete`: `` :: - -A list of settings you want to delete. - -`digest`: `` :: - -Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. - `lifetime`: ` (1 - N)` ('default =' `7`):: Quarantine life time (days) -- 2.39.2