{"id":5429,"date":"2019-11-21T22:26:00","date_gmt":"2019-11-21T14:26:00","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5429"},"modified":"2020-05-05T16:51:11","modified_gmt":"2020-05-05T08:51:11","slug":"mailstat","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mailstat","title":{"rendered":"mailstat\u547d\u4ee4 – \u663e\u793a\u5230\u8fbe\u7684\u90ae\u4ef6\u72b6\u6001"},"content":{"rendered":"\n

mailstat\u547d\u4ee4\u7528\u6765\u663e\u793a\u5230\u8fbe\u7684\u90ae\u4ef6\u72b6\u6001\u3002\u5b83\u663e\u793a\u7684\u90ae\u4ef6\u72b6\u6001\u662f\u57fa\u4e8e\u90ae\u4ef6\u7684\u65e5\u5fd7\u6587\u4ef6\u3002<\/p>\n\n\n\n

mailstat\u547d\u4ee4\u9700\u8981\u8bfb\u53d6\u90ae\u4ef6\u65e5\u5fd7\u6587\u4ef6\u6765\u663e\u793a\u90ae\u4ef6\u72b6\u6001\uff0c\u6240\u4ee5\u9700\u8981\u5728\u547d\u4ee4\u884c\u4e2d\u7ed9\u51fa\u90ae\u4ef6\u65e5\u5fd7\u6587\u4ef6\u7684\u5177\u4f53\u4f4d\u7f6e\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cmailstat\u547d\u4ee4\u4f1a\u5728\u663e\u793a\u90ae\u4ef6\u72b6\u6001\u540e\u5c06\u90ae\u4ef6\u65e5\u5fd7\u6587\u4ef6\u6e05\u7a7a\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> mailstat [\u53c2\u6570] [\u65e5\u5fd7\u6587\u4ef6]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong> <\/p>\n\n\n\n

-k<\/td>\u4fdd\u6301\u90ae\u4ef6\u65e5\u5fd7\u6587\u4ef6\u7684\u5b8c\u6574\u6027\uff0c\u4e0d\u6e05\u7a7a\u65e5\u5fd7\u6587\u4ef6<\/td><\/tr>
-l<\/td>\u4f7f\u7528\u957f\u683c\u5f0f\u663e\u793a\u90ae\u4ef6\u72b6\u6001<\/td><\/tr>
-m<\/td>\u5408\u5e76\u4efb\u4f55\u9519\u8bef\u4fe1\u606f\u5230\u4e00\u884c\u4e2d\u663e\u793a<\/td><\/tr>
-o<\/td>\u4f7f\u7528\u8001\u7684\u90ae\u4ef6\u65e5\u5fd7\u90ae\u4ef6<\/td><\/tr>
-t<\/td>\u4f7f\u7528\u7b80\u6d01\u7684\u683c\u5f0f\u663e\u793a\u90ae\u4ef6\u72b6\u6001<\/td><\/tr>
-s<\/td>\u5982\u679c\u6ca1\u6709\u90ae\u4ef6\u5219\u4e0d\u8f93\u51fa\u4efb\u4f55\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u90ae\u4ef6\u72b6\u6001\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mailstat \/var\/log\/maillog<\/pre>\n\n\n\n

\u4f7f\u7528\u957f\u683c\u5f0f\u663e\u793a\u90ae\u4ef6\u72b6\u6001\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mailstat -l \/var\/log\/maillog<\/pre>\n\n\n\n

\u4fdd\u7559\u5b8c\u6574\u7684\u90ae\u4ef6\u65e5\u5fd7\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mailstat -k \/var\/log\/maillog<\/pre>\n","protected":false},"excerpt":{"rendered":"

mailstat\u547d\u4ee4\u7528\u6765\u663e\u793a\u5230\u8fbe\u7684\u90ae\u4ef6\u72b6\u6001\u3002\u5b83\u663e\u793a\u7684\u90ae\u4ef6\u72b6\u6001\u662f\u57fa\u4e8e\u90ae\u4ef6\u7684\u65e5\u5fd7\u6587\u4ef6\u3002 mailstat\u547d\u4ee4\u9700\u8981\u8bfb […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5429"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5429"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5429\/revisions"}],"predecessor-version":[{"id":7505,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5429\/revisions\/7505"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}