Re: [Exim] Limiting message size

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: William Thompson
Ημερομηνία:  
Προς: Nico van der Dussen
Υ/ο: exim-users
Αντικείμενο: 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