{"id":32,"date":"2006-04-17T01:03:11","date_gmt":"2006-04-16T17:03:11","guid":{"rendered":"http:\/\/twycf.com\/wordpress\/archives\/32"},"modified":"2006-04-17T01:03:11","modified_gmt":"2006-04-16T17:03:11","slug":"openwebmail-%e8%88%87-sasl2-%e8%aa%8d%e8%ad%89%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/twycf.com\/?p=32","title":{"rendered":"OpenWebMail \u8207 SASL2 \u8a8d\u8b49\u8a2d\u5b9a"},"content":{"rendered":"<p>\u7531\u65bc\u90f5\u4ef6\u7cfb\u7d71\u6709\u8a2d\u5b9a SASL2 \u7684\u95dc\u4fc2\uff0c\u5c0e\u81f4 OpenWebMail \u7121\u6cd5\u6b63\u78ba\u5bc4\u51fa\u4fe1\u4ef6\uff0c\u539f\u56e0\u662f OpenWebMail \u5728\u5bc4\u4fe1\u7684\u6642\u5019\u7121\u6cd5\u901a\u904e SASL2 \u7684 Relay check\uff0c\u932f\u8aa4\u8a0a\u606f\u5982\u4e0b\uff1a<!--more--><br \/>\n<coolcode linenum=\"off\"><br \/>\nWed Apr 12 14:30:22 2006 &#8211; [550] (192.168.1.??) danny &#8211; send message error &#8211; smtp error &#8230;<br \/>\n >>> Net::SMTP(2.29)<br \/>\n >>>   Net::Cmd(2.26)<br \/>\n >>>     Exporter(5.58)<br \/>\n >>>   IO::Socket::INET(1.29)<br \/>\n >>>     IO::Socket(1.29)<br \/>\n >>>       IO::Handle(1.25)<br \/>\n <<< 220 ns1.yourhost.com ESMTP Postfix\n >>> EHLO ns1.yourhost.com<br \/>\n <<< 250-ns1.yourhost.com\n <<< 250-PIPELINING\n <<< 250-SIZE 10240000\n <<< 250-ETRN\n <<< 250-AUTH NTLM LOGIN PLAIN OTP DIGEST-MD5 CRAM-MD5\n <<< 250-AUTH=NTLM LOGIN PLAIN OTP DIGEST-MD5 CRAM-MD5\n <<< 250 8BITMIME\n >>> MAIL FROM:<danny@ns1.yourhost.com><br \/>\n <<< 250 Ok\n >>> RCPT TO:<danny@gmail.com><br \/>\n <<< 554 <danny@gmail.com>: Relay access denied<br \/>\n<\/coolcode><br \/>\n\u6240\u4ee5\u9700\u8981\u5728 \/usr\/local\/www\/cgi-bin\/openwebmail\/etc\/openwebmail.conf \u88e1\u9762\u958b\u555f smtpauth<br \/>\n<coolcode linenum=\"off\">smtpauth yes<\/coolcode><br \/>\n\u7136\u5f8c\u5728 \/usr\/local\/www\/cgi-bin\/openwebmail\/etc\/smtpauth.conf \u88e1\u9762\u8a2d\u5b9a\u4e00\u7d44\u7cfb\u7d71\u5e33\u865f<br \/>\n<coolcode linenum=\"off\"><br \/>\nsmtpauth_username       username<br \/>\nsmtpauth_password       userpassword<br \/>\n<\/coolcode><br \/>\n\u8a2d\u5b9a\u5b8c\u6210\u5f8c\uff0c\u518d\u6b21\u6e2c\u8a66\u7531 OpenWebMail \u5bc4\u4fe1\uff0c\u6c92\u60f3\u5230\u932f\u8aa4\u8a0a\u606f\u9084\u662f\u4e00\u6a23\uff0c\u5f8c\u4f86\u6ce8\u610f\u770b smtpauth.conf \u88e1\u9762\u7684\u8aaa\u660e\uff1a<br \/>\n<coolcode linenum=\"off\"><br \/>\n# This file defines the username and password for SASL authentication<br \/>\n# on smtpserver. Currently, only the PLAIN mechanism is supported.<br \/>\n<\/coolcode><br \/>\n\u539f\u4f86 OpenWebMail \u73fe\u968e\u6bb5\u53ea\u80fd\u63a5\u53d7\u7d14\u6587\u5b57\u5bc6\u78bc\u7684\u8a8d\u8b49\uff0c\u9019\u500b\u554f\u984c\u7684\u89e3\u6c7a\u65b9\u6cd5\u662f\u628a \/usr\/ports\/security\/cyrus-sasl2-saslauthd \u91cd\u65b0\u5b89\u88dd\uff0c\u4e26\u4e14\u53ea\u8981\u9078 SASL2\u5373\u53ef.<br \/>\n\u5b89\u88dd\u5b8c\u5f8c\uff0c\u91cd\u65b0\u555f\u52d5 sasl<br \/>\n<coolcode linenum=\"off\">saslauthd.sh restart<\/coolcode><br \/>\n\u518d\u6e2c\u8a66\u4e00\u4e0b\uff0c\u78ba\u8a8d\u76ee\u524d\u53ea\u5269\u4e0b\u7d14\u6587\u5b57\u7684\u8a8d\u8b49\u65b9\u5f0f<br \/>\n<code>ns1# telnet 0 25<br \/>\nTrying 0.0.0.0...<br \/>\nConnected to 0.<br \/>\nEscape character is '^]'.<br \/>\n220 ns1.yourhost.com ESMTP Postfix<br \/>\nEHLO localhost<br \/>\n250-ns1.yourhost.com<br \/>\n250-PIPELINING<br \/>\n250-SIZE 10240000<br \/>\n250-ETRN<br \/>\n<strong>250-AUTH LOGIN PLAIN<br \/>\n250-AUTH=LOGIN PLAIN<\/strong><br \/>\n250 8BITMIME<br \/>\nquit<br \/>\n221 Bye<\/code><br \/>\n\u770b\u5230\u4ee5\u4e0a\u7d50\u679c\uff0c\u5df1\u7d93\u78ba\u5b9a OpenWebMail \u53ef\u4ee5\u901a\u904e\u8a8d\u8b49\u4e86\uff0c\u800c\u7d93\u904e\u6e2c\u8a66\uff0c\u7684\u78ba\u554f\u984c\u662f\u767c\u751f\u5728 OpenWebMail \u8eab\u4e0a\u3002<br \/>\nOpenWebMail \u7684\u6539\u7248\u901f\u5ea6\u8d8a\u4f86\u8d8a\u6162\u4e86\uff0c\u5e7e\u500b\u5f88\u91cd\u8981\u7684\u529f\u80fd\u90fd\u6c92\u6709\u5be6\u4f5c\u5b8c\u6210\uff0c\u4f8b\u5982 Maildir \u7684\u652f\u63f4\uff0c\u53ef\u662f\u6c92\u8fa6\u6cd5\uff0c\u8ab0\u53eb OpenWebMail \u662f\u76ee\u524d\u6700\u65b9\u4fbf\uff0c\u4e5f\u6700\u7f8e\u89c0\u7684 WebMail\uff0c\u8a31\u591a\u5ba2\u6236\u6307\u5b9a\u4f7f\u7528\u9019\u4e00\u5957.<\/p>\n<p>\u8a3b\uff1a\u6709\u8ab0\u53ef\u4ee5\u544a\u8a34\u6211\uff0c\u5982\u4f55\u5728 coolcode \u88e1\u9762\u8b93\u5b57\u9ad4\u8b8a\u984f\u8272\u6216\u52a0\u7c97?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u65bc\u90f5\u4ef6\u7cfb\u7d71\u6709\u8a2d\u5b9a SASL2 \u7684\u95dc\u4fc2\uff0c\u5c0e\u81f4 OpenWebMail \u7121\u6cd5\u6b63\u78ba\u5bc4\u51fa\u4fe1\u4ef6\uff0c\u539f\u56e0\u662f OpenWeb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}