IMAPが無効になっている場合にdovecotが.imapディレクトリを作成しないようにするにはどうすればよいですか?

IMAPが無効になっている場合にdovecotが.imapディレクトリを作成しないようにするにはどうすればよいですか?

私は過去数年間、過去3つのDebianディストリビューションでdovecotをPOP3サーバーとして実行してきました。全体的に期待通りに動作し、満足しています。

しかし、過去には見過ごされていましたが、今は知りたい小さな問題が1つあります。上記のように、私はdovecotのPOP3部分のみを使用し、IMAP部分は使用しません。それにもかかわらず、dovecotは各ユーザーのホームディレクトリに.imapディレクトリを作成します。

これが邪魔になるわけではありませんが、なぜこのようなことが発生するのか、どのように予防できるのか知りたいです。

私の設定は次のとおりです。

root@odysseus /home/usr # dovecot -n
# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 ()
# OS: Linux 4.19.0-9-amd64 x86_64 Debian 10.4
# Hostname: odysseus.example.com
listen = xxx.xxx.xxx.xxx
mail_location = mbox:~
mail_privileged_group = mail
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
pop3_lock_session = yes
protocols = " pop3"
service pop3-login {
  inet_listener pop3 {
    port = 0
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
ssl = required
ssl_cert = </etc/dovecot/tls/pop-ssl.omeganet.de.crt
ssl_cipher_list = DHE-RSA-AES256-GCM-SHA384
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_min_protocol = TLSv1.2
ssl_prefer_server_ciphers = yes
userdb {
  driver = passwd
}
root@odysseus /home/usr #

もちろん、namespace inbox { ... }ブロックがあることがわかりましたが、構成のこの部分はIMAPにのみ関連し、私の場合には関係がないと常に考えました。また、設定のため、各ユーザーの「受信トレイ」はホームディレクトリに直接配置された単一のファイルであるため、.imapサブディレクトリがどの目的にも使用されることを想像することはできません。一般的なユーザーホームディレクトリは次のとおりです。

root@odysseus /home/usr/user11 # dir
total 193K
drwxr-xr-x  6 user11 mailusrs   10 2020-05-31 00:04 .
drwx--x--x 13 root   root       13 2020-03-24 21:22 ..
-rw-r--r--  1 user11 mailusrs  220 2019-04-18 06:12 .bash_logout
-rw-r--r--  1 user11 mailusrs 3.5K 2019-04-18 06:12 .bashrc
drwx------  3 user11 mailusrs    5 2020-05-30 23:08 compile
drwxr-xr-x  6 user11 mailusrs    7 2020-05-31 00:04 .imap
-rw-------  1 user11 mailusrs  536 2020-05-30 23:57 inbox  <<<<<<------ This is the actual inbox file
drwx------  4 user11 mailusrs   33 2020-05-30 23:08 tests
-rw-r--r--  1 user11 mailusrs  807 2019-04-18 06:12 .profile
drwx------  3 user11 mailusrs   55 2020-05-30 23:08 www-data
root@odysseus /home/usr/user11 #

それでは、dovecotがこれらの.imapサブディレクトリを作成するのはなぜですか?

ベストアンサー1

おすすめ記事