実現したいこと
postfix+dovecotで仮想ユーザーのみの運用
前提
host Ubuntu 22.04 LTS Server
Client Windows11 Thunderbird 102.11.2(64ビット)
postfix 3.6.4
dovecot 2.3.16 (7e2e900c1a)
上記システムでシステムユーザーのメールの配送は問題無くできていました。
user1@example.comは実際にはシステムユーザーで送受信出来ているアドレスです。
発生している問題・エラーメッセージ
https://www.server-world.info/query?os=Ubuntu_22.04&p=mail&f=9
で書かれている通り仮想ユーザーを作ろうとしているのですが指示通り作ってみると仮想ユーザーおろかシステムユーザーまで送受信ができない状態になってしまいます。
(元に戻せば通常通りシステムユーザーは送受信できました)
/etc/dovecot/usersには
user1@example.com:{CRAM-MD5}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx aaa@example.com:{CRAM-MD5}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
としか記載していません。
現状ではリストを作成したユーザーをdoveadm userコマンドで確認しようとしても
userdb lookup: user aaa@example.com doesn't exist
となってしまっている状態です。/etc/dovecot/conf.d/10-logging.confを
auth_verbose_passwords = yes auth_debug = yes mail_debug = yes
と書き換えてログを追ってみたのですがThunderbirdでユーザー作成時ユーザーが見つからないとなり、mail.logにも
Jun 1 21:52:18 prodesk dovecot: auth: Debug: passwd-file(aaa@example.com,192.168.0.2,<+lUU6BD91cbAqAAW>): Performing passdb lookup Jun 1 21:52:18 prodesk dovecot: auth: Debug: passwd-file(aaa@example.com,192.168.0.2,<+lUU6BD91cbAqAAW>): lookup: user=aaa@example.com file=/etc/dovecot/users Jun 1 21:52:18 prodesk dovecot: auth: passwd-file(aaa@example.com,192.168.0.2,<+lUU6BD91cbAqAAW>): unknown user Jun 1 21:52:18 prodesk dovecot: auth: Debug: passwd-file(aaa@example.com,192.168.0.2,<+lUU6BD91cbAqAAW>): Finished passdb lookup Jun 1 21:52:18 prodesk dovecot: auth: Debug: auth(aaa@example.com,192.168.0.2,<+lUU6BD91cbAqAAW>): Auth request finished Jun 1 21:52:20 prodesk dovecot: auth: Debug: client passdb out: FAIL#0111#011user=aaa@example.com Jun 1 21:52:20 prodesk dovecot: imap-login: Disconnected: Connection closed (auth failed, 1 attempts in 2 secs): user=<aaa@example.com>, method=CRAM-MD5, rip=192.168.0.2, lip=192.168.0.11, TLS, session=<+lUU6BD91cbAqAAW>
となっております。
ここで質問です。
仮想ユーザーというのは1ドメインだけで作れる物なのでしょうか?
またテキストファイルを作成しただけで認識するものなのでしょうか?
何かhashなど必要なのでしょうか。またもしかしてバーチャルドメインなどを作らなければならないのでしょうか?お手上げ状態です。教えて頂けませんか?

回答1件
あなたの回答
tips
プレビュー