Add Spamassassin channels to the GUI

chmaeuer

Member
Jan 30, 2018
6
0
6
27
Hello,

I was wondering where and how it is possible to add channels to the Spamassassin update channels list in the GUI. I've added several via sa-update command but they don't pop up in the GUI afterwards.


Thanks,
Chris
 
I now worked around as followed:

# apt-get install re2c
# cd /etc/cron.hourly && wget sa.schaal-it.net/sa-update && chown root.root sa-update && chmod 755 sa-update
# vi sa-update
# ./sa-update

With the following contents:

#!/bin/sh

# schaal @it
#
# Simple script to update SpamAssassin

SYSLOG_TAG=sa-update

compile=0

logger -d -t $SYSLOG_TAG "Start SA-Update"

sa-update --nogpg
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi


sa-update --nogpg --channel updates.spamassassin.org
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

sa-update --nogpg --channel sa.zmi.at
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

sa-update --nogpg --channel sa.schaal-it.net
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

sa-update --nogpg --channel sought.rules.yerp.org
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

sa-update --nogpg --channel spamassassin.heinlein-support.de
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

if [ $compile -eq 1 ]; then
logger -d -t $SYSLOG_TAG "SA-Update found"
sa-compile
systemctl restart pmg-smtp-filter.service
else
logger -d -t $SYSLOG_TAG "No SA-Update found"
fi

Hope this works. I found 4 channels, which look fine, but I'm open for suggestions.

Next thing maybe would be to test http://artinvoice.hu/spams/
 
Hi Thanks for this nice informaiton

i have implemented the update procedure as described here.

the .cf files are downloaded.

-----
/var/lib/spamassassin/3.004002

sa_schaal-it_net sa_zmi_at sought_rules_yerp_org spamassassin_heinlein-support_de.cf updates_spamassassin_org
sa_schaal-it_net.cf sa_zmi_at.cf spamassassin_heinlein-support_de spamassassin_heinlein-support_del updates_spamassassin_org.cf

QUESTIONS:

- how can i easily test if spam detection with the new rules are working ?
- do i have to reference them somewhere or does this happen in background ?

I would appreciate any help / info.
thx
 
Hi Thanks for this nice informaiton

i have implemented the update procedure as described here.

the .cf files are downloaded.

-----
/var/lib/spamassassin/3.004002

sa_schaal-it_net sa_zmi_at sought_rules_yerp_org spamassassin_heinlein-support_de.cf updates_spamassassin_org
sa_schaal-it_net.cf sa_zmi_at.cf spamassassin_heinlein-support_de spamassassin_heinlein-support_del updates_spamassassin_org.cf

QUESTIONS:

- how can i easily test if spam detection with the new rules are working ?
- do i have to reference them somewhere or does this happen in background ?

I would appreciate any help / info.
thx

1. Running SA in Debug Mode may show you, that the rules are used. Otherwise just check your mails in tracking center for occurrence of some of the rules introduced here. Yerp is offline, you shouldn't use any more.

2. No, the rules are referenced via include "automatically". However you need to restart pmg-smtp-filter to get them running. You may use my update script, which will perform updating the rules as well reloading pmg-smtp-filter itself.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!