{"id":96,"date":"2008-05-01T14:12:56","date_gmt":"2008-05-01T05:12:56","guid":{"rendered":"http:\/\/unos.biz\/blog\/archives\/96"},"modified":"2008-05-06T02:18:37","modified_gmt":"2008-05-05T17:18:37","slug":"postfix%e3%82%92%e9%80%81%e4%bf%a1%e5%b0%82%e7%94%a8%e3%81%abfedora8","status":"publish","type":"post","link":"http:\/\/unos.biz\/blog\/archives\/96","title":{"rendered":"postfix\u3092\u9001\u4fe1\u5c02\u7528\u306b@Fedora8"},"content":{"rendered":"<p>\u305d\u308d\u305d\u308dFedora9\u304c\u51fa\u308b\u3089\u3057\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001Fedora8\u304b\u3089Fedora9\u3078\u306eupgrade\u65b9\u6cd5\u3092\u8abf\u3079\u3064\u3064\u3001\u4eca\u65e5\u306fFedora8\u3067\u306epostfix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u8272\u3005\u7d44\u307f\u5408\u308f\u305b\u3066\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3059\u308b\u3068\u3044\u3046\u30cd\u30bf\u306f\u5f8c\u65e5\u3084\u308b\u3068\u3057\u3066\u4eca\u56de\u306f\u9001\u4fe1\u5c02\u7528\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u5074\u304b\u3089\u30d0\u30eb\u30af\u9001\u4fe1\u3059\u308b\u3053\u3068\u3082\u8003\u3048\u3066\u3001\u9045\u5ef6\u9001\u4fe1\u51e6\u7406\u3082\u542b\u3081\u308b\u3002<\/p>\n<p>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre># yum install postfix<\/pre>\n<p>\u25a0\u6a19\u6e96MTA\u306e\u5909\u66f4<\/p>\n<pre># alternatives --config mta\nThere are 2 programs which provide 'mta'.   Selection    Command\n-----------------------------------------------\n*+1           \/usr\/sbin\/sendmail.sendmail\n  2           \/usr\/sbin\/sendmail.postfix \nEnter to keep the current selection[+], or type selection number: 2\n<\/pre>\n<p>\u25a0sendmail\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u6b62\u3081\u308b<\/p>\n<pre># chkconfig sendmail off<\/pre>\n<p>\u25a0postfix\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u8a2d\u5b9a<\/p>\n<pre># chkconfig postfix on<\/pre>\n<p><strike>\u25a0smtp\/relay\u3067\u52d5\u304b\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a<\/strike><\/p>\n<pre><strike># vi \/etc\/postfix\/master.cf<\/strike><\/pre>\n<blockquote>\n<pre><strike>#smtp      unix  -       -       n       -       -       smtp\n# When relaying mail as backup MX, disable fallback_relay to avoid MX loops\n#relay     unix  -       -       n       -       -       smtp<\/strike><\/pre>\n<\/blockquote>\n<p>\u25a0\u81ea\u30db\u30b9\u30c8\u306eFQDN\u8a2d\u5b9a\u3068\u9045\u5ef6\u9001\u4fe1\u8a2d\u5b9a<\/p>\n<pre># vi \/etc\/postfix\/main.cf<\/pre>\n<blockquote>\n<pre>myhostname = mail.example.com\ndefer_transports = smtp (\u8ffd\u8a18)<\/pre>\n<\/blockquote>\n<p>\u25a0\u8a2d\u5b9a\u78ba\u8a8d<\/p>\n<pre># service postfix check<\/pre>\n<p>\u25a0sendmail\u30b5\u30fc\u30d3\u30b9\u505c\u6b62<\/p>\n<pre># service sendmail stop<\/pre>\n<p>\u25a0postfix\u30b5\u30fc\u30d3\u30b9\u958b\u59cb<\/p>\n<pre># service postfix start<\/pre>\n<p>\u8ffd\u8a18(5\/2)\uff1a\u3069\u3046\u3082\u307e\u3060\u3053\u308c\u3060\u3051\u3060\u3068\u9045\u5ef6\u9001\u4fe1\u306e\u78ba\u8a8d\u304c\u51fa\u6765\u3066\u3044\u306a\u3044\u3002\u5f8c\u3067\u8abf\u3079\u3066\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<p>\u8ffd\u8a18(5\/5)\uff1asmtp\/relay\u3092\u6bba\u3057\u305f\u3089\u3046\u307e\u304f\u3044\u304f\u306f\u305a\u306a\u3044\u3088\u306aJK\u3001\u3068\u3044\u3046\u308f\u3051\u3067\u305d\u306e\u8a2d\u5b9a\u306f\u3057\u3066\u306f\u30a4\u30b1\u30ca\u30a4\u3002\u3053\u308c\u3067\u9045\u5ef6\u9001\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001\u4e0b\u8a18\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3002<\/p>\n<p>\u25a0sendmail -q\u3067\u9069\u5b9c\u30ad\u30e5\u30fc\u306e\u4e2d\u8eab\u3092\u9001\u4fe1<\/p>\n<pre># vi \/etc\/cron.d\/mailqueueflush<\/pre>\n<blockquote>\n<pre>* * * * * \/usr\/sbin\/sendmail.postfix -q<\/pre>\n<\/blockquote>\n<p>\u9593\u9694\u306f\u74b0\u5883\u3054\u3068\u306b\u5fc5\u8981\u5341\u5206\u306a\u5024\u3092\u691c\u8a0e\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u3057\u3001\u51fa\u6765\u308c\u3070\u5fc5\u8981\u306a\u9001\u4fe1\u51e6\u7406\u304c\u7d42\u308f\u308b\u3054\u3068\u306b\u547c\u3093\u3060\u65b9\u304c\u826f\u3044\u3088\u3046\u306b\u601d\u3046\u3002\u305d\u308c\u3068\u3001\u3053\u306e\u8a2d\u5b9a\u3067\u3069\u308c\u304f\u3089\u3044\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5909\u5316\u304c\u3042\u308b\u304b\u306f\u691c\u8a0e\u3092\u8981\u3059\u308b\u3068\u3053\u308d\u306a\u306e\u3067\u3001\u4ed5\u4e8b\u306a\u3089\u4e8b\u524d\u306b\u8a55\u4fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u308d\u305d\u308dFedora9\u304c\u51fa\u308b\u3089\u3057\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001Fedora8\u304b\u3089Fedora9\u3078\u306eupgrade\u65b9\u6cd5\u3092\u8abf\u3079\u3064\u3064\u3001\u4eca\u65e5\u306fFedora8\u3067\u306epostfix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u8272\u3005\u7d44\u307f\u5408\u308f\u305b\u3066\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3059\u308b\u3068\u3044\u3046\u30cd\u30bf\u306f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/96"}],"collection":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":0,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}