Re: [exim] ACL and conditions

Inizio della pagina
Delete this message
Reply to this message
Autore: Wakko Warner
Data:  
To: Justin Koivisto
CC: exim-users
Oggetto: Re: [exim] ACL and conditions
> 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}}


How about:
    deny    message = Koivi.com has a policy of not accepting messages \
            that are larger than KOIVI_MSG_LIMIT via e-mail.
        domains = koivi.com
        condition = ${if >{$message_size}{KOIVI_MSG_LIMIT}{yes}{no}}


Just make sure that this is in the exim.conf (not an ACL that was in a file)
and that macro KOIVI_MSG_LIMIT is set.

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.

--
Lab tests show that use of micro$oft causes cancer in lab animals