{"id":6767,"date":"2023-03-03T17:47:41","date_gmt":"2023-03-03T08:47:41","guid":{"rendered":"https:\/\/www.lancard.com\/blog\/?p=6767"},"modified":"2025-03-12T11:23:58","modified_gmt":"2025-03-12T02:23:58","slug":"dovecot_master-deny-users","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2023\/03\/03\/dovecot_master-deny-users\/","title":{"rendered":"Dovecot\u306emaster-users\u3068deny-users"},"content":{"rendered":"\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\nDovecot\u3067\u3001\u8a8d\u8a3c\u7cfb\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u3044\u3066\u3001\u3061\u3087\u3063\u3068\u7279\u6b8a\u306a\u3001<br>\u30fb\u8ab0\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u3082\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308bmaster\u30e6\u30fc\u30b6<br>\u30fb\u30ed\u30b0\u30a4\u30f3\u3092\u7981\u6b62\u3059\u308bdeny<br>\u3068\u3044\u3046\u6a5f\u80fd\u304c\u6709\u3063\u305f\u306e\u3067\u3001\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u203bmaster\u30e6\u30fc\u30b6\u306f\u5f37\u529b\u306a\u6a5f\u80fd\u306a\u306e\u3067\u3001\u901a\u5e38\u306f\u8a2d\u5b9a\u3057\u306a\u3044\u65b9\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/mark>\n<\/div>\n<\/div>\n\n\n\n\n<!--more-->\n\n\n\n\n<h2 class=\"wp-block-heading\">master<\/h2>\n\n\n\n\n\n<ul class=\"wp-block-list\">\n<li>conf.d\/10-auth.conf<\/li>\n<\/ul>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>auth_master_user_separator = *\n\n## Password and user databases\n# ...\n!include auth-master.conf.ext<\/code><\/pre>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\nauth_username_chars\u3078\u3001*\u306e\u8ffd\u52a0\u306f\u4e0d\u8981\u306a\u3088\u3046\u3067\u3059\u3002\n<\/div>\n<\/div>\n\n\n\n\n\n\n\n\n\n<ul class=\"wp-block-list\">\n<li>conf.d\/auth-master.conf.ext<\/li>\n<\/ul>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>passdb {\n  driver = passwd-file\n  master = yes\n  args = \/etc\/dovecot\/master-users\n  result_success = continue\n}<\/code><\/pre>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n\/etc\/dovecot\/master-users\u306f\u3001htpasswd\u3067\u4f5c\u6210\u51fa\u6765\u307e\u3059\u3002<br>htpasswd\u304c\u7121\u3051\u308c\u3070doveadm pw\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u3057\u3066\u3001\u76f4\u63a5\u7de8\u96c6\u3057\u3066\u3082OK\u3067\u3059\uff08user:pass \u30671\u884c\u306e\u5f62\u5f0f\uff09\u3002\n<\/div>\n<\/div>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>htpasswd -b -c -s \/etc\/dovecot\/master-users admin adminpass<\/code><\/pre>\n\n\n\n\nRoundCube\u3067\u3001user*master \u5f62\u5f0f\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u308b\u3068\u3001user\u3067\u6307\u5b9a\u3057\u305f\u90e8\u5206\u306e\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002\u3053\u306e\u6642\u5165\u529b\u3059\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001admin\u306e\u65b9\u306b\u306a\u308a\u307e\u3059\u3002<br>\u4e0b\u8a18\u4f8b\u3067\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>aikawa@virtual.localdomain*admin\nadminpass<\/code><\/pre>\n\n\n\n\n\u306a\u304a\u3001master\u3067\u306a\u304fuser\u3092\u5f8c\u308d\u306b\u3059\u308b\u3068\u3001master\u30e6\u30fc\u30b6\u3092aikawa@virtual.localdomain \u3068\u8a8d\u8b58\u3057\u3066\uff08master\u304c\u5c45\u306a\u3044\u306e\u3067\uff09\u3001\u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3057\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>admin*aikawa@virtual.localdomain\nadminpass<\/code><\/pre>\n\n\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">deny-users<\/h2>\n\n\n\n\nauth-deny.conf.ext\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u8a8d\u8a3c\u3092deny\u3059\u308b\u30e6\u30fc\u30b6\u4e00\u89a7\u3092\u4f5c\u6210\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002\n\n\n\n\n<ul class=\"wp-block-list\">\n<li>conf.d\/10-auth.conf<\/li>\n<\/ul>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>!include auth-deny.conf.ext<\/code><\/pre>\n\n\n\n\n\u3053\u308c\u3067auth-deny.conf.ext\u306b\u8a18\u8f09\u3055\u308c\u305f\/etc\/dovecot\/deny-users\u306b\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\n\n\n\n\n<ul class=\"wp-block-list\">\n<li>\/etc\/dovecot\/deny-users<\/li>\n<\/ul>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>aikawa@virtual.localdomain\ntest@virtual.localdomain<\/code><\/pre>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n\u4e0a\u8a18\u306e\u3088\u3046\u306b1\u884c\u3054\u3068\u306b1\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u4e0a\u8a18\u30e6\u30fc\u30b6\u3067\u76f4\u63a5\u30ed\u30b0\u30a4\u30f3\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u5931\u6557\u3057\u307e\u3059\u3002<br>\u3067\u306fadmin\u30e6\u30fc\u30b6\u306f\u3068\u3044\u3046\u3068\u3001\u3069\u3093\u306a\u98a8\u306b\u8a18\u8f09\u3057\u3066\u3082\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u3066\u3057\u307e\u3044\u307e\u3059\u3002\n<\/div>\n<\/div>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>admin\naikawa@virtual.localdomain*admin\nadmin*aikawa@virtual.localdomain<\/code><\/pre>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\nauth-deny.conf.ext\u306bmaster=yes\u3068\u66f8\u3044\u3066\u307f\u308b\u3068\u3001\u5168\u3066\u306eIMAP\u63a5\u7d9a\u306b\u5931\u6557\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u3061\u3087\u3063\u3068\u8a66\u3057\u305f\u611f\u3058\u3067\u306f\u3001master\u306fdeny\u30ea\u30b9\u30c8\u3078\u8ffd\u52a0\u51fa\u6765\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/mark>\n<\/div>\n<\/div>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n\u307e\u305fauth-deny.conf.ext\u306edriver\u306bsql\u3084ldap\u3092\u6307\u5b9a\u3059\u308b\u4e8b\u3082\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u305d\u308c\u3060\u3068\u5168\u30e6\u30fc\u30b6\u304c\u5f15\u3051\u3066\u3057\u307e\u3044\u3001\u30ed\u30b0\u30a4\u30f3\u306b\u5168\u54e1\u5931\u6557\u3057\u3066\u3057\u307e\u3046\u4f8b\u304c\u6709\u308a\u307e\u3057\u305f\u3002<br>\u3084\u308b\u306a\u3089sql\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u3048\u3066\u3001\u5225\u30ec\u30b3\u30fc\u30c9\u306b\u3059\u308b\u3068\u304b\u3067\u884c\u3051\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u304c\u3002\n<\/div>\n<\/div>\n\n\n\n\n\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%2F6767&#038;t=Dovecot%E3%81%AEmaster-users%E3%81%A8deny-users&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6767&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=Dovecot%E3%81%AEmaster-users%E3%81%A8deny-users\" 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%2F6767&#038;text=Dovecot%E3%81%AEmaster-users%E3%81%A8deny-users\" 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&#038;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6767&#038;title=Dovecot%E3%81%AEmaster-users%E3%81%A8deny-users\" 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=&#038;v=3&#038;t=Dovecot%E3%81%AEmaster-users%E3%81%A8deny-users&#038;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F6767\" 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=Dovecot%E3%81%AEmaster-users%E3%81%A8deny-users&#038;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%2F6767\" 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>Dovecot\u3067\u3001\u8a8d\u8a3c\u7cfb\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u3044\u3066\u3001\u3061\u3087\u3063\u3068\u7279\u6b8a\u306a\u3001\u30fb\u8ab0\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u3082\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308bmaster\u30e6\u30fc\u30b6\u30fb\u30ed\u30b0\u30a4\u30f3\u3092\u7981\u6b62\u3059\u308bdeny\u3068\u3044\u3046\u6a5f\u80fd\u304c\u6709\u3063\u305f\u306e\u3067\u3001\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u203bmaster\u30e6\u30fc\u30b6\u306f\u5f37\u529b\u306a\u6a5f [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6767","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/6767","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=6767"}],"version-history":[{"count":32,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/6767\/revisions"}],"predecessor-version":[{"id":6800,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/6767\/revisions\/6800"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=6767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=6767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=6767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}