RE: [exim] Two conditions for adding X-Spam-Flag

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Herb Martin
Dátum:  
Címzett: hs, exim-users
CC: 
Tárgy: RE: [exim] Two conditions for adding X-Spam-Flag
> How do I add
> >a condition that it should only do this if the mail is going to
> >+relay_to_domains.


>  warn domains = +local_domains
>     endpass
>     message = X-Spam-Flag: YES
>     spam = spamd:true
>     condition = ${if >{$spam_score_int}{50}{1}{0}}


Changing +local_domains to +relay_to_domains should do
it (if I understand ACLs correctly.)

But aren't you more interested in doing this for INCOMING
rather than outgoing email? Why would you send SPAM to
the world on purpose?

>  warn domains =3D +local_domains
>     endpass
>     message =3D X-Spam-Flag: YES
>     spam =3D spamd:true
>     condition =3D ${if >{$spam_score_int}{50}{1}{0}}

>
>
> if I understood the endpass modifier well :)


Probably not, 'endpass' is only documented to be
recognized in the "accept" verb set.

See Exim 4.50 Specification:
Chapter 39. Access control lists
http://www.exim.org/exim-html-4.50/doc/html/spec.html
http://www.exim.org/exim-html-4.50/doc/html/spec_39.html#IX2467
endpass
This modifier, which has no argument, is recognized only in accept
statements. It marks the boundary between the conditions whose failure
causes control to pass to the next statement, and the conditions whose
failure causes the ACL to return "deny".

AS I understand it (and I am new here and to Exim),
the EndPass is for those times when you setup a an
"accept with prerequisites AND further tests where
once the prerequisites are matched you wish to either
ACCEPT or DENY but not pass to the next verb set.

It would be roughly equivalent (ignoring side effects)
to have an Accept with no endpass, FOLLOWED by a
DENY with all of the items that COULD have been put
into the Endpass area of the previous verb.

So, if we reach this far (in the accept), there is no
"going back" -- it must either succeed or fail.


Herb Martin
HerbM@??? http://LearnQuick.Com
512 388 7339 -or- 1 800 MCSE PRO
Accelerated MCSE in a Week Seminars