Re: [Exim] Quick Question...

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: David Gardner
CC: exim-users
Subject: Re: [Exim] Quick Question...
On Thu, 28 Mar 2002, David Gardner wrote:

> What will happen if I put the following near the top of my filter:
>
> if $h_from like "Mail Delivery System" and
>    $h_to like "info"$domain and
>    $h_subject contains "Mail delivery system"
> then logwrite "SPAM delivery failure in message $message_id"
>     seen finish
> endif


You will get a filter syntax error. :-)

(1) "Like" isn't understood. Use "is", "contains", or "matches".
(2) "info"$domain will cause a problem. Either quote the entire string,
or don't quote at all (if there are no spaces in it).

After you've fixed that,

> I'm hoping the results will be:
> - the error gets logged and
> - the bounced message is not passed through to the "real" user but,
> instead,
> - the bounced message gets dropped.


Correct.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.