Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: crusader on February 05, 2007, 01:18:12 PM
-
How do I handle spam with standard installation spamassassin within the sme 7.0?
I have some spam tagged E-mails now but I don't know how to whitelist them or just get spamassassin to learn it. Is there some ham and spam address where I can send spam tagged mails or do I have to set it up first?
Is there any solution for this? I don't want to change anything in case there is already a solution for my problem and I would destroy it with my actions.
Thank you
Sebastian
-
If there is a way to blacklist and whitelist addresses I would be interested to.
-
Use this howto: http://www.sonoracomm.com/index.php?option=com_content&task=view&id=49&Itemid=32
And next time use the search function because this was discussed in a number of posts.
-
crusader
> I have some spam tagged E-mails now but I don't know how to whitelist them or just get spamassassin to learn it.
If spamassassin has tagged them as spam, then it already knows about those types of messages, so they don't need to be added to any database.
You can set sme to deliver the tagged spam to the junkmail folder if you use IMAP folders for email.
The sonoracom howto referred to is to allow you to manually move unidentified spam that arrives in your Inbox to the LearnAsSpam folder so that the spamassassin filter bayesian database learns from it, so that in future it does identify those types of messages as spam and send them to the junkmail folder.
Note that you can also set a custom level in sme to reject spam messages that have a higher score than the threshold, so you never see those messages at all.
Whitelisting & Blacklisting only act on delivery to the junkmail folder ie never or always.
Using the command line, you can add senders addresses to whitelists or blacklists so they will never be identified as spam or always identified as spam respectively. This has been answered a number of times, search forums on "whitelist" "blacklist" or "db spamassassin".
Here's the answer:
If there was a server manager panel in sme7 for the white list entries (which there is not at present) then the whitelist entries would go into the spamassassin db.
See below for the format.
You need to put them there manually, either directly editing the spamassassin db or by using the db... command.
When you expand templates and restart spamassassin it will read the data into /etc/mail/spamassassin/local.cf
db spamassassin show
db spamassassin setprop wbl.global name@domain White
db spamassassin setprop wbl.global name@domain Black
eg
db spamassassin setprop wbl.global johnb@yahoo.com White
db spamassassin setprop wbl.global *@xyz.com White
db spamassassin setprop wbl.global badname@junkdomain.com Black
db spamassassin setprop wbl.global *@baddomain.com Black
expand-template /etc/mail/spamassassin/local.cf
svc -t /service/spamd
There are templates in /etc/e-smith/templates/etc/mail/spamassassin/local.cf that relate to this.