Re: [exim] message_size_limit extension for two users

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Matthew Newton
Data:  
Para: Stanczak Slawomir
CC: exim-users
Asunto: Re: [exim] message_size_limit extension for two users
On Sat, Apr 24, 2010 at 06:55:24PM +0200, Stanczak Slawomir wrote:
> I have 1000 accounts on my mail server. I set limit 50MB for all:
>
> message_size_limit = 50M
> return_size_limit = 500K
>
> How can I set biger limit (200MB) for two users? Can you help me?


Consider what happens if someone sends an e-mail to one of these
two users, and some other users. What size limit do you apply?

Having said that, you should be able to write a rule in the DATA
ACL that has a condition based on $message_size. Something along
the lines of (completely untested):


message_size_limit = 200M


RCPT ACL:

warn
domains = +local_domains
local_part = largeuser1:largeuser2
set acl_m_largeok = 1


DATA ACL:

deny
condition = ${if !={$acl_m_largeok}{1}{1}{0}}
condition = ${if >{$message_size}{52428800}{1}{0}}
message = Message too large


You should really question why you want to allow 200M e-mails.
There are far more efficient ways of transferring large files.

Matthew


--
Matthew Newton, Ph.D. <mcn4@???>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp@???>