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
