{"id":4313,"date":"2019-07-26T23:51:27","date_gmt":"2019-07-26T15:51:27","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4313"},"modified":"2019-07-26T23:51:28","modified_gmt":"2019-07-26T15:51:28","slug":"sendmail","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/sendmail","title":{"rendered":"sendmail\u547d\u4ee4 – \u7535\u5b50\u90ae\u4ef6\u4f20\u9001\u4ee3\u7406"},"content":{"rendered":"\n

sendmail\u547d\u4ee4\u662f\u4e00\u6b3e\u8457\u540d\u7684\u7535\u5b50\u90ae\u4ef6\u4f20\u9001\u4ee3\u7406\u7a0b\u5e8f\uff0c\u4e5f\u5c31\u662f\u5e73\u5e38\u6240\u8bf4\u7684\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u5668\uff0c\u5b83\u57fa\u4e8e\u6807\u51c6\u7684\u7b80\u5355\u90ae\u4ef6\u4f20\u9001\u534f\u8bae\uff08SMTP\uff09\u3002<\/p>\n\n\n\n

sendmail\u4ec5\u8d1f\u8d23\u90ae\u4ef6\u7684\u6295\u9012\u5de5\u4f5c\uff0c\u4e0d\u8d1f\u8d23\u90ae\u4ef6\u7684\u64b0\u5199\u548c\u663e\u793a\u7b49\u529f\u80fd\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> sendmail [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-bd<\/td>\u4ee5\u5b88\u62a4\u8fdb\u7a0b\u65b9\u5f0f\u8fd0\u884c\u547d\u4ee4<\/td><\/tr>
-bD<\/td>\u4ee5\u524d\u53f0\u8fd0\u884c\u65b9\u5f0f\u8fd0\u884c\u547d\u4ee4<\/td><\/tr>
-bi<\/td>\u521d\u59cb\u5316\u522b\u540d\u6570\u636e\u5e93<\/td><\/tr>
-bm<\/td>\u4ee5\u5e38\u89c4\u53d1\u9001\u7535\u5b50\u90ae\u4ef6<\/td><\/tr>
-bp<\/td>\u663e\u793a\u90ae\u4ef6\u53d1\u9001\u961f\u5217<\/td><\/tr>
-C<\u914d\u7f6e\u6587\u4ef6><\/td>\u6307\u5b9a\u914d\u7f6e\u6587\u4ef6<\/td><\/tr>
-D<\u65e5\u5fd7\u6587\u4ef6><\/td>\u5c06\u8c03\u8bd5\u7684\u8f93\u51fa\u4fe1\u606f\u4fdd\u5b58\u5230\u6307\u5b9a\u65e5\u5fd7\u6587\u4ef6\uff0c\u800c\u4e0d\u663e\u793a\u5728\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\u4e0a<\/td><\/tr>
-F<\u5168\u540d><\/td>\u6307\u5b9a\u53f3\u952e\u53d1\u9001\u8005\u5168\u540d<\/td><\/tr>
-f<\u540d\u5b57><\/td>\u6307\u5b9a\u53d1\u4ef6\u4eba\u7684\u540d\u5b57<\/td><\/tr>
-n<\/td>\u7981\u6b62\u4f7f\u7528\u90ae\u4ef6\u522b\u540d\u529f\u80fd<\/td><\/tr>
-q<\u65f6\u95f4\u95f4\u9694><\/td>\u8bbe\u7f6e\u5904\u7406\u90ae\u4ef6\u961f\u5217\u4e2d\u90ae\u4ef6\u7684\u65f6\u95f4\u95f4\u9694<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u4ee5\u5b88\u62a4\u8fdb\u7a0b\u65b9\u5f0f\u8fd0\u884csendmail\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sendmail -bd<\/pre>\n\n\n\n

\u7981\u6b62\u4f7f\u7528\u90ae\u4ef6\u522b\u540d\u529f\u80fd\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sendmail -n<\/pre>\n\n\n\n

\u5411user1\u53d1\u9001\u90ae\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sendmail -f user1<\/pre>\n\n\n\n

\u5c06\u8c03\u8bd5\u7684\u4fe1\u606f\u8f93\u51fa\u5230test\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sendmail -D test<\/pre>\n\n\n\n

\u4ee5\u524d\u53f0\u65b9\u5f0f\u8fd0\u884c\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sendmail -bD<\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

sendmail\u547d\u4ee4\u662f\u4e00\u6b3e\u8457\u540d\u7684\u7535\u5b50\u90ae\u4ef6\u4f20\u9001\u4ee3\u7406\u7a0b\u5e8f\uff0c\u4e5f\u5c31\u662f\u5e73\u5e38\u6240\u8bf4\u7684\u7535\u5b50\u90ae\u4ef6\u670d\u52a1\u5668\uff0c\u5b83\u57fa\u4e8e\u6807\u51c6\u7684\u7b80\u5355\u90ae\u4ef6\u4f20\u9001 […]<\/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\/4313"}],"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=4313"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4313\/revisions"}],"predecessor-version":[{"id":4333,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4313\/revisions\/4333"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}