Autor: Andreas Gietl Datum: To: Justin Koivisto, exim-users CC: Betreff: Re: [exim] ACL and conditions
Justin Koivisto <justin@???> wrote:
you need to combine the two conditions in one with an "and":
http://www.exim.org/exim-html-4.40/doc/html/spec.html > I am trying to create customized deny messages for each domain when a
> file is larger than set. Each domain will eventually have it's own
> limit, and each will need a different message sent back.
>
> So far, I have:
>
> deny message = Koivi.com has a policy of not accepting messages that \
> are larger than KOIVI_MSG_LIMIT via e-mail.
> condition = ${if > {$message_size}{KOIVI_MSG_LIMIT}{yes}{no}}
>
> OK, that works, but all domains get that message. Therefore, I figured I
> could just add a check to the $domain variable and all would be good.
> I've tried:
>
> 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.
>
> TIA!