Re: [exim] Sender message size filtering on a per user basis

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mike Cardwell
Date:  
À: Exim Mailing List
Sujet: Re: [exim] Sender message size filtering on a per user basis
Craig wrote:

> We are trying to get file restrictions working for outbound mail on a per
> user basis. Below is a copy of the from our acl_check_data we. Perhaps
> someone could help?
>
> There error we get in the log file is:
> --------------------------------------------------
>
> temporarily rejected after DATA: invalid "condition" value ""100M""
>
> This an extract from the Exim config file:
> ----------------------------------------------------------
>
> acl_check_data:
>
> deny
>
>      message = Message is larger than the recipient is allowed to receive.
> If this is work related, please contact the recipient telephonically

>
>      condition =
> "${lookup{$recipients}lsearch{/etc/mail/limits}{$value}{100M}}"

>
>      senders = *@domain.com <*@frame.co.za>


After that expansion you end up with for example:

condition = 100M

That doesn't make sense. Condition should be true or false. Perhaps you
want this instead (untested)

condition = ${if
>{$message_size}{${lookup{$recipients}lsearch{/etc/mail/limits}{$value}{100M}}}}


Mike