[pmg-devel] SpamAssassin

Stoiko Ivanov s.ivanov at proxmox.com
Wed Nov 13 20:55:39 CET 2019


Hi,

sorry for picking this up so late!


On Tue, Jul 02, 2019 at 08:40:03AM +0000, Christian Heutger wrote:
> Hi,
> 
>  
> 
> I have a question about the template system. I recently activated some extra scans on PMG, which have to been enable in vxxx.pre files. PMG itself has/had files until v320.pre.in but miss any newer files. As I now did the changes because of that directly in /etc/mail/spamassassin/vxxx.pre, how can I prevent this files from being overwritten once PMG provides additional templates for vxxx.pre? I learned, that the templates of /etc/pmg/templates, if exist, are only used, if they exist there and if templates exist in /var/lib/pmg/templates, they are used as well, although nothing exist in /etc/pmg/templates therefor, so I can’t “block” by not copying anything higher than v320.pre.in to /etc/pmg/templates. Any ideas?
> 
hmm - we just had a similar request in the (german) forum [0] - maybe the answer
there helps already some (it contains the list of which pre-files are
currently touched by the templating system).

I just ran a quick test here - the proposed solution should work:
* create your own custom file which gets loaded after the vXXX.pre files -
that way if PMG ships some other version-specific .pre files in the future
your local config will be preserved. spamassassin seems to follow symlinks
when loading config-files - so you can even put it in a synced location
(/etc/pmg/templates on the master-node) and symlink to
/etc/mail/spamassassin/ on all nodes to get it consistently in the cluster.

One modification which might not work as wished is the case when PMG ships
a new file which loads a plugin, which you explicitly do not want to load
- in that case you'd need to adapt the template shipped by PMG)

What do you want to block in your setup? Would the workaround work for you?


[0] https://forum.proxmox.com/threads/konfiguration-plugins.60087/
>  
> 
> Regards,
> 
> Christian
> 



> _______________________________________________
> pmg-devel mailing list
> pmg-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel




More information about the pmg-devel mailing list