[Exim] All-Spam filter

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ron McKeating
Dátum:  
Címzett: Exim-Users (E-mail)
Tárgy: [Exim] All-Spam filter
Hi all, we are looking at ways of allowing some of our users who are
doing particular bits of research to get all their email regardless of
spam score. However we do not want everybody else in the envelope header
to get it too. So far we have put a list of users into a database.

In the acl-check-rcpt (exim 4.3 by the way) on the mail router we have

warn message=X-No-Spam-Check:$local_part
        condition= ${lookup mysql{select mailname from allspam where
mailname = '$local_part'}{1}{0}}


This puts in a header for each person who is in the envelope to and has
an entry in the allspam database. This works fine

Now on the mail server (different machine) we tried using this router

local_withspam:
condition=${if match {${local_part}}{$h_X-No-Spam-Check:}{no}{yes}}
driver = accept
check_local_user
transport = local_delivery
more=false

Thinking that it would only deliver for a user if there was a
No-spam-check header. Well it failed and still delivers for all users in
the envelope header, it does use this router though as we checked in the
logs, so it is finding a match.

Would appreciate any thoughts on how to deliver to some of the
recipients but not others.

Cheers

Ron

--
Ron McKeating
Senior IT Services Specialist
Internet Services and Software Solutions
Loughborough University
01509 222329