Re: [Exim] deny message based on From: header

Etusivu
Poista viesti
Vastaa
Lähettäjä: Chris Edwards
Päiväys:  
Vastaanottaja: Niall Mansfield
Kopio: exim-users
Aihe: Re: [Exim] deny message based on From: header
On Mon, 15 Mar 2004, Niall Mansfield wrote:

| Can I deny a message based on the contents of the From: header
|     a. comparing against a literal string (e.g. "staff@???")?
|     b. comparing against a regex?

|
| (I do mean the From: header, not the envelope sender.)


Hi,

Try:

deny condition = ${if match{$h_from:}{staff@co\.uk}{yes}{no}}

in the DATA ACL.

Note - there are other ways of filtering bagle viruses...

Cheers

Chris

--
Chris Edwards, Glasgow University Computing Service