{"id":63,"date":"2006-08-14T08:28:45","date_gmt":"2006-08-13T23:28:45","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2006\/08\/14\/%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e6%a7%8b%e7%af%89%e3%80%80pop-before-smtp\/"},"modified":"2006-08-14T08:28:45","modified_gmt":"2006-08-13T23:28:45","slug":"%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e6%a7%8b%e7%af%89%e3%80%80pop-before-smtp","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/63","title":{"rendered":"\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u3000POP Before SMTP"},"content":{"rendered":"<p>Postfix + Qpopper + DRAC \u3067\u884c\u3044\u307e\u3059<br \/>\n\u3010DRAC\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3011<br \/>\n\u3053\u3053\u3000http:\/\/pocketstudio.jp\/drac-ja\/index.html\u3000\u304b\u3089<br \/>\nDynamic Relay Authorization Control\u3000\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5f8c\u3001\u5c55\u958b<br \/>\ntar xvzf drac.tar.Z<br \/>\nINSTSLL\u306b\u3057\u305f\u304c\u3063\u3066Makefile\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u5909\u66f4<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nINSTALL = install<br \/>\nDEFS = -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C<br \/>\nCFLAGS = $(DEFS) -g<br \/>\nLDLIBS = -ldb<br \/>\nRPCGENFLAGS = -C -I<br \/>\nMANADM = 8<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nmake<br \/>\nmake install<br \/>\n\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc<br \/>\ncp libdrac.a \/usr\/lib<br \/>\n\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a<br \/>\nvi \/etc\/rc.d\/initd\/dracd<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n# dracd-setup<br \/>\n# Source function library.<br \/>\n. \/etc\/rc.d\/init.d\/functions<br \/>\n# See how we were called.<br \/>\ncase &#8220;$1&#8221; in<br \/>\nstart)<br \/>\necho -n &#8220;Starting rpc.dracd daemon: &#8221;<br \/>\ndaemon \/usr\/local\/sbin\/rpc.dracd -i -e 30&#038;<br \/>\necho<br \/>\ntouch \/var\/lock\/subsys\/rpc.dracd<br \/>\n;;<br \/>\nstop)<br \/>\necho -n &#8220;Stopping rpc.dracd daemon: &#8221;<br \/>\nkillproc \/usr\/local\/sbin\/rpc.dracd<br \/>\necho<br \/>\nrm -f \/var\/lock\/subsys\/rpc.dracd<br \/>\n;;<br \/>\n*)<br \/>\necho &#8220;Usage: dracd {start|stop}&#8221;<br \/>\nexit 1<br \/>\nesac<br \/>\nexit 0<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nchmod 755 \/etc\/rc.d\/initd\/dracd<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<br \/>\nvi dracd.allow-sample\u3000\u306e\u3000255.255.255.255 192.168.16.8\u3000\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b<br \/>\ncp dracd.allow-sample \/etc\/mail\/dracd.allow<br \/>\n\u30c6\u30b9\u30c8\u3000 \uff0aportmap \u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u3053\u3068<br \/>\n\/etc\/rc.d\/init.d\/dracd start<br \/>\n\u89e3\u51cd\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u3000testing\u3000\u3092\u8d77\u52d5<br \/>\n.\/testing localhost 192.168.1.1 (\u306a\u3093\u3067\u3082\u3044\u3044\uff09<br \/>\nDrac\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d<br \/>\ndb_dump -p \/etc\/mail\/dracd.db<br \/>\n\u3053\u3093\u306a\u98a8\u306b\u51fa\u3066\u304f\u308c\u3070OK<br \/>\nVERSION=3<br \/>\nformat=print<br \/>\ntype=btree<br \/>\ndb_pagesize=512<br \/>\nHEADER=END<br \/>\n192.168.1.1  <-- testing \u3067\u4f7f\u7528\u3057\u305f IP \u304c\u8a18\u8ff0\u3055\u308c\u3044\u308c\u3070\u6210\u529f\n1120372480\nDATA=END\n\u30c6\u30b9\u30c8\u304c\u7d42\u308f\u3063\u305f\u3089\u521d\u671f\u5316\n.\/rpc.dracd -i\n\n<!--more--><br \/>\n\u3010Qpoppe\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3011<br \/>\n\u3053\u3053\u304b\u3089Qpopper\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059<br \/>\nhttp:\/\/www.eudora.com\/products\/unsupported\/qpopper\/index.html<br \/>\ntar zxvf qpopper4.0.8.tar.gz<br \/>\ncd qpopper4.0.8<br \/>\n.\/configure &#8211;with-drac<br \/>\nmake<br \/>\nmake install<br \/>\n\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210<br \/>\ntouch \/etc\/xinetd.d\/popper<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n# qpopper<br \/>\nservice pop3<br \/>\n{<br \/>\ndisable = no<br \/>\nsocket_type = stream<br \/>\nwait = no<br \/>\nuser = root<br \/>\nserver = \/usr\/local\/sbin\/popper<br \/>\nserver_args = -S -s<br \/>\n}<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\/etc\/init.d\/xinetd restart<br \/>\n\u3010Postfix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3011<br \/>\nuseradd postfix<br \/>\ngroupadd postdrop<br \/>\nvi \/etc\/aliases\u3000\u3000\u300cpostfix: root\u300d\u3092\u78ba\u8a8d<br \/>\n\u8a2d\u5b9a\u53cd\u6620<br \/>\nnewaliases<br \/>\n\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u3088\u304f\u3042\u308bsendmail\u304c\u8d77\u52d5\u3057\u3066\u3044\u305f\u3089\u3068\u3081\u308b<br \/>\n\/etc\/init.d\/sendmail stop<br \/>\n\/etc\/init.d\/dovecot stop \u3053\u308c\u3082\u3088\u304f\u3042\u308a\u307e\u3059<br \/>\nsendmail\u8d77\u52d5\u30e2\u30b8\u30e5\u30fc\u30eb\u9000\u907f<br \/>\nmv \/usr\/sbin\/sendmail \/usr\/sbin\/sendmail.old\u3000\uff0a\u5fd8\u308c\u3066\u3082\u81ea\u52d5\u3067\u9000\u907f\u3055\u308c\u307e\u3059\u306e\u3067OK<br \/>\nhttp:\/\/www.postfix.org\/download.html<br \/>\n\u3053\u3053\u304b\u3089Postfix\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059<br \/>\ntar xvzf postfix-2.2.11.tar.gz<br \/>\ncd postfix-2.2.11<br \/>\nmake\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff0aconfig\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u305f\u3081make\u3067OK<br \/>\nmake install<br \/>\n\uff0a\u4f55\u304b\u805e\u3044\u3066\u304d\u3066\u3082\u3059\u3079\u3066\u30ea\u30bf\u30fc\u30f3\u3067OK\u3067\u3057\u305f<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5909\u66f4<br \/>\nvi \/etc\/postfix\/main.cf<br \/>\nmyhostname = mail.domain.com <-- \u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e FDQ\nmydomain = domain.com <-- \u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30c9\u30e1\u30a4\u30f3\nmyorigin = $mydomain\ninet_interfaces = all\n# alias_maps = hash:\/etc\/aliases <-- \u300c#\u300d \u3092\u524a\u9664\n# alias_database = hash:\/etc\/aliases <-- \u300c#\u300d\u3092\u524a\u9664\nsendmail_path = \/usr\/sbin\/sendmail.postfix\nmydestination = $myhostname, localhost.$mydomain, localhost, $mydomain\nreadme_directory = no\nallow_mail_to_commands = alias,forward,include\nmynetworks = btree:\/etc\/mail\/dracd, [\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306eIP], 127.0.0.0\/8 ,\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\nsmtpd_recipient_restrictions = permit_mynetworks permit_auth_destination check_client_access\nbtree:\/etc\/mail\/dracd reject_unauth_destination reject\nvi \/etc\/postfix\/main.cf\n\u4ee5\u4e0a\u3067POP Before SMTP\u8a8d\u8a3c\u306e\u3064\u3044\u305f\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u5b8c\u6210\u3067\u3059\n\/var\/log\/maillog \u3001\/etc\/mail\/dracd.db\u3092\u898b\u306a\u304c\u3089\u30c6\u30b9\u30c8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Postfix + Qpopper + <\/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],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-linux","category-postfix"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}