Re: [exim] failed to expand condition

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Heiko Schlittermann
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] failed to expand condition
Hi,

PRAJITH <prajithpalakkuda@???> (Sa 22 Nov 2014 18:31:19 CET):
> Hello Guys,
>
> I am new to exim. I want to block all remote and local outbound mails being
> sent from one domain, but the mail should work if the recpt address is in
> same domain. I just wrote a simple acl for this but it always shows the
> following error.
>
> ACL
> =====
> ${ if and { { ${lookup{$sender_address_domain} lsearch
> {/etc/blocked_domains}}} {!eqi {$sender_address_domain}
> {${domain:$h_to:}}}} {true}{false}}


Remove the spaces between the opening { and the name of the condition:

    ${if …


How does the line look like in your configuration? The line breaks above
will not work, you need to escape the line endings with '\' …


> Error
> =====
> failed to expand condition "${if and{{bool_lax{${if and{{bool_lax{NULL}


I think, the condition, Exim complains about is not the condition you
mention above.

The full list of ACLs would be helpful.


    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-