{"id":218,"date":"2008-07-19T21:16:26","date_gmt":"2008-07-19T12:16:26","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2008\/07\/19\/postfix-pcre-%e5%b0%8e%e5%85%a5\/"},"modified":"2008-07-19T21:16:26","modified_gmt":"2008-07-19T12:16:26","slug":"postfix-pcre-%e5%b0%8e%e5%85%a5","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/218","title":{"rendered":"Postfix pcre \u5c0e\u5165"},"content":{"rendered":"<p>Postfix\u306b\u53d7\u4fe1\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6b63\u898f\u8868\u73fe\u3067\u89e3\u6790\u3059\u308b\u30c4\u30fc\u30eb\u3092\u8ffd\u52a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u4f7f\u3063\u3066\u30ad\u30e3\u30c3\u30c1\u30aa\u30fc\u30eb\u8a2d\u5b9a\u3092\u884c\u3048\u3070OpenPNE\u306e\u30e1\u30fc\u30eb\u753b\u50cf\u6295\u7a3f\u306e\u3088\u3046\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u88c5\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305apcre-7.7.tar.gz\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\n# wget ftp:\/\/ftp.csx.cam.ac.uk\/pub\/software\/programming\/pcre\/pcre-7.7.tar.gz<br \/>\n# tar zxvf pcre-7.7.tar.gz<br \/>\n# cd prec-7.7<br \/>\n# .\/configure<br \/>\n# make<br \/>\n# make install<br \/>\nPostfix\u3092\u30b3\u30f3\u30d1\u30a4\u30eb<br \/>\n# tar xvzf postfix-2.5.2.tar.gz<br \/>\n# cd postfix-2.5.2<br \/>\n# make -f Makefile.init makefiles CCARGS=&#8217;-DHAS_PCRE -Ipcre-7.7&#8242; AUXLIBS=\/usr\/local\/src\/pcre-7.7\/.libs\/libpcre.a<br \/>\n# make<br \/>\n# make install<br \/>\n# \u3044\u308d\u3044\u308d\u805e\u304b\u308c\u308b\u306e\u3067\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u306b\u5fdc\u3058\u3066\u5165\u529b<br \/>\n# postconf -m \u30b3\u30de\u30f3\u30c9\u3067Postfix\u3067\u4f7f\u3048\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4e00\u89a7\u3092\u8868\u793a\u3057\u3066 pcre \u304c\u3042\u308c\u3070OK<br \/>\n\u3010\u8a2d\u5b9a\u306e\u4f8b\u3011<br \/>\nmain.cf \u306b\u8ffd\u52a0<br \/>\nvirtual_alias_domains = \u30c9\u30e1\u30a4\u30f3\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067<br \/>\nvirtual_alias_maps = pcre:\/etc\/postfix\/pcre_virtual<br \/>\npcre_virtual\u3092\u65b0\u898f\u4f5c\u6210<br \/>\n\/^post-[0-9a-zA-Z_]@xxx.net\/ command_xxx_net<br \/>\n\u3000* post-[\u30e9\u30f3\u30c0\u30e0\u82f1\u6570]@xxx.net \u3068\u3044\u3046\u30e1\u30fc\u30eb\u304c\u7740\u305f\u3089\u3000command_xxx_net\u3000\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u8d77\u52d5\u3057\u307e\u3059<br \/>\ncommand_xxx_net\u306f\/etc\/aliases \u3067\u8a2d\u5b9a<br \/>\n\/etc\/aliases<br \/>\ncommand_xxx_net: &#8220;|\/usr\/local\/bin\/php  path_to_php&#8221;  \uff0a\u3053\u3053\u306b\u8d77\u52d5\u3059\u308bPHP\u3092\u8a18\u8ff0<br \/>\nPostfix\u518d\u8d77\u52d5<br \/>\n# newaliases<br \/>\n# postmap \/etc\/postfix\/pcre_virtual<br \/>\n# postfix reload<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Postfix\u306b\u53d7\u4fe1\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6b63\u898f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-postfix"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/218","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=218"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/218\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}