[Mimedefang] avoiding multiple SA checks in MD filter

Torsten Eberhardt torsten.eberhardt at fireball.de
Thu Apr 22 09:37:36 EDT 2004


Hi Michal,

> The mail system in my office is a bit complicated and, for some users,
> messages are send through more than one mail server. I'd like to avoid
> multiple SA checks but I don't know how to do it.

you could try something like this :

if ((-s "./INPUTMSG" < 100*1024) && ($RelayAddr !~ /^192\.168\.1/ ) &&
($RelayAddr !~ /^213\.193\.123/ )) {

instead of

if (-s "./INPUTMSG" < 100*1024) {

in filter_end where 192.168.1.xxx and 213.193.123.yyy
are possible IPs of mail servers which already do some
spam checks with spamassassin. This works for me ...


Cheers,

Torsten
-- 
    __  __      __       http://www.fireball.de
   / / / /     /_/       Torsten Eberhardt
  / / / /___  ____  __   Lycos Europe GmbH
 / /_/ / __ \/ /\ \/ /   20444 Hamburg
/_____/_/ /_/_/ /_/\_\   +49(0)40 3703-7720 FAX -7757

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20040422/b7e37f06/attachment.sig>


More information about the MIMEDefang mailing list