{"id":22,"date":"2018-09-04T11:38:53","date_gmt":"2018-09-04T02:38:53","guid":{"rendered":"https:\/\/pocolog.bass-world.net\/tech\/?p=22"},"modified":"2018-09-04T11:38:53","modified_gmt":"2018-09-04T02:38:53","slug":"gmo-cloud-centos7-qmail","status":"publish","type":"post","link":"https:\/\/pocolog.bass-world.net\/tech\/2018\/gmo-cloud-centos7-qmail\/","title":{"rendered":"GMO\u30af\u30e9\u30a6\u30c9(CentOS7)\u3067qmail\u3092\u7acb\u3061\u4e0a\u3052\u308b"},"content":{"rendered":"<p>CentOS 7 \u3067\u306f yum install qmail-src \u304c\u3067\u304d\u306a\u3044\u306e\u306d\u3002\u5f53\u305f\u308a\u524d\u304b\u3002\u3082\u3046 qmail \u306f\u4f7f\u308f\u306a\u3044\u306e\u306d\u3002<br \/>\nPostfix \u306b\u79fb\u884c\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u305f\u3051\u3069\u3001\u3068\u308a\u3042\u3048\u305a<\/p>\n<ul>\n<li>qmail \u672c\u4f53\u3068\u30d1\u30c3\u30c1\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u624b\u306b\u5165\u308b\u3002<\/li>\n<li>make \u304c\u901a\u308b<\/li>\n<\/ul>\n<p>\u306e\u306a\u3089\u3001\u3082\u3046\u5c11\u3057 qmail \u3067\u9811\u5f35\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4>\u307e\u305a\u3001qmail \u7528\u306e\u30e6\u30fc\u30b6\u3068\u30b0\u30eb\u30fc\u30d6\u3001\u305d\u3057\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210<\/h4>\n<blockquote>\n<pre><code># mkdir \/var\/qmail\n# groupadd nofiles\n# useradd -g nofiles -d \/var\/qmail\/alias -s \/sbin\/nologin -M alias\n# useradd -g nofiles -d \/var\/qmail -s \/sbin\/nologin -M qmaild\n# useradd -g nofiles -d \/var\/qmail -s \/sbin\/nologin -M qmaill\n# useradd -g nofiles -d \/var\/qmail -s \/sbin\/nologin -M qmailp\n# groupadd qmail\n# useradd -g qmail -d \/var\/qmail -s \/sbin\/nologin -M qmailq\n# useradd -g qmail -d \/var\/qmail -s \/sbin\/nologin -M qmailr\n# useradd -g qmail -d \/var\/qmail -s \/sbin\/nologin -M qmails<\/code><\/pre>\n<\/blockquote>\n<h4>qmail \u95a2\u4fc2\u306e\u30bd\u30fc\u30b9\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h4>\n<blockquote>\n<pre><code># wget http:\/\/cr.yp.to\/software\/qmail-1.03.tar.gz\n# wget http:\/\/www.raj-corp.com\/qmail-smtpd-auth-0.31.tar.gz\n# wget http:\/\/cr.yp.to\/ucspi-tcp\/ucspi-tcp-0.88.tar.gz\n# wget http:\/\/www.raj-corp.com\/qmail-smtpd-relay-reject\n# wget http:\/\/qmail.org\/moni.csi.hu\/pub\/glibc-2.3.1\/qmail-1.03.errno.patch\n# wget http:\/\/www.ckdhr.com\/ckd\/qmail-103.patch\n# wget\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u3044\u3066\u3001\u30b5\u30fc\u30d0\u306b\u30a2\u30c3\u30d7\u3002http:\/\/www.ksknet.net\/sample\/qmail-date-localtime.patch\n# tar zxvf qmail-1.03.tar.gz\n# tar zxvf qmail-smtpd-auth-0.31.tar.gz\n# mv qmail-date-localtime.patch qmail-1.03\n# mv qmail-smtpd-relay-reject qmail-1.03\n# mv qmail-smtpd-auth-0.31\/* qmail-1.03\n# mv qmail-103.patch qmail-1.03<\/code><\/pre>\n<\/blockquote>\n<p>\u3053\u3053\u3067\u3001GMO ALTUS \u306e CentOS 7.3 \u306b\u306f gcc \u3068 patch \u304c\u5165\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u6ce5\u7e04\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<blockquote>\n<pre><code># yum install patch\n# yum install gcc<\/code><\/pre>\n<\/blockquote>\n<h4>\u30d1\u30c3\u30c1\u3092\u5f53\u3066\u3066\u3001error.h \u3092\u4fee\u6b63<\/h4>\n<blockquote>\n<pre><code># patch &lt; qmail-date-localtime.patch\n# patch &lt; qmail-smtpd-relay-reject\n# patch &lt; auth.patch\n# patch &lt; qmail-103.patch\n\n# vi error.h\n\nextern int errno;\n\u2193\n#include&lt;errno.h&gt;\n\n# make setup check<\/code><\/pre>\n<\/blockquote>\n<p>\u901a\u3063\u305f\u30fc!<\/p>\n<h4>qmail \u306e\u95a2\u4fc2\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210<\/h4>\n<blockquote>\n<pre><code># cd \/var\/qmail\/control\n# echo somehost.pocolog.net &gt; me\n# echo somehost.pocolog.net &gt; locals\n# echo somehost.pocolog.net &gt; rcpthosts\n# echo pocolog.net &gt; defaultdomain\n# echo somehost.pocolog.net &gt; plusdomain\n# cd ..\/alias\n# echo foo@example.net &gt; .qmail-postmaster\n# echo foo@example.net &gt; .qmail-mailer-daemon\n# echo foo@example.net &gt; .qmail-root<\/code><\/pre>\n<\/blockquote>\n<h4>qmail\u306e\u8d77\u52d5\u78ba\u8a8d<\/h4>\n<p>(\u53d6\u3063\u3066\u304a\u3044\u305f)\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u8d77\u52d5\u78ba\u8a8d\u3002<\/p>\n<blockquote>\n<pre><code># cd \/(\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d1\u30b9)\/qmail-1.03\n# cp home \/var\/qmail\/rc\n# bash \/var\/qmail\/rc &amp;\n# ps -ef | grep qmail<\/code><\/pre>\n<\/blockquote>\n<p>qmail \u95a2\u4fc2\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u52d5\u3044\u3066\u3044\u305f\u3089OK\u3002\u78ba\u8a8d\u304c\u7d42\u308f\u3063\u305f\u3089 qmail-send \u3092 kill \u3057\u3066\u304a\u304f\u3002<br \/>\n\u3067\u3001\u3053\u3053\u3067\u6c17\u4ed8\u3044\u305f\u3002\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306e\u758e\u901a\u78ba\u8a8d\u306b\u306f tcpserver(\u3068 daemontools)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3068\u3002<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u6b21\u56de\u306f tcpserver &amp; daemontools \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a\u3002<\/p>\n<p>(\u8ffd\u8a18)<\/p>\n<blockquote>\n<pre><code># ln -s \/var\/qmail\/bin\/sendmail \/usr\/sbin\/sendmail\n# ln -s \/var\/qmail\/bin\/sendmail \/usr\/lib\/sendmail<\/code><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7 \u3067\u306f yum install qmail-src \u304c\u3067\u304d\u306a\u3044\u306e\u306d\u3002\u5f53\u305f\u308a\u524d\u304b\u3002\u3082\u3046 qmail \u306f\u4f7f\u308f\u306a\u3044\u306e\u306d\u3002 Postfix \u306b\u79fb\u884c\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u305f\u3051\u3069\u3001\u3068\u308a\u3042\u3048\u305a qmail \u672c\u4f53\u3068\u30d1\u30c3\u30c1\u306e\u30d7\u30ed\u30b0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/pocolog.bass-world.net\/tech\/2018\/gmo-cloud-centos7-qmail\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;GMO\u30af\u30e9\u30a6\u30c9(CentOS7)\u3067qmail\u3092\u7acb\u3061\u4e0a\u3052\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,10,14],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-gmo-cloud","category-linux","category-qmail"],"_links":{"self":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}