Re: [exim] ACL to allow differen users differnet message siz…

Top Page
Delete this message
Reply to this message
Author: Edward St Pierre
Date:  
To: Mark Ter Morshuizen
CC: exim-users
Subject: Re: [exim] ACL to allow differen users differnet message sizes
I think you would need to do a lookup like:

condition = ${if > {$message_size}{${lookup{${lc:$local_part}} lsearch
{filename}}}{1}}

Please be aware of the doc that specifies the following:

hile running an ACL at the time of an SMTP RCPT command,
*$message_size*contains the size supplied on the MAIL command, or -1
if no size was given.
The value may not, of course, be truthful.

So you might want to assign the local_part or users as a variable for use in
the data acl stages.


Ed

On 26/10/06, Mark Ter Morshuizen <mark@???> wrote:
>
> Hi,
>
> Can anyone help me with an acl to allow different users different message
> sizes. What I would like to do is have a list of users and their allowed
> message sizes (local_message_sizes) like so:
>
> john: 10M
> jimmy: 10M
> james: 5M
> peter: 512K
>
> Then have an acl which sets a hard limit of say 256K for any user who is
> not
> listed in that file.
>
> I'm thinking something like the following:
>
> deny
> message = Message size exceeds limit set for user.
> ????
> condition = ${if < {$message_size}{256k}{1}}
>
> Can anyone help?
>
> Thanks,
> --
> Mark Ter Morshuizen
> mark@???
> www.itbox.co.za
> 082 542 6484
> 2U Rackmount Casings: http://www.rackmount.co.za
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>