{"id":158,"date":"2013-08-01T12:00:00","date_gmt":"2013-08-01T03:00:00","guid":{"rendered":"https:\/\/jikoman.sin-cos.com\/blog\/?p=158"},"modified":"2013-08-01T12:00:00","modified_gmt":"2013-08-01T03:00:00","slug":"dti_1","status":"publish","type":"post","link":"https:\/\/jikoman.sin-cos.com\/blog\/2013\/08\/dti_1\/","title":{"rendered":"DTI\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\uff19 \u300c\u30e1\u30fc\u30eb\u3057\u3066\u306d\u300d"},"content":{"rendered":"<div>\nSMTP\u30b5\u30fc\u30d0\u30fc\u306fSENDMAIL\u3067\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u8272\u3005\u3084\u308a\u305f\u3044\u306e\u3067Postfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/div>\n<div>\n\u8272\u3005\u3084\u308a\u305f\u3044\u3060\u3051\u3067\u3001\u3069\u3093\u306a\u8272\u3005\u304c\u3042\u308b\u306e\u304b\u3001\u5168\u3066\u306f\u77e5\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3002<p><\/p>\n<p>\u307e\u305a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p><\/div>\n<p>$ sudo yum -y install postfix<\/p>\n<div style=\"orphans: 2; widows: 2;\">\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3002<\/div>\n<div style=\"orphans: 2; widows: 2;\">\n<p>$ sudo vi&nbsp;\/etc\/postfix\/main.cf\n<\/p><\/div>\n<div>\n\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6b21\u306e\u90e8\u5206\u3092\u5909\u66f4\u3002<p><\/p>\n<p>myhostname = mail.yourdomain.com<br>\nmydomain = yourdomain.com<br>\nmyorigin = $mydomain<br>\n\u4e0a\u304b\u3089\u3001\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3001\u9001\u4fe1\u5143\u306e\u30c9\u30e1\u30a4\u30f3\u540d<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u304c\u5bfe\u5fdc\u3059\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306f\u3001\u5168\u3066\u3002<\/p>\n<p>inet_interfaces = all<\/p>\n<p><\/p>\n<div>\n<div style=\"font-family: \u30e1\u30a4\u30ea\u30aa;\">\n\u30b5\u30fc\u30d0\u30fc\u304c\u4fe1\u983c\u3059\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306f\u3001\u30db\u30b9\u30c8\u81ea\u8eab\u306e\u307f\u3002<\/div>\n<\/div>\n<p><\/p>\n<div>\n<p>mynetworks_style = host<br>\nmynetworks = 127.0.0.0\/8<\/p>\n<div style=\"font-family: \u30e1\u30a4\u30ea\u30aa;\">\n<\/div>\n<div>\n\u30b5\u30fc\u30d0\u30fc\u304c\u5bfe\u5fdc\u3059\u308b\u5b9b\u5148\u3002<\/div>\n<div style=\"font-family: \u30e1\u30a4\u30ea\u30aa;\">\n\u81ea\u5206\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u4ee5\u5916\u306b\u3001\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3082\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002<\/div>\n<div style=\"font-family: \u30e1\u30a4\u30ea\u30aa;\">\n\u305f\u3060\u3057\u3001\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306f\u533a\u5225\u3055\u308c\u305a\u306b\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u914d\u4fe1\u3055\u308c\u307e\u3059\u3002<\/div>\n<p>mydestination = $myhostname, localhost.$mydomain,\u3000localhost,&nbsp;a.yourdomain.com, b.yourdomain.com<br>\n\u914d\u4fe1\u5148\u3092\u3001\u5404\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u306b\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u6307\u5b9a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p><\/div>\n<div style=\"font-family: \u30e1\u30a4\u30ea\u30aa;\">\n<p>home_mailbox = Maildir\/<\/p>\n<div>\n\u30af\u30e9\u30c3\u30ab\u30fc\u304b\u3089\u8eab\u3092\u5b88\u308b\u305f\u3081\u306b\u3001\u5c11\u3057\u3070\u304b\u308a\u306e\u62b5\u6297\u3002<\/div>\n<\/div>\n<p><\/p>\n<p>smtpd_banner = $myhostname ESMTP unknown<\/p>\n<p><\/p>\n<div>\n\u6700\u5f8c\u306b\u3001SMTP\u30b5\u30fc\u30d0\u30fc\u3092Sendmail\u304b\u3089Postfix\u3078\u4ea4\u4ee3\u3055\u305b\u307e\u3059\u3002<\/div>\n<div>\n<p><\/p>\n<div>\n<\/div>\n<p><\/p>\n<div>\n\u307e\u305a\u3001\u6a19\u6e96\u3067\u52d5\u3044\u3066\u3044\u308bSENDMAIL\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<\/div>\n<p><\/p>\n<p>$ sudo service sendmail stop<br>\nsm-client \u3092\u505c\u6b62\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]<br>\nsendmail \u3092\u505c\u6b62\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ &nbsp;OK &nbsp;]<\/p>\n<p><\/p>\n<div>\n\u30e1\u30fc\u30eb\u3092\u51e6\u7406\u3059\u308b\u30bd\u30d5\u30c8\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/div>\n<p><\/p>\n<p>$ sudo alternatives &#8211;config mta<br>\n2 \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308a &#8216;mta&#8217; \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<br>\n&nbsp; \u9078\u629e &nbsp; &nbsp; &nbsp; \u30b3\u30de\u30f3\u30c9<br>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br>\n*+ 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/usr\/sbin\/sendmail.sendmail<br>\n&nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/usr\/sbin\/sendmail.postfix<br>\nEnter \u3092\u62bc\u3057\u3066\u73fe\u5728\u306e\u9078\u629e [+] \u3092\u4fdd\u6301\u3059\u308b\u304b\u3001\u9078\u629e\u756a\u53f7\u3092\u5165\u529b\u3057\u307e\u3059:2<\/p>\n<p><\/p>\n<div>\nPostfix\u3092\u8d77\u52d5\u3055\u305b\u307e\u3059\u3002<\/div>\n<p><\/p>\n<p>$ sudo service postfix start<br>\npostfix \u3092\u8d77\u52d5\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]<\/p>\n<p><\/p>\n<div>\n\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u3082\u884c\u3044\u307e\u3059\u3002<\/div>\n<p><\/p>\n<p>$ sudo chkconfig sendmail off<br>\n$ sudo chkconfig postfix on<\/p>\n<p><\/p>\n<div>\n\u6700\u5f8c\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u5916\u306e\u81ea\u5206\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u3001\u30e1\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/div>\n<p><\/p>\n<div>\n<p>$ mail you@example.com<br>\nSubject: test<br>\n\u30c6\u30b9\u30c8<br>\n.<br>\nEOT\n<\/p><\/div>\n<p><\/p>\n<div>\n\u672c\u6587\u306e\u6700\u5f8c\u306f\u30d4\u30ea\u30aa\u30c9\u3060\u3051\u3067\u6539\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<\/div>\n<div>\n<\/div>\n<div>\n\u30e1\u30fc\u30eb\u304c\u6765\u305f\u3089\u3001\u8fd4\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/div>\n<div>\n<div>\n\u8fd4\u4fe1\u3055\u308c\u305f\u30e1\u30fc\u30eb\u306e\u30c1\u30a7\u30c3\u30af\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/div>\n<p>[username@newhost ~]$ mail -f Maildir<br>\nHeirloom Mail version 12.4 7\/31\/08. &nbsp;Type ? for help.<br>\n&#8220;Maildir&#8221;: 1 message 1 new<br>\n&gt;N &nbsp;1 You &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fri Jul 26 23:34 &nbsp;49\/2495 &nbsp;&#8220;Re: test&#8221;<br>\n&amp; v 1<br>\n&amp; quit<br>\n&#8220;Maildir&#8221; complete\n<\/p><\/div>\n<div>\n&#8220;v 1&#8243;\u3067\uff11\u756a\u76ee\u306e\u30e1\u30fc\u30eb\u304cvi\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/div>\n<div>\n\u6b21\u306f\u3001POP3\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u306a\u3002<\/div>\n<\/div>\n<\/div>\n\n\n<p><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=25VJAH+72TKGQ+1QFI+109XW1\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"728\" height=\"90\" alt=\"\" src=\"https:\/\/www24.a8.net\/svt\/bgt?aid=130801769428&amp;wid=002&amp;eno=01&amp;mid=s00000008091006093000&amp;mc=1\"><\/a>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/www11.a8.net\/0.gif?a8mat=25VJAH+72TKGQ+1QFI+109XW1\" alt=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SMTP\u30b5\u30fc\u30d0\u30fc\u306fSENDMAIL\u3067\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u8272\u3005\u3084\u308a\u305f\u3044\u306e\u3067Postfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u8272\u3005\u3084\u308a\u305f\u3044\u3060\u3051\u3067\u3001\u3069\u3093\u306a\u8272\u3005\u304c\u3042\u308b\u306e\u304b\u3001\u5168\u3066\u306f\u77e5\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3002 \u307e\u305a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 $ sudo yum &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,130],"tags":[17,43],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-pc","category-130","tag-dti","tag-vps"],"_links":{"self":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":0,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"wp:attachment":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}