]> git.proxmox.com Git - pmg-api.git/commitdiff
templates: add template for spamassassin's v342.pre
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 13 Mar 2023 21:23:46 +0000 (22:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 Mar 2023 15:51:28 +0000 (16:51 +0100)
The file is taken from upstream, the only change is that we only
enable the HashBL module if rbl_checks are enabled in pmg.conf

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/Makefile
src/PMG/Config.pm
src/templates/v342.pre.in [new file with mode: 0644]

index 49c797423c27d72282f0cba4ee42ca6b82be8b1b..414b1ef3d3fe5b44ed484a9895786521d0f6842e 100644 (file)
@@ -38,6 +38,7 @@ TEMPLATES =                           \
        local.cf.in                     \
        v310.pre.in                     \
        v320.pre.in                     \
+       v342.pre.in                     \
        razor-agent.conf.in             \
        freshclam.conf.in               \
        clamd.conf.in                   \
index a0b1866b78f07ca475307d0f269ec751389abd28..dce1513c86ba53b8de417c6dffa879a275aacd75 100755 (executable)
@@ -1515,6 +1515,9 @@ sub rewrite_config_spam {
     $changes = 1 if $self->rewrite_config_file(
        'v320.pre.in', '/etc/mail/spamassassin/v320.pre');
 
+    $changes = 1 if $self->rewrite_config_file(
+       'v342.pre.in', '/etc/mail/spamassassin/v342.pre');
+
     if ($use_razor) {
        mkdir "/root/.razor";
 
diff --git a/src/templates/v342.pre.in b/src/templates/v342.pre.in
new file mode 100644 (file)
index 0000000..10dcaa1
--- /dev/null
@@ -0,0 +1,39 @@
+# This is the right place to customize your installation of SpamAssassin.
+#
+# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
+# tweaked.
+#
+# This file was installed during the installation of SpamAssassin 3.4.2,
+# and contains plugin loading commands for the new plugins added in that
+# release.  It will not be overwritten during future SpamAssassin installs,
+# so you can modify it to enable some disabled-by-default plugins below,
+# if you so wish.
+#
+# There are now multiple files read to enable plugins in the
+# /etc/mail/spamassassin directory; previously only one, "init.pre" was
+# read.  Now both "init.pre", "v310.pre", and any other files ending in
+# ".pre" will be read.  As future releases are made, new plugins will be
+# added to new files, named according to the release they're added in.
+###########################################################################
+
+# HashBL - Query hashed/unhashed strings, emails, uris etc from DNS lists
+#
+[% IF pmg.spam.rbl_checks %]
+loadplugin Mail::SpamAssassin::Plugin::HashBL
+[% END %]
+
+# ResourceLimits - assure your spamd child processes
+# do not exceed specified CPU or memory limit
+#
+# loadplugin Mail::SpamAssassin::Plugin::ResourceLimits
+
+# FromNameSpoof - help stop spam that tries to spoof other domains using 
+# the from name
+#
+# loadplugin Mail::SpamAssassin::Plugin::FromNameSpoof
+
+# Phishing - finds uris used in phishing campaigns detected by
+# OpenPhish or PhishTank feeds.
+#
+# loadplugin Mail::SpamAssassin::Plugin::Phishing
+