{"id":540,"date":"2014-07-11T01:10:06","date_gmt":"2014-07-11T01:10:06","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=540"},"modified":"2014-07-11T01:10:06","modified_gmt":"2014-07-11T01:10:06","slug":"solvedpostfix-fix-error-fatal-root0-message-file-too-big","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/540.html","title":{"rendered":"[solved]Postfix : Fix error &quot;fatal: root(0): message file too big&quot;"},"content":{"rendered":"<p>\u5728Ubuntu 12.04\u4e0a\u4f7f\u7528\u7684\u662fpostfix\u4f5c\u4e3a\u90ae\u4ef6\u670d\u52a1\u5668\uff0c\u4f46\u662f\u521a\u88c5\u597d\u4e4b\u540e\u7528mutt\u53d1\u90ae\u4ef6\u5c31\u62a5\u9519\uff1aPostfix : Fix error &#8220;fatal: root(0): message file too big&#8221;<\/p>\n<p>\u5728\u7f51\u4e0a\u627e\u5230\u4e86\u89e3\u51b3\u65b9\u6cd5\uff0c\u5728\u6b64\u8bb0\u5f55\u4e00\u4e0b\uff1a<\/p>\n<p>[root@unixh4cks ~]<span style=\"color: #ff0000;\"># tail \/var\/log\/maillog<\/span><br \/>\nMar 21 06:30:04 unixh4cks postfix\/sendmail[1775]: fatal: root(0): message file too big<br \/>\nMar 21 06:30:04 unixh4cks postfix\/pickup[1579]: EEE7723514: uid=0 from=&lt;root&gt;<br \/>\nMar 21 06:30:04 unixh4cks postfix\/cleanup[1779]: EEE7723514: message-id=&lt;20130321063004.EEE7723514@unixh4cks.com&gt;<br \/>\nMar 21 06:30:04 unixh4cks postfix\/qmgr[1062]: EEE7723514: from=&lt;root@unixh4cks.com&gt;, size=891, nrcpt=1 (queue active)<br \/>\nMar 21 06:30:05 unixh4cks postfix\/local[1781]: EEE7723514: to=&lt;root@unixh4cks.com&gt;, orig_to=&lt;root&gt;, relay=local, delay=0.06, delays=0.04\/0.01\/0\/0.02, dsn=2.0.0, status=sent (delivered to mailbox)<br \/>\nMar 21 06:30:05 unixh4cks postfix\/qmgr[1062]: EEE7723514: removed<br \/>\nMar 21 18:45:50 unixh4cks postfix\/<span style=\"color: #ff0000;\"><strong>postdrop<\/strong><\/span>[3791]: <span style=\"color: #ff0000;\">warning: uid=0: File too large<\/span><br \/>\nMar 21 18:45:50 unixh4cks postfix\/<span style=\"color: #ff0000;\"><strong>sendmail<\/strong><\/span>[3790]: <span style=\"color: #ff0000;\"><strong>fatal: root(0): message file too big<\/strong><\/span><br \/>\nMar 21 18:51:39 unixh4cks postfix\/postdrop[3844]: warning: uid=0: File too large<br \/>\nMar 21 18:51:39 unixh4cks postfix\/sendmail[3843]: fatal: root(0): message file too big<br \/>\n[root@unixh4cks ~]#<br \/>\n<span style=\"color: #ff0000;\">\u4e00\u79cd\u89e3\u51b3\u529e\u6cd5\u662f\u5728\u547d\u4ee4\u884c\u4e2d\u8bbe\u5b9apostfix\u7684message_size_limit\u503c\uff08\u4f46\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u4f1a\u5931\u6548\uff09<\/span>\uff1a<br \/>\n[root@unixh4cks ~]# postconf -e &#8220;message_size_limit = 20480000&#8221; #\u9700\u8981\u6ce8\u610f\u7684\u4e00\u70b9\u662f\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684mailbox_size_limit \u9700\u8981\u6bd4message_size_limit\u5927<br \/>\n[root@unixh4cks ~]#<br \/>\n&#8212;&#8212;&#8212;&#8212;-<\/p>\n<div style=\"color: #000000;\"><span style=\"color: #000000; font-size: medium;\"><span style=\"color: #ff0000;\">\u53e6\u4e00\u79cd\u89e3\u51b3\u65b9\u6cd5\uff08\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff09<\/span>\uff1a<\/span><\/div>\n<div style=\"color: #000000;\"># find \/\u00a0-name main.cf<br \/>\n\/usr\/lib\/postfix\/main.cf<br \/>\n\/etc\/postfix\/main.cf<br \/>\n\u7136\u540e<strong><span style=\"color: #ff0000;\">\u7f16\u8f91\u201c\/etc\/postfix\/main.cf\u201d<\/span><\/strong>\uff0c\u4fee\u6539or\u6dfb\u52a0message_size_limit\u9879\uff08\u6ce8\u610f\u5b83\u548cmailbox_size_limit\u7684\u533a\u522b\uff01\uff09<\/div>\n<div style=\"color: #000000;\"><\/div>\n<div style=\"color: #000000;\"><span style=\"color: #ff0000; font-size: medium;\"><strong>\u4e24\u79cd\u65b9\u6cd5\uff0c\u5728\u4fee\u6539\u4e86\u4e4b\u540e\u90fd\u8981\u8bb0\u5f97\u91cd\u542fpostfix\u670d\u52a1\uff0c\u5426\u5219\u4e0d\u4f1a\u7acb\u5373\u751f\u6548\uff01<\/strong><\/span><\/div>\n<div style=\"color: #000000;\"><span style=\"color: #000000; font-size: medium;\"># service postfix restart<\/span><\/div>\n<div style=\"color: #000000;\"><\/div>\n<div style=\"color: #000000;\"><span style=\"color: #000000; font-size: medium;\">Postfix Configuration Parameters\u00a0<a style=\"color: #4d5d2c;\" href=\"http:\/\/www.postfix.org\/postconf.5.html\" target=\"_blank\">http:\/\/www.postfix.org\/postconf.5.html<\/a><\/span><\/div>\n<div style=\"color: #000000;\"><\/div>\n<div style=\"color: #000000;\"><b>mailbox_size_limit\u00a0(default: 51200000)<\/b><\/div>\n<div style=\"color: #000000;\">The maximal size of any\u00a0<a style=\"color: #4d5d2c;\" href=\"http:\/\/www.postfix.org\/local.8.html\" target=\"_blank\">local(8)<\/a>\u00a0individual mailbox or maildir file, or zero (no limit). In fact, this limits the size of any file that is written to upon local delivery, including files written by external commands that are executed by the\u00a0<a style=\"color: #4d5d2c;\" href=\"http:\/\/www.postfix.org\/local.8.html\" target=\"_blank\">local(8)<\/a>\u00a0delivery agent.<span style=\"color: #ff0000;\">This limit must not be smaller than the message size limit.<\/span><\/p>\n<\/div>\n<div style=\"color: #000000;\"><span style=\"color: #000000; font-size: medium;\">&#8212;<\/span><\/div>\n<div style=\"color: #000000;\"><b>message_size_limit\u00a0(default: 10240000)<\/b><\/div>\n<div style=\"color: #000000;\">\n<p>The maximal size in\u00a0<strong><span style=\"color: #ff0000;\">bytes<\/span><\/strong>\u00a0of a message, including envelope information.<\/p>\n<p>Note: be careful when making changes. 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<\/div>\n<div style=\"color: #000000;\">\u5b83\u4eec\u90fd\u662f\u4ee5\u201c\u5b57\u8282-Byte\u201d\u4e3a\u5355\u4f4d\u7684\uff01<\/div>\n<div style=\"color: #000000;\">\n<hr \/>\n<\/div>\n<h5 style=\"color: #000000;\">Mutt\u4e00\u6b21\u53d1\u9001\u591a\u4e2a\u9644\u4ef6\u7684\u65b9\u6cd5\uff1a<\/h5>\n<div style=\"color: #000000;\">\u53ef\u4ee5\u591a\u6b21\u4f7f\u7528-a\u53c2\u6570\u3002<\/div>\n<div style=\"color: #000000;\">\u6bd4\u5982 -a 1.zip -a 2.zip<br \/>\n\u6ce8\u610f\u4e0d\u662f -a 1.zip 2.zip<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Ubuntu 12.04\u4e0a\u4f7f\u7528\u7684\u662fpostfix\u4f5c\u4e3a\u90ae\u4ef6\u670d\u52a1\u5668\uff0c\u4f46\u662f\u521a\u88c5\u597d\u4e4b\u540e\u7528mutt\u53d1\u90ae\u4ef6\u5c31\u62a5\u9519\uff1aPos [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11,6,12],"tags":[225],"class_list":["post-540","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","category-other","category-tools","tag-postfix"],"views":5583,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=540"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}