{"id":722,"date":"2007-03-31T01:00:00","date_gmt":"2007-03-30T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2007-03-31-1.html"},"modified":"2007-03-31T01:00:00","modified_gmt":"2007-03-30T16:00:00","slug":"2007-03-31-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2007-03-31-1.html","title":{"rendered":"Postfix \u3067\u306e Port 25 Blocking \u5bfe\u7b56"},"content":{"rendered":"<p>\nOutbound Port 25 Blocking \u306b\u3088\u308a\u3001\u5916\u90e8\u306bSMTP \u304c\u901a\u305b\u306a\u3044\u74b0\u5883\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092\u904b\u7528\u3059\u308b\u5834\u5408\u3001\u6b21\u306e\u3044\u305a\u308c\u304b\u306e\u5bfe\u5fdc\u65b9\u6cd5\u3092\u3068\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n1.\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u8ee2\u9001\u3059\u308b<br \/>\n2. \u30b5\u30d6\u30df\u30c3\u30b7\u30e7\u30f3\u30dd\u30fc\u30c8(Submission Port)\u304c\u4f7f\u3048\u308b\u5916\u90e8\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u8ee2\u9001\u3059\u308b<br \/>\n&nbsp;<br \/>\n1 \u306e\u5834\u5408\u3067\u8a8d\u8a3c\u304c\u4e0d\u8981\u306a\u5834\u5408\u306f\u3001main.cf \u306b\u4ee5\u4e0b\u3092\u52a0\u3048\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\nmain.cf:\n<\/p>\n<blockquote><p>relayhost = smtp.nifty.com\n<\/p><\/blockquote>\n<p>smtp.nifty.com \u306f\u81ea\u5206\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u306e SMTP \u30b5\u30fc\u30d0\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n&nbsp;<br \/>\n1 \u3067\u8a8d\u8a3c\u304c\u5fc5\u8981\u306a\u5834\u5408\u3001\u3042\u308b\u3044\u306f\u30012 \u306e\u5834\u5408\u306f\u666e\u901a\u8a8d\u8a3c\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u306f Cyrus SASL \u5bfe\u5fdc\u306e Postfix \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8a8d\u8a3c\u4ed8\u304d\u306e\u30ea\u30ec\u30fc\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nmain.cf:\n<\/p>\n<blockquote><p>smtp_sasl_auth_enable = yes<br \/>\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/saslpass<br \/>\nrelayhost = [smtp.nifty.com]:587<br \/>\nsmtp_use_tls = yes # optional\n<\/p><\/blockquote>\n<p>relayhost \u306f\u81ea\u5206\u304c\u4f7f\u3046 SMTP \u30b5\u30fc\u30d0\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044(587 \u306f\u30b5\u30d6\u30df\u30c3\u30b7\u30e7\u30f3\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u5834\u5408)<br \/>\n&nbsp;<br \/>\n\u6b21\u306b\u3001smtp_sasl_password_maps \u3067\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nsaslpass:\n<\/p>\n<blockquote><p># \u66f8\u5f0f:&#8221;relayhost\u306b\u6307\u5b9a\u3057\u305f\u5024&#8221;&lt;space>&#8221;\u8a8d\u8a3c\u30e6\u30fc\u30b6\u540d&#8221;:&#8221;\u8a8d\u8a3c\u30d1\u30b9\u30ef\u30fc\u30c9&#8221;<br \/>\n[smtp.nifty.com]:587  user:pass\n<\/p><\/blockquote>\n<p>\u4f5c\u6210\u5f8c\u3001postmap \u3067 saslpass.db \u3092\u751f\u6210\u3057\u307e\u3059\u3002\n<\/p>\n<blockquote><p>$ cd \/etc\/postfix\/<br \/>\n$ postmap saslpass\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u3053\u306e\u307e\u307e\u3067\u3082\u52d5\u4f5c\u3057\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u8003\u616e\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u5143\u3068\u3057\u305f\u30d7\u30ec\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb saslpass \u306f\u524a\u9664\u3057\u3066\u304a\u304f\u3079\u304d\u3067\u3057\u3087\u3046\u3002\n<\/p>\n<blockquote><p>$ rm saslpass\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u3042\u3068\u306f Postfix \u3092\u518d\u8d77\u52d5\u3057\u3001\u597d\u304d\u306a\u30e1\u30fc\u30e9\u3092\u4f7f\u3063\u3066\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3048\u3070\u5b8c\u4e86\u3067\u3059\u3002\u3053\u3053\u3067\u306f CUI \u306e mail \u30b3\u30de\u30f3\u30c9\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\n<\/p>\n<blockquote><p>$ mail -s test foo@example.com <br \/>\nhello, world<br \/>\n.\n<\/p><\/blockquote>\n<p>(foo@exmple.com \u306f\u81ea\u5206\u304c\u78ba\u8a8d\u3067\u304d\u308b\u4efb\u610f\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9)<br \/>\n&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/www.postfix-jp.info\/ML\/arc-2.2\/msg00684.html\">Re: \u30d7\u30ed\u30d1\u30a4\u30c0\u306esmtp\u30db\u30b9\u30c8\u304c smtp auth\u3092\u8981\u6c42\u3057\u3066\u308b\u5834\u5408<\/a>(Postfix-jp ML:1685)<br \/>\n&nbsp;&nbsp;\u3077\u3089\u3089\u74b0\u5883\u3067\u306e Postfix \u8a2d\u5b9a\u3002<br \/>\n&#8211; <a href=\"http:\/\/fedorasrv.com\/bbshtml\/webpatio\/1947.shtml\">25\u756a\u30dd\u30fc\u30c8\u30d6\u30ed\u30c3\u30af\u5bfe\u7b56\u306b\u3064\u3044\u3066<\/a>(Fedora\u3067\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9BBS)<br \/>\n&nbsp;&nbsp;@nifty \u74b0\u5883\u3067\u306e Postfix \u8a2d\u5b9a\u3002<br \/>\n&#8211; <a href=\"http:\/\/d.hatena.ne.jp\/ayokoyama\/20061207\">Postfix \u3067\u3001Gmail \u306b\u30e1\u30fc\u30eb\u3092\u30ea\u30ec\u30fc\u3059\u308b<\/a>(\u79c1\u306e\u4e8c\u6b21\u8a18\u61b6)<br \/>\n&nbsp;&nbsp;Postfix + Gmail<br \/>\n&#8211; <a href=\"http:\/\/www.postfix-jp.info\/trans-2.1\/jhtml\/postconf.5.html\">postconf(5)<\/a>(Postfix \u65e5\u672c\u8a9e\u30de\u30cb\u30e5\u30a2\u30eb)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Outbound Port 25 Blocking \u306b\u3088\u308a\u3001\u5916\u90e8\u306bSMTP \u304c\u901a\u305b\u306a\u3044\u74b0\u5883\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092\u904b\u7528\u3059\u308b\u5834\u5408\u3001\u6b21\u306e\u3044\u305a\u308c\u304b\u306e\u5bfe\u5fdc\u65b9\u6cd5\u3092\u3068\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 1.\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u8ee2\u9001\u3059\u308b 2. \u30b5\u30d6\u30df\u30c3 &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2007-03-31-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Postfix \u3067\u306e Port 25 Blocking \u5bfe\u7b56<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[54],"class_list":["post-722","post","type-post","status-publish","format-standard","hentry","tag-postfix"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=722"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/722\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}