Re: [exim] Don't send certain emails

Top Page
Delete this message
Reply to this message
Author: Anthony Honeyfield
Date:  
To: exim-users
Subject: Re: [exim] Don't send certain emails
> deny condition = ${if match_local_part{$authenticated_id}{+jobcode}}
>!condition = ${if match{$message_body}{(?s)^#[0-9]{3}-\n}}


I've tried these conditions in our version of exim (V4.22) and it complains:

A. Doesn't know match_local_part command, and
B. Thinks there are bracket's missing

I can get some response by entering:

!condition = ${if match{$message_body}{(?s)^#[0-9]{3}-\n}{yes}{no}}

...but don't know

A. What (?s) is for, and
B. Order of yes / no doesn't seem to affect script, which still isn't
finding job code #000- in the body of the email.

Lastly, the ACL checks both incoming and outgoing email, and I don't know
how to make it check outgoing only. Our users are not required to
authenticate, so some other mechanism is needed.

Can anyone help?

Thanks,

Anthony