User Tools

Site Tools


dotrc:exim:message_size

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dotrc:exim:message_size [2011/09/01 14:07] – created adidotrc:exim:message_size [2011/09/02 17:16] (current) – added authenticated users message size as well adi
Line 12: Line 12:
     control = submission/sender_retain     control = submission/sender_retain
     control = dkim_disable_verify     control = dkim_disable_verify
-    # no size limit checking -- use a max_message_size ++   # no size limit checking -- use a max_message_size 
-    set acl_m_size = ${readfile{CONFDIR/max_message_size}{}}++   set acl_m_size = ${readfile{CONFDIR/max_message_size}{}}
 </code> </code>
  
 this expects a file named CONFDIR/max_message_size to be present an containing a reasonable limit in bytes. this expects a file named CONFDIR/max_message_size to be present an containing a reasonable limit in bytes.
 +
 +======= setting the limit for authenticated users =======
 +
 +specify a maximum message size for authenticated users when relaying mail for them:
 +
 +in ''acl/30_exim4-config_check_rcpt'':
 +
 +<code>
 + accept
 +    authenticated = *
 +    control = submission/sender_retain
 +    control = dkim_disable_verify
 ++   # no size limit checking -- use a max_message_size
 ++   set acl_m_size = ${readfile{CONFDIR/max_message_size}{}}
 +</code>
  
 ======= setting the limit for local domains ======= ======= setting the limit for local domains =======
Line 35: Line 50:
  
 ======= execute the limits ======= ======= execute the limits =======
 +
 +(!) acl_m_size needs to be set -- otherwise mails will be stuck in the queue!
  
 in ''acl/40_exim4-config_check_data'' add the following: in ''acl/40_exim4-config_check_data'' add the following:
dotrc/exim/message_size.1314886034.txt.gz · Last modified: 2011/09/01 14:07 by adi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki