{"id":53213,"date":"2024-10-09T09:17:15","date_gmt":"2024-10-09T01:17:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/53213\/"},"modified":"2024-10-09T09:17:15","modified_gmt":"2024-10-09T01:17:15","slug":"fatal-the-postfix-mail-system-is-already-running-%e8%a7%a3%e6%b1%ba%e8%be%a6%e6%b3%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/53213\/","title":{"rendered":"Fatal: the Postfix mail system is already running \u89e3\u6c7a\u8fa6\u6cd5"},"content":{"rendered":"<h1 id=\"fatal-the-postfix-mail-system-is-already-running-%e8%a7%a3%e6%b1%ba%e8%be%a6%e6%b3%95-qgJOtJcqXK\">Fatal: the Postfix mail system is already running \u89e3\u6c7a\u8fa6\u6cd5<\/h1>\n<p>\u5728\u4f7f\u7528 Postfix \u90f5\u4ef6\u7cfb\u7d71\u6642\uff0c\u60a8\u53ef\u80fd\u6703\u9047\u5230\u4e00\u500b\u5e38\u898b\u7684\u932f\u8aa4\u4fe1\u606f\uff1a\u201cFatal: the Postfix mail system is already running\u201d\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a Postfix \u670d\u52d9\u5df2\u7d93\u5728\u904b\u884c\u4e2d\uff0c\u5c0e\u81f4\u60a8\u7121\u6cd5\u91cd\u65b0\u555f\u52d5\u6216\u91cd\u65b0\u52a0\u8f09\u670d\u52d9\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u6b64\u554f\u984c\u7684\u539f\u56e0\u53ca\u5176\u89e3\u6c7a\u8fa6\u6cd5\u3002<\/p>\n<h2 id=\"postfix-%e7%b0%a1%e4%bb%8b-qgJOtJcqXK\">Postfix \u7c21\u4ecb<\/h2>\n<p>Postfix \u662f\u4e00\u500b\u958b\u6e90\u7684\u90f5\u4ef6\u50b3\u8f38\u4ee3\u7406\uff08MTA\uff09\uff0c\u5ee3\u6cdb\u7528\u65bc Unix \u548c Linux \u7cfb\u7d71\u4e2d\u3002\u5b83\u7684\u8a2d\u8a08\u76ee\u7684\u662f\u70ba\u4e86\u63d0\u4f9b\u4e00\u500b\u5feb\u901f\u3001\u5b89\u5168\u4e14\u6613\u65bc\u914d\u7f6e\u7684\u90f5\u4ef6\u50b3\u8f38\u89e3\u6c7a\u65b9\u6848\u3002\u7531\u65bc\u5176\u9ad8\u6548\u80fd\u548c\u7a69\u5b9a\u6027\uff0cPostfix \u6210\u70ba\u8a31\u591a\u4f3a\u670d\u5668\u7684\u9996\u9078\u90f5\u4ef6\u7cfb\u7d71\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0-qgJOtJcqXK\">\u932f\u8aa4\u539f\u56e0<\/h2>\n<p>\u7576\u60a8\u5617\u8a66\u555f\u52d5\u6216\u91cd\u65b0\u555f\u52d5 Postfix \u6642\uff0c\u51fa\u73fe\u201cFatal: the Postfix mail system is already running\u201d\u932f\u8aa4\u7684\u539f\u56e0\u53ef\u80fd\u6709\u4ee5\u4e0b\u5e7e\u500b\uff1a<\/p>\n<ul>\n<li><strong>Postfix \u5df2\u7d93\u5728\u904b\u884c\uff1a<\/strong>\u9019\u662f\u6700\u5e38\u898b\u7684\u539f\u56e0\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u6aa2\u67e5 Postfix \u7684\u904b\u884c\u72c0\u614b\u3002<\/li>\n<li><strong>\u914d\u7f6e\u6587\u4ef6\u932f\u8aa4\uff1a<\/strong>\u5982\u679c Postfix \u7684\u914d\u7f6e\u6587\u4ef6\u5b58\u5728\u932f\u8aa4\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u670d\u52d9\u7121\u6cd5\u6b63\u5e38\u555f\u52d5\u3002<\/li>\n<li><strong>\u7aef\u53e3\u885d\u7a81\uff1a<\/strong>\u5982\u679c\u5176\u4ed6\u670d\u52d9\u4f54\u7528\u4e86 Postfix \u6240\u9700\u7684\u7aef\u53e3\uff08\u5982 25 \u7aef\u53e3\uff09\uff0c\u4e5f\u53ef\u80fd\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%aa%a2%e6%9f%a5-postfix-%e7%8b%80%e6%85%8b-qgJOtJcqXK\">\u6aa2\u67e5 Postfix \u72c0\u614b<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5 Postfix \u7684\u904b\u884c\u72c0\u614b\uff1a<\/p>\n<pre><code>sudo systemctl status postfix<\/code><\/pre>\n<p>\u5982\u679c Postfix \u6b63\u5728\u904b\u884c\uff0c\u60a8\u6703\u770b\u5230\u985e\u4f3c\u65bc\u4ee5\u4e0b\u7684\u8f38\u51fa\uff1a<\/p>\n<pre><code>\u25cf postfix.service - Postfix Mail Transport Agent\n   Loaded: loaded (\/lib\/systemd\/system\/postfix.service; enabled; vendor preset: enabled)\n   Active: active (running) ...<\/code><\/pre>\n<h2 id=\"%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%a1%88-qgJOtJcqXK\">\u89e3\u6c7a\u65b9\u6848<\/h2>\n<h3 id=\"1-%e5%81%9c%e6%ad%a2-postfix-%e6%9c%8d%e5%8b%99-qgJOtJcqXK\">1. \u505c\u6b62 Postfix \u670d\u52d9<\/h3>\n<p>\u5982\u679c\u60a8\u78ba\u5b9a\u9700\u8981\u91cd\u65b0\u555f\u52d5 Postfix\uff0c\u9996\u5148\u53ef\u4ee5\u505c\u6b62\u670d\u52d9\uff1a<\/p>\n<pre><code>sudo systemctl stop postfix<\/code><\/pre>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-qgJOtJcqXK\">2. \u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u5728\u91cd\u65b0\u555f\u52d5\u4e4b\u524d\uff0c\u6aa2\u67e5 Postfix \u7684\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u6b63\u78ba\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6\u7684\u8a9e\u6cd5\uff1a<\/p>\n<pre><code>sudo postfix check<\/code><\/pre>\n<p>\u5982\u679c\u6709\u932f\u8aa4\uff0c\u8acb\u6839\u64da\u63d0\u793a\u9032\u884c\u4fee\u6b63\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e7%ab%af%e5%8f%a3%e4%bd%bf%e7%94%a8%e6%83%85%e6%b3%81-qgJOtJcqXK\">3. \u6aa2\u67e5\u7aef\u53e3\u4f7f\u7528\u60c5\u6cc1<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5 25 \u7aef\u53e3\u662f\u5426\u88ab\u5176\u4ed6\u670d\u52d9\u4f54\u7528\uff1a<\/p>\n<pre><code>sudo netstat -tuln | grep :25<\/code><\/pre>\n<p>\u5982\u679c\u767c\u73fe\u5176\u4ed6\u670d\u52d9\u4f54\u7528\u4e86\u8a72\u7aef\u53e3\uff0c\u60a8\u9700\u8981\u505c\u6b62\u8a72\u670d\u52d9\u6216\u66f4\u6539\u5176\u914d\u7f6e\u3002<\/p>\n<h3 id=\"4-%e9%87%8d%e6%96%b0%e5%95%9f%e5%8b%95-postfix-qgJOtJcqXK\">4. \u91cd\u65b0\u555f\u52d5 Postfix<\/h3>\n<p>\u5728\u78ba\u4fdd Postfix \u505c\u6b62\u4e14\u914d\u7f6e\u6b63\u78ba\u5f8c\uff0c\u60a8\u53ef\u4ee5\u91cd\u65b0\u555f\u52d5 Postfix\uff1a<\/p>\n<pre><code>sudo systemctl start postfix<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-qgJOtJcqXK\">\u7e3d\u7d50<\/h2>\n<p>\u9047\u5230\u201cFatal: the Postfix mail system is already running\u201d\u932f\u8aa4\u6642\uff0c\u9996\u5148\u8981\u6aa2\u67e5 Postfix \u7684\u904b\u884c\u72c0\u614b\uff0c\u7136\u5f8c\u6839\u64da\u9700\u8981\u505c\u6b62\u670d\u52d9\u3001\u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6\u548c\u7aef\u53e3\u4f7f\u7528\u60c5\u6cc1\u3002\u901a\u904e\u9019\u4e9b\u6b65\u9a5f\uff0c\u60a8\u61c9\u8a72\u80fd\u5920\u9806\u5229\u89e3\u6c7a\u554f\u984c\uff0c\u78ba\u4fdd\u90f5\u4ef6\u7cfb\u7d71\u7684\u6b63\u5e38\u904b\u884c\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u60a8\u7684\u9700\u6c42\u3002\u7121\u8ad6\u662f\u90f5\u4ef6\u670d\u52d9\u9084\u662f\u5176\u4ed6\u61c9\u7528\uff0c\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a> \u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u53ef\u9760\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discover solutions for the &#8220;Fatal: the Postfix mail system is already running&#8221; error, ensuring smooth email operations and system stability.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-53213","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=53213"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53213\/revisions"}],"predecessor-version":[{"id":53214,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53213\/revisions\/53214"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=53213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=53213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=53213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}