Koozali.org: home of the SME Server

filter spam for internal emails? block swearing?

Offline tariqf

  • *****
  • 179
  • +0/-0
filter spam for internal emails? block swearing?
« 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.

Offline f21970

  • ***
  • 53
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #1 on: May 14, 2007, 02:30:59 PM »
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
...

Offline tariqf

  • *****
  • 179
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #2 on: May 14, 2007, 02:58:33 PM »
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?"));

Offline f21970

  • ***
  • 53
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #3 on: May 14, 2007, 03:11:15 PM »
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.
...

Offline tariqf

  • *****
  • 179
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #4 on: May 14, 2007, 03:43:08 PM »
ok perfect this is done now although untested I assume it will be ok.

Thanks again.

Offline f21970

  • ***
  • 53
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #5 on: May 14, 2007, 03:59:27 PM »
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.
...

Offline tariqf

  • *****
  • 179
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #6 on: May 18, 2007, 12:17:09 PM »
as you are in using sme in a similar environment to me, have you worked out how to disable webmail for certain users/groups?

Offline f21970

  • ***
  • 53
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #7 on: May 21, 2007, 10:14:09 AM »
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....
...

Offline tariqf

  • *****
  • 179
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #8 on: May 21, 2007, 10:32:32 AM »
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.

Offline f21970

  • ***
  • 53
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #9 on: May 21, 2007, 10:48:44 AM »
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.
...

Offline f21970

  • ***
  • 53
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #10 on: May 21, 2007, 11:44:18 AM »
...

FISKO

Message Filter
« Reply #11 on: May 21, 2007, 09:50:36 PM »
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)

FISKO

Mail filter
« Reply #12 on: May 22, 2007, 10:03:39 PM »
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

Offline f21970

  • ***
  • 53
  • +0/-0
filter spam for internal emails? block swearing?
« Reply #13 on: May 23, 2007, 10:47:05 AM »
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:
...