{"id":74,"date":"2008-05-16T23:37:00","date_gmt":"2008-05-16T14:37:00","guid":{"rendered":"http:\/\/yokensaka.com\/fedora\/?p=74"},"modified":"2008-05-16T23:37:00","modified_gmt":"2008-05-16T14:37:00","slug":"popimap%e3%82%b5%e3%83%bc%e3%83%90dovecot","status":"publish","type":"post","link":"http:\/\/yokensaka.com\/fedora\/?p=74","title":{"rendered":"POP\/IMAP\u30b5\u30fc\u30d0(Dovecot)"},"content":{"rendered":"<p><b>\u25a0\u3000FC2\uff5eFC6 \/ Fedora7 \/Fedora8 \/Fedora9<\/b><br \/>\nPostfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3060\u3051\u3067\u306f\u3001\u30e1\u30fc\u30eb\u306e\u8aad\u307f\u51fa\u3057\u306f\u51fa\u6765\u307e\u305b\u3093\u3002 Postfix\u306f\u30e1\u30fc\u30eb\u3092\u914d\u4fe1\u3059\u308b\u305f\u3081\u306eSMTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u306e\u6a5f\u80fd\u3057\u304b\u6301\u305f\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u3053\u3053\u3067\u306fdovecot\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001POP3\/IMAP4\u3069\u3061\u3089\u3067\u3082\u30e1\u30fc\u30eb\u3092\u8aad\u307f\u51fa\u305b\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n<b>\u25a0dovecot\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><br \/>\ndovecot\u306f\u9ad8\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u6027\u3092\u91cd\u8981\u8996\u3057\u3066\u958b\u767a\u3055\u308c\u305fPOP3\/IMAP4\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30fc\u3067\u3059\u3002<\/p>\n<pre>[root@linux ~]# yum -y install dovecot<\/pre>\n<p><b>\u25a0dovecot\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6<\/b><br \/>\n<b>\u203b Fedora7 \/ Fedora8 \/Fedora9<\/b><br \/>\ndovecot\u306fPOP3\/IMAP4\u3069\u3061\u3089\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u70b9\u3067\u306f\u3001IMAP4\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3057\u304b\u52d5\u4f5c\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067POP3\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3082\u30e1\u30fc\u30eb\u304c\u8aad\u307f\u51fa\u305b\u308b\u3088\u3046\u306b\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# vi \/etc\/dovecot.conf\u3000\u2190\u3000dovecot.conf\u3092\u958b\u304d\u307e\u3059\n# Base directory where to store runtime data.\n#base_dir = \/var\/run\/dovecot\/\n# Protocols we want to be serving: imap imaps pop3 pop3s\n# If you only want to use dovecot-auth, you can set this to \"none\".\n#protocols = imap imaps pop3 pop3s\n\u2193\nprotocols = imap imaps pop3 pop3s\u3000\u2190\u3000#\u3092\u5916\u3057\u307e\u3059\n\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u683c\u7d0d\u5f62\u5f0f\u3092Maildir\u5f62\u5f0f\u3068\u3057\u307e\u3059\n#   mail_location = maildir:~\/Maildir\n#   mail_location = mbox:~\/mail:INBOX=\/var\/mail\/%u\n#   mail_location = mbox:\/var\/mail\/%d\/%1n\/%n:INDEX=\/var\/indexes\/%d\/%1n\/%n\n#\n# &lt;doc\/wiki\/MailLocation.txt&gt;\n#\n#mail_location =\n\u2193\nmail_location = maildir:~\/Maildir\u3000\u2190\u3000#\u3092\u5916\u3057 maildir:~\/Maildir\u3092\u8ffd\u8a18\u3057\u307e\u3059<\/pre>\n<p><b>\u25a0dovecot\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6<\/b><br \/>\n<b>\u203b FC2\uff5eFC6<\/b><br \/>\ndovecot\u306fPOP3\/IMAP4\u3069\u3061\u3089\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u70b9\u3067\u306f\u3001IMAP4\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3057\u304b\u52d5\u4f5c\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067POP3\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3082\u30e1\u30fc\u30eb\u304c\u8aad\u307f\u51fa\u305b\u308b\u3088\u3046\u306b\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# vi \/etc\/dovecot.conf\u3000\u2190\u3000dovecot.conf\u3092\u958b\u304d\u307e\u3059\n# Base directory where to store runtime data.\n#base_dir = \/var\/run\/dovecot\/\n# Protocols we want to be serving:\n#  imap imaps pop3 pop3s\n#protocols = imap imaps pop3 pop3s\n\u2193\nprotocols = imap imaps pop3 pop3s\u3000\u2190\u3000#\u3092\u5916\u3057\u307e\u3059\n\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u683c\u7d0d\u5f62\u5f0f\u3092Maildir\u5f62\u5f0f\u3068\u3057\u307e\u3059\n#   default_mail_env = maildir:\/var\/mail\/%1u\/%u\/Maildir\n#   default_mail_env = mbox:~\/mail\/:INBOX=\/var\/mail\/%u\n#   default_mail_env = mbox:\/var\/mail\/%d\/%n\/:INDEX=\/var\/indexes\/%d\/%n\n#\n#default_mail_env =\n\u2193\ndefault_mail_env = maildir:~\/Maildir\u3000\u2190\u3000#\u3092\u5916\u3057 maildir:~\/Maildir\u3092\u8ffd\u8a18\u3057\u307e\u3059<\/pre>\n<p><b>\u25a0dovecot\u306e\u8d77\u52d5<\/b><\/p>\n<pre>[root@linux ~]# \/etc\/rc.d\/init.d\/dovecot start\nDovecot Imap \u3092\u8d77\u52d5\u4e2d:                                     [  OK  ]\ndovecot\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\n[root@linux ~]# chkconfig dovecot on\ndovecot\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u78ba\u8a8d\n[root@linux ~]# chkconfig --list dovecot\ndovecot         0:off   1:off   2:on    3:on    4:on    5:on    6:off\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff08\u30e9\u30f3\u30ec\u30d9\u30eb2\uff5e5\u306eon\u3092\u78ba\u8a8d\uff09<\/pre>\n<p>POP\/IMAP\u30b5\u30fc\u30d0\u3092\u4f7f\u3046\u306b\u306f\u3001\u30eb\u30fc\u30bf\u30fc\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u30eb\u30fc\u30bf\u306e\u8a2d\u5b9a\u3067<b>110\u756a(POP\u306e\u5834\u5408)\u307e\u305f\u306f143\u756a(IMAP\u306e\u5834\u5408)\u306e\u30dd\u30fc\u30c8<\/b>\u3092\u958b\u3051\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<b>\u25a0\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u4f5c\u6210<\/b><br \/>\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u65b0\u3057\u304f\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u4f5c\u6210\u53ef\u80fd\u3067\u3059\u304c\u3001\u30e1\u30fc\u30eb\u306e\u307f\u4f7f\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u304c telnet\u3084ssh\u3092\u4f7f\u3048\u308b\u72b6\u614b\u306b\u3057\u3066\u304a\u304f\u306e\u306f\u671b\u307e\u3057\u3044\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 useradd\u306b -s\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u30b7\u30a7\u30eb\u3092\/sbin\/nologin\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\nt-higo\u3068\u3044\u3046\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# useradd -s \/sbin\/nologin t-higo<\/pre>\n<p><b>\u25a0\u30e6\u30fc\u30b6\u30fct-higo\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059<\/b><\/p>\n<pre>[root@linux ~]# passwd t-higo\nChanging password for user t-higo.\nNew UNIX password:\u3000\u2190\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\uff08\u8868\u793a\u3055\u308c\u307e\u305b\u3093\uff09\nBAD PASSWORD: it is based on a (reversed) dictionary word\nRetype new UNIX password:\u3000\u2190\u3000\u518d\u5ea6\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\npasswd: all authentication tokens updated successfully.<\/pre>\n<p>\u3053\u308c\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u4f7f\u7528\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3000\u3000\u3000t-higo@yokensaka.com<br \/>\n<b>\u25a0\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ec\u30d9\u30eb\u306e\u8a2d\u5b9a<\/b><br \/>\nFedora Core\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6642\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3057\u305f\u5834\u5408\u306f\u3001\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u51fa\u6765\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30ec\u30d9\u30eb\u3092\u5909\u66f4\u3057\u3066\u3001SMTP\u30b5\u30fc\u30d0\u30fc\u53ca\u3073POP\u30b5\u30fc\u30d0\u30fc\u3001IMAP\u30b5\u30fc\u30d0\u30fc\u3078\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002 X Window System\u3067\u8d77\u52d5\u3057\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u30e1\u30cb\u30e5\u30fc\u300d\u304b\u3089\u300c\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u300d-\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ec\u30d9\u30eb\u300d\u3092\u9078\u629e\u3057\u3066\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ec\u30d9\u30eb\u306e\u8a2d\u5b9a\u30c4\u30fc\u30eb\u300d\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u30e1\u30fc\u30eb\u306e\u9001\u53d7\u4fe1\u3092\u53ef\u80fd\u306b\u3059\u308b\u306b\u306f\u3001\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ec\u30d9\u30eb\u300d\u3067\u300c\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u3001\u300c\u4fe1\u983c\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u300d\u306e\u300c\u30e1\u30fc\u30eb\uff08SMTP\uff09\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3001\u300c\u4ed6\u306e\u30dd\u30fc\u30c8\u300d\u306b\u300c110:tcp,110:udp,143:udp,993:tcp,993:udp,995:tcp,995:udp\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<div align=right><a href=\"#\">\u25b2 \u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u3000FC2\uff5eFC6 \/ Fedora7 \/Fedora8 \/Fedora9 Postfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3060\u3051\u3067\u306f\u3001\u30e1\u30fc\u30eb\u306e\u8aad\u307f\u51fa\u3057\u306f\u51fa\u6765\u307e\u305b\u3093\u3002 Postfix\u306f\u30e1\u30fc\u30eb\u3092\u914d\u4fe1\u3059\u308b\u305f\u3081\u306eSMTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u306e\u6a5f\u80fd\u3057\u304b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-18-popimapdovecot"],"_links":{"self":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74"}],"version-history":[{"count":0,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions"}],"wp:attachment":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}