Am 17.02.2015 um 15:19 schrieb LuKreme:
On 16 Feb 2015, at 12:01 , Reindl Harald <h.rei...@thelounge.net> wrote:given that 24266 messages had BAYES_00 with a total number of 30401 delivered mails in the current month that training strategy seems to work well [root@mail-gw:~]$ bayes-stats.shWhat is bayes-stats.sh?
as simple shell script #!/usr/bin/dash su -c "/usr/bin/sa-learn --dump magic" sa-milt echo ""su -c "/usr/bin/ls -l -h --color=tty -X --group-directories-first --time-style=long-iso /var/lib/spamass-milter/.spamassassin/" sa-milt
echo ""su -c "echo \"BAYES_00: `grep 'BAYES_00,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_05: `grep 'BAYES_05,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_20: `grep 'BAYES_20,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_40: `grep 'BAYES_40,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_50: `grep 'BAYES_50,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_60: `grep 'BAYES_60,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_80: `grep 'BAYES_80,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_95: `grep 'BAYES_95,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_99: `grep 'BAYES_99,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron su -c "echo \"BAYES_999: `grep 'BAYES_999,' /var/log/maillog | grep -c 'spamd: result:'`\"" wwwcron
echo ""su -c "echo \"Delivered: `grep 'relay=' /var/log/maillog | grep -c 'status=sent'`\"" wwwcron su -c "echo \"SpamAssassin: `grep -c 'Blocked by SpamAssassin' /var/log/maillog`\"" wwwcron
signature.asc
Description: OpenPGP digital signature