{"id":4001,"date":"2015-12-10T18:35:53","date_gmt":"2015-12-10T09:35:53","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=4001"},"modified":"2025-03-12T11:27:31","modified_gmt":"2025-03-12T02:27:31","slug":"roundcube%e3%81%aemanagesieve%e3%82%92%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2015\/12\/10\/roundcube%e3%81%aemanagesieve%e3%82%92%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/","title":{"rendered":"RoundCube\u306emanagesieve\u3092\u3061\u3087\u3063\u3068\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"<p><a href=\"http:\/\/www.lancard.com\/blog\/2015\/07\/22\/roundcube%e7%94%a8%e3%81%abcentos%e3%81%aepostfixdovecot%e3%81%a7%e7%b0%a1%e5%8d%98%e3%81%aa%e3%83%86%e3%82%b9%e3%83%88%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%82%8b\/\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3067\u4f7f\u3063\u305f\u30b5\u30fc\u30d0\u306b\u5f15\u304d\u7d9a\u304d\u3001sieve\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u914d\u9001\u306b\u306fLDA\u3068LMTP\u5f62\u5f0f\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001LMTP\u304c\u6d41\u884c\u3089\u3057\u3044\u306e\u3067LMTP\u3067\u3002<\/li>\n<li>postfix\u3067virtual\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u308b\u3068\u3053\u308c\u3060\u3068\u52d5\u304b\u306a\u3044\u306e\u3067\u3001\u307e\u305f\u3072\u3068\u624b\u9593\u5fc5\u8981\u3067\u3059\u3002<\/li>\n<li>CentOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u5fae\u5999\u306b\u9055\u3044\u304c\u6709\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u591a\u5206\u52d5\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<pre lang=\"bash\">\n yum -y install dovecot-pigeonhole dovecot-managesieve\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/\u306b20-managesieve.conf\u306890-sieve.conf\u304c\u7121\u3044\u5834\u5408\u3001<\/p>\n<pre lang=\"bash\">\nrpm -ql dovecot-managesieve|grep conf\nrpm -ql dovecot-pigeonhole|grep conf\n<\/pre>\n<p>\u3067\u8868\u793a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\/etc\/dovecot\/conf.d\/\u3078\u30b3\u30d4\u30fc\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n\u5f8c\u306f\u3072\u305f\u3059\u3089\u7de8\u96c6\u3002<\/p>\n<p>\/etc\/dovecot\/conf.d\/10-auth.conf<\/p>\n<pre lang=\"bash\">\nauth_username_format = %n\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/10-master.conf<\/p>\n<pre lang=\"bash\">\nservice lmtp {\n  # dovecot\u306elmtp\n  unix_listener \/var\/spool\/postfix\/private\/dovecot-lmtp {\n    group = postfix\n    mode = 0600\n    user = postfix\n  }\n}\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/20-managesieve.conf<\/p>\n<pre lang=\"bash\">\nprotocols = $protocols sieve\nservice managesieve-login{\n  inet_listener sieve {\n    port = 4190\n  }\n}\nservice managesieve{\n}\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/20-lmtp.conf<\/p>\n<pre lang=\"bash\">\nprotocols = $protocols lmtp\nprotocol lmtp {\n  postmaster_address = roundcube@localhost.localdomain\n  mail_plugins = $mail_plugins sieve\n}\n<\/pre>\n<p>postmaster_address\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u5fc5\u8981\u3067\u3042\u308c\u3070useradd\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\/etc\/dovecot\/conf.d\/90-sieve.conf\u306f\u305d\u306e\u307e\u307e\u3067OK\u3067\u3059\u3002<\/p>\n<p>\/etc\/postfix\/main.cf<\/p>\n<pre lang=\"bash\">\nmailbox_transport = lmtp:unix:private\/dovecot-lmtp\n<\/pre>\n<p>\u3053\u3053\u307e\u3067\u7d42\u308f\u3063\u305f\u3089\u3001\u4e00\u5ea6\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre lang=\"bash\">\nservice postfix reload\nservice dovecot reload\n<\/pre>\n<h2>RoundCube<\/h2>\n<div>\nRoundCube\u5074\u306e\u8a2d\u5b9a\u306f\u3001config\/config.inc.php\u306eplugins\u306bmanagesieve\u3092\u8ffd\u52a0<\/p>\n<pre lang=\"php\">\n$config['plugins'] = array(\n  ... \/\/ \u5143\u3005\u8a18\u8f09\u3057\u3066\u3042\u308b\u306a\u3089\u3001\u4e00\u884c\u8ffd\u52a0\u3059\u308b\u3060\u3051\n  'managesieve',\n);\n<\/pre>\n<p>plugins\/managesieve\/config.inc.php.dist\u3092config.inc.php\u3078\u30b3\u30d4\u30fc\u3057\u3066\u7de8\u96c6<br \/>\nplugins\/managesieve\/config.inc.php<\/p>\n<pre lang=\"php\">\n$config['managesieve_port'] = 4190;\n$config['managesieve_host'] = 'localhost';\n<\/pre>\n<p>RoundCube\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001\u8a2d\u5b9a\u306b\u30d5\u30a3\u30eb\u30bf\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u3066\u3044\u308c\u3070\u8a2d\u5b9a\u753b\u9762\u304c\u51fa\u307e\u3059\u3002<br \/>\n\u30d5\u30a3\u30eb\u30bf\u30fc\u4e0b\u306e\uff0b\u30a2\u30a4\u30b3\u30f3\u3067\u8ffd\u52a0\u51fa\u6765\u308b\u306e\u3067\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u540d\u3092test\u306b\u3057\u3066\u3001<br \/>\n\u30bf\u30a4\u30c8\u30eb\u306btest\u3092\u542b\u3080\u30e1\u30fc\u30eb\u53d7\u4fe1\u6642\u306btest\u30d5\u30a9\u30eb\u30c0\u3078\u79fb\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre lang=\"bash\">\n\u4ef6\u540d \u542b\u3080 test\n\u6b21\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u79fb\u52d5 test\n<\/pre>\n<p>\u3067\u4fdd\u5b58\u3057\u3066\u3001\u4ef6\u540d\u3092test\u3067\u81ea\u5206\u5b9b\u306b\u9001\u4fe1\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002\n<\/p><\/div>\n<p>\u5c4a\u304b\u306a\u3044\u6642\u306f\u3044\u3064\u3082\u306e\u3088\u3046\u306b\/var\/log\/maillog\u3067lmtp\u3067\u30ed\u30b0\u3092\u691c\u7d22\u3057\u3064\u3064\u30b0\u30b0\u308b\u3060\u3051\u3002<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4001&amp;t=RoundCube%E3%81%AEmanagesieve%E3%82%92%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B&amp;s=100&amp;p[url]=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4001&amp;p[images][0]=&amp;p[title]=RoundCube%E3%81%AEmanagesieve%E3%82%92%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4001&amp;text=RoundCube%E3%81%AEmanagesieve%E3%82%92%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4001&amp;title=RoundCube%E3%81%AEmanagesieve%E3%82%92%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&amp;v=3&amp;t=RoundCube%E3%81%AEmanagesieve%E3%82%92%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B&amp;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4001\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=RoundCube%E3%81%AEmanagesieve%E3%82%92%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B&amp;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4001\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u4f7f\u3063\u305f\u30b5\u30fc\u30d0\u306b\u5f15\u304d\u7d9a\u304d\u3001sieve\u3092\u5165\u308c\u307e\u3059\u3002 \u914d\u9001\u306b\u306fLDA\u3068LMTP\u5f62\u5f0f\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001LMTP\u304c\u6d41\u884c\u3089\u3057\u3044\u306e\u3067LMTP\u3067\u3002 postfix\u3067virtual\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u308b\u3068\u3053\u308c\u3060\u3068\u52d5\u304b\u306a\u3044\u306e\u3067\u3001\u307e [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[99,1],"tags":[],"class_list":["post-4001","post","type-post","status-publish","format-standard","hentry","category-roundcube","category-1"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=4001"}],"version-history":[{"count":11,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4001\/revisions"}],"predecessor-version":[{"id":4012,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4001\/revisions\/4012"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=4001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=4001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=4001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}