Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: tariqf on May 12, 2007, 08:26:49 PM
-
Hi I am running SME7.1.3 in a large school and we are having a problem with pupils sending emails to each other with unwanted spam content and swearing.
How can I get the spam filter to scan internal emails and also I really need to block any emails containing swearing.
Anyone know how to do this? I've had to turn off everyone's email access until I can get this done as there are so many emails flying around that need to be blocked.
-
Hi there, you have to alter /home/httpd/html/horde/imp/config/prefs.php:
$_prefs['alias_addr'] 'locked' => true
$_prefs['save_sent_mail'] 'value' => 0 'locked' => true
$_prefs['purge_trash'] 'value' => 1 'locked' => true
$_prefs['purge_trash_interval'] 'value' => 4 'locked' => true
$_prefs['filtering'] 'value' => 1 'locked' => true
$_prefs['attachment_display'] 'value' => 'both'
$_prefs['nav_popup'] 'value' => 1
$_prefs['use_pgp'] 'value' => 0 'locked' => true
$_prefs['tieto_addr'] locked => true
The one highlighted is the one which switches on the profanity filter. You then need to put in the words which you would like to filter out. They must be manually added to /home/httpd/html/horde/imp/config/filter.txt It's worthwhile thinking about the words you want to filter - txt speak, abbreviations and the like.
I also manage the network in a school, and have listed all of the amendments above which I made in the php.
As the kids also have the opportunity to 'masqurade' themselves as someone else through an Options setting, it's also worth changing /home/httpd/html/horde/config/prefs.php:
$_prefs['default_identity'] 'locked' => true
Hope that helps!! 8)
Regards,
Amanda
-
thanks, I've found the file which is a bit different on my 7.1.3. I changed the locked to "true" and value to 1. Do I need shared to "true"?
$_prefs['filtering'] = array(
'value' => 1,
'locked' => true,
'shared' => false,
'type' => 'checkbox',
'desc' => _("Filter message content for profanity?"));
-
No, should be fine as it is. I've just summerised the changed settings - my config.php doesn't look like i've listed either!!
Now, just list your words in the filter text file, and you're sorted.
-
ok perfect this is done now although untested I assume it will be ok.
Thanks again.
-
Quite amusing testing it - should come back with something like:
**** off you **** **** or suchlike. Doesn't block it - just replaces swearwords with ****. Very useful. Remember that Kids can blacklist those who are offensive to them.
-
as you are in using sme in a similar environment to me, have you worked out how to disable webmail for certain users/groups?
-
I'm not certain I know what you mean....in what situation would you want to do that? Is it when the kids are banned from using the internet? If so, just disable their user account for the length of time of the ban....
-
I need to allow them to login but simply ban some users from webmail so I cannot disable the account.
may have to do some php to pull a list of groups and check against the username on login but hoping there is an easier way! Have dansguardian but that will not filter local url's.
-
dungog's mailblocking contrib doesn't exist anymore as far as I can tell - that would have done what you wanted. So, there's no current way of doing this. We tend to totally ban kids from the internet and webmail at the same time.
-
....or try this: http://forums.contribs.org/index.php?topic=36897.0
-
Hi I found the message filter just what I was looking for, I too run this in a school and need a way to block out missuse of the mail system by pupils. I use the method of sending a copy of all mail to an admin account so I could read all the mail and look for swearing, bulling etc (this would evolve me or someone reading each mail so this Filter is great)
PS is it possible to get the mail server to mail an admin account if the Filter detects a banned (listed word) thanks 8)
-
Hi I applied the changes as suggested, however I noticed that if the person recieving the email clicks on reply, the WHOLE message appears including the asterisked out words!! How do stop this from happening?
Also is it possible to remove the OPTIONS button completely ?
THanks
-
Hiya,
It won't drop the email, it just asterixes out the offending words. I think it's quite amusing. No way I've found that notifies Admin. This method has been quite effective in our school - calling somebody a **** **** cannot be taken as offence - and the receiving individual can always Blacklist the person!! They can swear all they like and just receive **** in return LOL :lol: