Re: [Exim] Limiting message size

Top Page
Delete this message
Reply to this message
Author: William Thompson
Date:  
To: Nico van der Dussen
CC: exim-users
Subject: Re: [Exim] Limiting message size
> Hi,
>
> I must have missed something in the manual.
>
> In the default acl_check_rcpt: section I added the code below just
> before require verify        = sender

>
> It fails the smallest message.
>
> Help!
>
> Thanks
>
> Nico
>

You have 2 denys there
> deny message = Max message size exceeded


Deny everything with message "Max message size exceeded"

> deny condition = \
> ${if > \
> # First argument for if
> {$message_size} \
> # Second argument for if
> {2M} \
> # Value if message to large
> {YES}    \
> #Message Ok - don't deny
> {NO}    \
> }
> # end if


Then deny if $message_size > 2m

Change to:
    deny    message = Max message size exceeded
        condition = ${if >{$message_size}{2M}{true}{false}}
        ^^^^
Notice only 1 deny