{"id":2540,"date":"2016-06-02T10:15:21","date_gmt":"2016-06-02T10:15:21","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=2540"},"modified":"2016-06-02T10:15:21","modified_gmt":"2016-06-02T10:15:21","slug":"os-x-server-adjusting-message-size-limits-for-the-mail-service","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=2540","title":{"rendered":"OS X Server Adjusting Message Size Limits For The Mail Service"},"content":{"rendered":"<p id=\"main-title\">The message size limit may be increased or disabled via use of the serveradmin command in Terminal.<\/p>\n<div id=\"sections\">\n<section class=\"\">In OS X Server (Mountain Lion) and OS X Server (Mavericks), the default Mail service configuration limits delivery of messages to 10 MB or less. Messages larger than 10 MB will be rejected by the Server.<\/p>\n<p>To change the message size limit, execute the following command:<\/p>\n<pre>sudo serveradmin settings mail:postfix:message_size_limit = number\r\n<\/pre>\n<p>The\u00a0number\u00a0in the command above is equal to the desired message size limit in bytes.\u00a0 To calculate the correct value for the desired size limit, multiply the MB value by 1048576. For example, for a 20 MB limit, the calculation would be 20&#215;1048576=20971520. The\u00a0<em>number<\/em>\u00a0in the above command would therefore be 20971520.<\/p>\n<p><strong>Note:\u00a0<\/strong>Excessively small values will result in the loss of non-delivery notifications, when a bounce message size exceeds the local or remote MTA&#8217;s message size limit.<\/p>\n<\/section>\n<section class=\"\">\n<h2>Learn more<\/h2>\n<p>To disable the message size limit, execute the following command:<\/p>\n<pre>sudo serveradmin settings mail:postfix:message_size_limit_enabled = no\r\n<\/pre>\n<p><strong>Note:<\/strong>\u00a0The size limit can be reinstated by using the same command with a value of\u00a0<em>yes<\/em>\u00a0in place of\u00a0<em>no<\/em>.<\/p>\n<p>You can check the current message size limit value with this command:<\/p>\n<pre>sudo serveradmin settings mail:postfix:message_size_limit\r\n<\/pre>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The message size limit may be increased or disabled via use of the serveradmin command in Terminal. In OS X Server (Mountain [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2540","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2540"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2540\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}