Re: [exim] Don't send certain emails

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Stanislaw Halik
Data:  
Para: exim-users
Assunto: Re: [exim] Don't send certain emails
On Thu, May 31, 2007, Anthony Honeyfield wrote:
>> Oops. Try: ${if match{$message_body}{(?s)^#[0-9]\{3\}-\\n}{foo}{bar}}
> I've tried replacing foo bar with yes no


Sorry about that! :-)

> regardless of order (if I put yes or no first), all emails are being
> rejected.


That's really strange. A condition can't be true and false at the same
time :-)

It works for me:

% exim -be '${if match{#001-\nfoo}{(?s)^#[0-9]\{3\}-\\n}{1}{0}}'
1

Show your whole ACL rule, please.

>> !domains = +local_domains


> Unfortunately I get the message "cannot test domains in DATA ACL".


> How?


Set an acl_mX variable in the RCPT ACL whenever there's a `!domains =
+local_domains' recipient. Then, in your DATA ACL, only do this check if
the variable was set. But let's work on the former problem first.

-- 
Whenever you find that you are on the side of the majority, it is time
to reform.
                -- Mark Twain