Re: [exim] Access to $value from lookups

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Peter Velan
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Access to $value from lookups
am 23.06.05 13:27 schrieb Tony Finch:

> On Thu, 23 Jun 2005, Peter Velan wrote:
>>
>>   deny
>>     message = Blacklisted address <$sender_address>
>>     condition =
>>     ${lookup \
>>         {$sender_address} \
>>       nwildlsearch{/xyz/file.txt} \
>>       {yes}{no} \
>>     }

>>
>> How does I get access to $value?
>
>   deny
>     set acl_m0 = ${lookup {$sender_address} nwildlsearch {/xyz/file.txt} }
>     message = Blacklisted address <$sender_address>: $acl_m0
>     condition = ${if eq{$acl_m0}{} {no} {yes} }


Thank you very much! Works perfectly, but ...
Why is the 550 thrown as a 2-liner?

550-Blacklisted address <spam@???>:
550 reason-xx

"reason-xx" will be a rather short text, so an 1-liner would suffice

Greetings,
Peter