+# enable/disable plugins in SA
+list=$(find /etc/spamassassin -type f -name 'v*.pre')
+for i in $list; do
+ # enable DKIM
+ cp -f $i $i.$$
+ plugin="loadplugin Mail::SpamAssassin::Plugin::DKIM"
+ cp_check_and_sed "^.*#.*$plugin.*$" \
+ "s/^.*#.*$plugin.*$/$plugin/g" $i.$$ || true
+ if ! cmp -s $i.$$ $i; then
+ mv -f $i.$$ $i
+ fi
+ rm -f $i.$$
+
+ # disable Pyzor
+ cp -f $i $i.$$
+ plugin="loadplugin Mail::SpamAssassin::Plugin::Pyzor"
+ cp_check_and_sed "^$plugin.*$" \
+ "s/^$plugin.*$/#$plugin/g" $i.$$ || true
+ if ! cmp -s $i.$$ $i; then
+ mv -f $i.$$ $i
+ fi
+ rm -f $i.$$
+
+ # disable DCC
+ cp -f $i $i.$$
+ plugin="loadplugin Mail::SpamAssassin::Plugin::DCC"
+ cp_check_and_sed "^$plugin.*$" \
+ "s/^$plugin.*$/#$plugin/g" $i.$$ || true
+ if ! cmp -s $i.$$ $i; then
+ mv -f $i.$$ $i
+ fi
+ rm -f $i.$$
+done
+