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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ian FREISLICH
Date:  
À: peter
CC: Exim Mailing List
Sujet: Re: [exim] Two conditions for adding X-Spam-Flag
Peter Bowyer wrote:
> On 24/06/05, Herb Martin <HerbM@???> wrote:
> > > How do I add
> > > >a condition that it should only do this if the mail is  going to
> > > >+relay_to_domains.
> >=20
> > >  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}}
> >=20
> > Changing +local_domains to +relay_to_domains should do
> > it (if I understand ACLs correctly.)

>
> No - you can't use a domains check in the DATA ACL (which is the only
> place you can use a spam check), because you may have more than one
> recipient in more than one domain.


Which is why you must add the header at transport or routing time.

Ian

--
Ian Freislich