Configuring maxmessagesize: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
The following provides instructions how to enable a Maximum Message Size for messages passing through the Zimbra MTA (ie. Postfix). The "maxmessagesize" config is unique to each Zimbra MTA you have (ie. if you have a distributed Zimbra deployment, you'll need to make change in each MTA host where you want this maxmessagesize limit enforced).
The following explains how to observe and adjust the Maximum Message Size for messages passing through the Zimbra MTA (Postfix). The '''message_size_limit''' [http://www.postfix.org/postconf.5.html#message_size_limit postconf parameter] is configured globally for all Zimbra MTAs. The default Zimbra MTA configuration uses the default Postfix message_size_limit of 10MB (i.e. '10240000' bytes). Note that this is the size of the full [http://www.faqs.org/rfcs/rfc2822.html RFC 2822] internet message, ''after'' any necessary MIME-encoding.


The default Zimbra MTA configuration uses the default Postfix value for maxmessagesize of 10MB (ie. '10240000' approximate bytes).
==Postfix configuration==


==Postfix configuration==
You can examine the current value of this parameter like this:


The following commands will set the message_size_limit to 2MB, you can adjust this value to your needs:
# su - zimbra
$ postconf message_size_limit
message_size_limit = 10240000


<pre>
This configuration parameter is stored in the zimbra ldap directory, and propagated to postconf's message_size_limit by [[zmmtaconfig]], which is invoked by the zimbra postfix command. The following commands will set the message_size_limit to 2MB (adjust this value to suit your needs):
su - zimbra


postconf -e message_size_limit='' ; this will clear the current value
# su - zimbra
$ zmprov modifyConfig zimbraMtaMaxMessageSize 2048000
  $ postfix reload


zmprov mcf zimbraMtaMaxMessageSize 2048000  ; value in bytes
You can then confirm the changes with this command:
</pre>


wait two minutes for the changes to be published then confirm the changes with this command:
$ postconf | grep message_size_limit


<pre>
postconf | grep message_size_limit
</pre>


reference:
Reference:
http://www.postfix.org/resource.html
http://www.postfix.org/resource.html

Revision as of 22:08, 17 July 2007

The following explains how to observe and adjust the Maximum Message Size for messages passing through the Zimbra MTA (Postfix). The message_size_limit postconf parameter is configured globally for all Zimbra MTAs. The default Zimbra MTA configuration uses the default Postfix message_size_limit of 10MB (i.e. '10240000' bytes). Note that this is the size of the full RFC 2822 internet message, after any necessary MIME-encoding.

Postfix configuration

You can examine the current value of this parameter like this:

# su - zimbra
$ postconf message_size_limit
message_size_limit = 10240000

This configuration parameter is stored in the zimbra ldap directory, and propagated to postconf's message_size_limit by zmmtaconfig, which is invoked by the zimbra postfix command. The following commands will set the message_size_limit to 2MB (adjust this value to suit your needs):

# su - zimbra
$ zmprov modifyConfig zimbraMtaMaxMessageSize 2048000
$ postfix reload

You can then confirm the changes with this command:

$ postconf | grep message_size_limit


Reference: http://www.postfix.org/resource.html

Jump to: navigation, search