{"id":307,"date":"2015-05-14T12:53:11","date_gmt":"2015-05-14T04:53:11","guid":{"rendered":"http:\/\/www.scriptsmy.com\/?p=307"},"modified":"2023-04-28T09:47:13","modified_gmt":"2023-04-28T09:47:13","slug":"how-to-adjust-the-zimbra-maximum-message-and-upload-size-via-cli","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-adjust-the-zimbra-maximum-message-and-upload-size-via-cli\/","title":{"rendered":"How to Adjust the Zimbra Maximum Message and Upload Size via CLI"},"content":{"rendered":"<p>This article show you how to check and adjust the maximum message size and upload size to an email via the Zimbra MTA (Postfix). The default Postfix message_size_limit was 10MB (10240000 bytes) and the message_size_limit postconf parameter is configured globally for all zimbra MTAs.<\/p>\n<p><strong>Q.<\/strong> How to Adjust the Zimbra Maximum Message and Upload Size via command line interface (CLI) ?<\/p>\n<p><strong>A.<\/strong> This is how to check and adjust the Maximum Message Size and upload size. All the below command shall be runa s zimbra user :<\/p>\n<p><strong>zimbraMtaMaxMessageSize<\/strong> = Refer to message size of the email.<br \/>\n<strong>zimbraFileUploadMaxSize<\/strong> = refer to file uploads include attachments to messages, appointments, tasks and etc.<br \/>\n<strong>zimbraMailContentMaxSize<\/strong> = Refer to the overall message size<br \/>\n<strong>ms<\/strong> = modifyServer<br \/>\n<strong>mcf<\/strong> = modifyConfig<br \/>\n<strong>gcf <\/strong> = getConfig<\/p>\n<p>1. Run as zimbra user :<\/p>\n<pre># su - zimbra\n<\/pre>\n<p>2. Check the default message_size_limit parameter :<\/p>\n<pre>$ postconf | grep message_size_limit\n<\/pre>\n<p>Example and Result:<\/p>\n<pre>$ postconf | grep message_size_limit\nmessage_size_limit = 10240000\n<\/pre>\n<p>3. Check the default global size for zimbraMtaMaxMessageSize, zimbraFileUploadMaxSize and zimbraMailContentMaxSize :<\/p>\n<pre>$ zmprov gcf zimbraMtaMaxMessageSize\nzimbraMtaMaxMessageSize: 10240000\n$ zmprov gcf zimbraFileUploadMaxSize\nzimbraFileUploadMaxSize: 10240000\n$ zmprov gcf zimbraMailContentMaxSize\nzimbraMailContentMaxSize: 10240000\n<\/pre>\n<p>4. Change zimbraMtaMaxMessageSize and zimbraFileUploadMaxSizeto 40MB (40960000 bytes) globally.<\/p>\n<pre>$ zmprov modifyConfig zimbraMtaMaxMessageSize 40960000\n$ zmprov modifyConfig zimbraFileUploadMaxSize 40960000\n<\/pre>\n<p>5. Usually overall message size will be bigger because each message may consist multiple upload files or attachment. In this case we will configure zimbraMailContentMaxSize parameter to 100MB :<\/p>\n<pre>$ zmprov modifyConfig zimbraMailContentMaxSize 102400000\n<\/pre>\n<p>6. Check the result of above command :<\/p>\n<pre>$ postconf | grep message_size_limit\nmessage_size_limit = 40960000\n<\/pre>\n<p>7. How to set the Maximum Message and Upload Size to 40MB per server and overall message size to 100MB per server :<\/p>\n<pre>$ zmprov ms `zmhostname` zimbraFileUploadMaxSize 40960000\n$ zmprov ms `zmhostname` zimbraMtaMaxMessageSize 40960000\n$ zmprov ms `zmhostname` zimbraMailContentMaxSize 102400000\n<\/pre>\n<p>or<\/p>\n<pre>$ zmprov modifyServer mail1.ehowstuff.local zimbraFileUploadMaxSize 40960000\n$ zmprov modifyServer mail1.ehowstuff.local zimbraMtaMaxMessageSize 40960000\n$ zmprov modifyServer mail1.ehowstuff.local zimbraMailContentMaxSize 102400000\n<\/pre>\n<p>7. In most of the cases, all of above command will take effect automatically. But if the change does not happen after a short period of time, most likely we will need to do postfix reload or full zmcontrol restart :<\/p>\n<pre>$ postfix reload\n$ zmcontrol restart\n<\/pre>\n<p><strong>Note<\/strong> : Server settings override global setting<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article show you how to check and adjust the maximum message size and upload size to an email via the Zimbra MTA (Postfix). The default Postfix message_size_limit was 10MB&#8230;<\/p>\n","protected":false},"author":6,"featured_media":6320,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1100],"tags":[1536,1946,1957],"class_list":["post-307","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zimbra","tag-linux","tag-zimbra","tag-zmprov"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/6320"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}