{"id":624,"date":"2012-01-07T23:50:49","date_gmt":"2012-01-07T14:50:49","guid":{"rendered":"http:\/\/www.vincentina.net\/wordpress\/?p=624"},"modified":"2020-02-23T17:10:42","modified_gmt":"2020-02-23T08:10:42","slug":"sendmail-devocot-mbox%e3%81%a7%e3%81%ae%e8%a8%ad%e5%ae%9a%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=624","title":{"rendered":"Sendmail + Devocot mbox\u3067\u306e\u8a2d\u5b9a\u5185\u5bb9"},"content":{"rendered":"<p>\u305f\u3051\u3051\u3093\u306e\u74b0\u5883\u306f<br \/>\nSendmail\uff0bDovecot\u306b\u306a\u308a\u307e\u3059<\/p>\n<p>\u5165\u3063\u3066\u308b\u3068\u601d\u3046\u3051\u3069\u5ff5\u306e\u305f\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089<\/p>\n<pre>#\u3000yum -y install sendmail-cf\r\n# yum -y install dovecot<\/pre>\n<p>\u307e\u305a\u53d7\u4fe1\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u66f8\u304d\u307e\u3059<\/p>\n<pre># vim \/etc\/dovecot.conf<\/pre>\n<pre>\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8ffd\u52a0\r\nprotocols = imap imaps pop3 pop3s<\/pre>\n<pre>Sendmail\u540c\u69d8\u3001Mbox\u3092\u4f7f\u3046\u305f\u3081Mbox\u306e\u8a18\u8ff0\r\nmail_location = mbox:~\/mbox:INBOX=\/var\/spool\/mail\/%u<\/pre>\n<pre>Dovecot\u3092\u8d77\u52d5\r\n\/etc\/init.d\/dovecot start\r\n\u518d\u8d77\u52d5\u3057\u305f\u6642\u3082on\u306b\r\nchkconfig dovecot on<\/pre>\n<pre>SSH\u63a5\u7d9a\u3067\u304d\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210\r\n# useradd -s \/sbin\/nologin *******\r\n# passwd *****\u00a0\r\n\uff12\u56de\u5165\u308c\u3066passwd: all authentication tokens updated successfully.\r\n\u8868\u793a\u3055\u308c\u308c\u3070OK<\/pre>\n<p>\u7d9a\u3044\u3066\u9001\u4fe1\u30b5\u30fc\u30d0\u30fc<\/p>\n<pre>]# vi \/etc\/mail\/sendmail.mc\r\n\u307e\u305a\u306f.mc\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8a18\u8ff0\u3057\u307e\u3059<\/pre>\n<pre>\u30c7\u30d5\u30a9\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u307f\u306b\u306a\u3063\u3066\u308b\u306e\u3067\u3001\u305d\u3053\u3092\u5909\u3048\u307e\u3059\r\nDAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl<\/pre>\n<pre>\uff20\u4ee5\u964d\u3092\u30c9\u30e1\u30a4\u30f3\u306b\u3057\u307e\u3059\r\nMASQUERADE_AS(`(\u3042\u306a\u305f\u306e\u30c9\u30e1\u30a4\u30f3\u540d)')dnl<\/pre>\n<pre>\u3053\u3053\u3082\u5909\u3048\u308b\r\nFEATURE(masquerade_envelope)dnl\r\ndnl EXPOSED_USER(`root')dnl<\/pre>\n<pre>SMTP\u8a8d\u8a3c\u3059\u308b\u3088\u3046\u306b\u5909\u3048\u307e\u3059\u3001\u4ee5\u4e0b\u8a18\u8ff0\u306ednl\u3092\u53d6\u308a\u307e\u3059\r\nTRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl\r\ndefine(<code>confAUTH_MECHANISMS&#039;, <\/code>EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')<\/pre>\n<pre>\u81ea\u5b85\u306a\u3069\u304b\u3089\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u305f\u3044\u5834\u5408\u306f\u30b5\u30d6\u30df\u30c3\u30b7\u30e7\u30f3\u30dd\u30fc\u30c8\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\r\nDAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl\r\nMUA\u306e\u9001\u4fe1\u30dd\u30fc\u30c8\u306f\uff15\uff18\uff17\u306b\u306a\u308a\u307e\u3059<\/pre>\n<pre>m\uff14\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3067\u6697\u53f7\u5316\u3057\u3066\u307e\u3059\u3001\u00a0\r\n# m4 \/etc\/mail\/sendmail.mc &gt; \/etc\/mail\/sendmail.cf\r\ncat\u3068\u304b\u3067.cf\u3092\u898b\u308b\u3068\u6697\u53f7\u5316\u3055\u308c\u3066\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059<\/pre>\n<pre>\u3053\u3053\u306b\u30db\u30b9\u30c8\u540d\u3092\u8a18\u8ff0\u3057\u307e\u3059\r\n# vim \/etc\/mail\/local-host-names<\/pre>\n<pre># vim \/etc\/mail\/access\r\n\u3067\u30ea\u30ec\u30fc\u3092\u8a31\u53ef\u3059\u308bIP\u3084\u30c9\u30e1\u30a4\u30f3\u3092\u8a18\u8ff0\u3057\u307e\u3059<\/pre>\n<pre>sendmail\u306f\u3053\u306e\u307e\u307e\u3067\u306f\u8aad\u3081\u306a\u3044\u306e\u3067DB\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\r\nmakemap hash \/etc\/mail\/access.db &lt; \/etc\/mail\/access<\/pre>\n<pre>sendmail\u306e\u518d\u8d77\u52d5\r\n\/etc\/init.d\/sendmail restart\r\nservice sendmail restart\u3067\u3082\u3044\u3044\u3067\u3059<\/pre>\n<pre>\u00a0\u30ed\u30fc\u30ab\u30eb\u304b\u3089\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u3084\u308a\u304b\u305f\r\n# mail **** \u2190\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\r\nsubject \u4ef6\u540d\r\n\u5185\u5bb9\u3092\u5165\u308c\u308b\u3001\u307b\u306b\u3083\u3089\u3089\r\n.  \u2190\u30d4\u30ea\u30aa\u30c9\u5165\u308c\u3066\u30a8\u30f3\u30bf\u30fc\r\nCC\u3000\u5fc5\u8981\u306a\u3051\u308c\u3070\u7121\u8a18\u5165\u3067\u30a8\u30f3\u30bf\u30fc<\/pre>\n<pre>\u8a72\u5f53\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u3067\r\n$ mail\r\n\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059<\/pre>\n<p>maildir\u3068mbox\u306e\u9055\u3044\u3067\u3059\u304c\u3001mbox\u306f\uff11\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u3060\u3042\u3042\u3042\u3063\u3068\u5168\u3066\u306e\u30e1\u30fc\u30eb\u304c<br \/>\n\u8a18\u5165\u3055\u308c\u3066\u3044\u304d\u307e\u3059<br \/>\nmaildir\u306f\uff11\u3064\u306e\u30e1\u30fc\u30eb\u3054\u3068\u306b\uff11\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u308a\u307e\u3059<br \/>\n\u5358\u7d14\u306b\u9577\u30fc\u30fc\u30fc\u30fc\u3044\u76ee\u3067\u898b\u308c\u3070 maildir\u65b9\u5f0f\u306e\u307b\u3046\u304c\u3088\u3044\u3067\u3059\u306d<\/p>\n<p>\u305d\u3057\u3066iptables\u306e\u8a2d\u5b9a\u5fd8\u308c\u3066\u307e\u3057\u305f<br \/>\n\/etc\/sysconfig\/iptables\u306b\u4ee5\u4e0b\u8a18\u8ff0\u3092\u8db3\u3057\u307e\u3059<br \/>\nImap\u3092\u4f7f\u3046\u4eba\u306f\uff11\uff14\uff13\u3082\u958b\u3051\u3066\u306d<\/p>\n<pre>-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 110 -j ACCEPT\r\n-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 25 -j ACCEPT\r\n-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 587 -j ACCEPT<\/pre>\n<p>\u3042\u3068\u306f<a href=\"http:\/\/www.rbl.jp\/svcheck.php\">RBL.JP<\/a>\u3055\u3093\u306e\u3068\u3053\u3067\u30ea\u30ec\u30fc\u30c1\u30a7\u30c3\u30af<br \/>\n\u30dd\u30fc\u30c8\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u304f\u308c\u308b\u30b5\u30a4\u30c8\u3067\u30dd\u30fc\u30c8\u304c\u958b\u3044\u3066\u3044\u308b\u304b<br \/>\n\u9589\u3058\u308b\u3079\u304d\u3068\u3053\u308d\u306f\u5c4a\u304b\u306a\u3044\u304b\u3061\u3083\u3093\u3068\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=624\" data-text=\"Sendmail + Devocot mbox\u3067\u306e\u8a2d\u5b9a\u5185\u5bb9\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u305f\u3051\u3051\u3093\u306e\u74b0\u5883\u306f Sendmail\uff0bDovecot\u306b\u306a\u308a\u307e\u3059 \u5165\u3063\u3066\u308b\u3068\u601d\u3046\u3051\u3069\u5ff5\u306e\u305f\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089 #\u3000yum -y install sendmail-cf # yum -y install dovecot \u307e\u305a\u53d7 &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=624\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Sendmail + Devocot mbox\u3067\u306e\u8a2d\u5b9a\u5185\u5bb9&#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],"tags":[],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=624"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/624\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}