There are two problems.  The code that parses your filter will happily
read the example you give and even match the 'body' rule, if the mail
isn't to anyone at 'mycompany.com' (because the first matching rule is
the rule that is used).  So the first problem is that mail to anyone
at 'mycompany.com' will not be filtered for "badword"s.
I know, that's the point.  If an employee sends something internally, I don't care.  I only want to filter mail to other people outside the company.

TMDA is all about challenge/response-style spam reduction but is not a
general purpose mail filter.
Well, perhaps it's time I wrote that functionality... :)


Tim Legant wrote:
Carlos Averett <[EMAIL PROTECTED]> writes:

  
Is there any way to filter outgoing mail in the same way as incoming?
    

No, there's not.

  
For example, I would like to have something like the following as an
shared outgoing filter:


to [EMAIL PROTECTED] default
body "badword1|badword2" reject
    

There are two problems.  The code that parses your filter will happily
read the example you give and even match the 'body' rule, if the mail
isn't to anyone at 'mycompany.com' (because the first matching rule is
the rule that is used).  So the first problem is that mail to anyone
at 'mycompany.com' will not be filtered for "badword"s.

The second problem is that, although the 'body' rule will match other
mail, incoming rules aren't supported by tmda-sendmail, so what you'll
end up with (I think), is a header field named 'Incoming:' with your
base email address as its contents.  Something like this:

Incoming: Carlos Averett <[EMAIL PROTECTED]>

That's probably *not* what you want. :)

  
Besides filtering obscene messages, It would be nice to be able to
filter out viruses and the like as well.
    

It's probably best to do this before the mail reaches TMDA using tools
specially created for the job, like amavis-new and/or ClamAV, etc.
TMDA is all about challenge/response-style spam reduction but is not a
general purpose mail filter.


Tim

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users
  

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to