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. <[email protected]>

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, <[email protected]>

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to