Re: [exim] ACL and conditions

Etusivu
Poista viesti
Vastaa
Lähettäjä: Justin Koivisto
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] ACL and conditions
Wakko Warner wrote:
>>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}}
>
> AHHA! I think I know why it doesn't work. If you do this in the RCPT acl,
> it may not work especially if you're being an MSA for outlook. It doesn't
> support the ESMTP SIZE= on the MAIL command. It would have to be checked in
> the DATA acl in which domains is not able to be checked and $domain will be
> blank.
>


Then that is my problem, I am checking in the data acl...

The next question is, how can I go about checking the domain at the data
level?