Re: [exim] ACL and conditions

Pàgina inicial
Delete this message
Reply to this message
Autor: Matthew Byng-Maddick
Data:  
A: exim-users
Assumpte: Re: [exim] ACL and conditions
On Wed, Sep 29, 2004 at 09:32:05AM -0500, Justin Koivisto wrote:
> Matthew Byng-Maddick wrote:
>> On Wed, Sep 29, 2004 at 09:07:18AM -0500, Justin Koivisto wrote:
>>> condition = ${if eq {$domain}{"koivi.com"}{yes}{no}}
>>                                ^         ^
>>> condition = ${if > {$message_size}{KOIVI_MSG_LIMIT}{yes}{no}}

>>>
>>> as well as:
>>>
>>> condition = ${if and {{>{$message_size}{KOIVI_MSG_LIMIT}} 
>>> {eq{$domain}{"koivi.com"}}} {true}}
>>               ^         ^

>>
>>> Neither one of them worked out. Can someone get me on the right track?
>>> Documentation links, etc. welcome.
> I removed the quotes around the domain name, and tried the two different
> settings as above. However, if I send a 1MB attachment to
> justin@???, it goes through. I have:
> KOIVI_MSG_LIMIT = 500K


Odd. Can you provide debugging output where you do this? (my normal trick is
to run -d+all-memory -oX 2525, and send the mail to port 2525). That will
then show you that what the yields of the various expansions is.

Oh, at what stage are you trying to do this?

Matthew

-- 
Matthew Byng-Maddick          <mbm@???>           http://colondot.net/
                      (Please use this address to reply)