現在、dovecotを使って、imapの挙動を確認しようとしている者です。MTAは、postfixを使用してメールの送信(telnetを使用)、受信ができている事は確認済みです。その後、dovecotをインストールし、plain textで認証ができるように以下のように設定をしました。しかし、いざ、telnetで143ポートにアクセスして、"login"しようとすると、以下のような結果になり、loginできません。原因が分からず、困っているのですが、どなたか詳しい方、ヒントを頂けませんでしょうか。
▪️telnet結果
XXX:~ user$ telnet 192.168.99.101 143
Trying 192.168.99.101...
Connected to 192.168.99.101.
Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
1 login user1 パスワード
- BYE Internal error occurred. Refer to server log for more information.
Connection closed by foreign host.
▪️dovecot設定ファイル変更内容
・dovecot.conf
protocols = imap pop3 lmtp
listen = *
・10-mail.comf
mail_location = maildir:~/Maildir
・10-auth.conf
disable_plaintext_auth = no
auth_mechanisms = plain log
・10-ssl.conf
ssl = no
▪️systemctl status内容
[root@rhel7 ~]# systemctl status dovecot
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2017-05-21 19:59:57 JST; 23min ago
Process: 1016 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
Main PID: 1061 (dovecot)
CGroup: /system.slice/dovecot.service
├─1061 /usr/sbin/dovecot -F
├─1106 dovecot/anvil
└─1107 dovecot/log
May 21 20:02:23 rhel7.3.mydomain dovecot[1107]: imap: Error: user user1: Mail access for users with UID 501 not permitted (see first_valid_uid in config file, uid from userdb lookup).
May 21 20:02:23 rhel7.3.mydomain dovecot[1107]: imap: Error: Invalid user settings. Refer to server log for more information.
May 21 20:04:53 rhel7.3.mydomain auth[3713]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=user2 rhost=192.168.99.1 user=user2
May 21 20:04:53 rhel7.3.mydomain auth[3713]: pam_succeed_if(dovecot:auth): requirement "uid >= 1000" not met by user "user2"
May 21 20:05:26 rhel7.3.mydomain dovecot[1107]: imap-login: Login: user=<user2>, method=PLAIN, rip=192.168.99.1, lip=192.168.99.101, mpid=3723, session=<SARiuQZQbwDAqGMB>
May 21 20:05:26 rhel7.3.mydomain dovecot[1107]: imap: Error: user user2: Mail access for users with UID 502 not permitted (see first_valid_uid in config file, uid from userdb lookup).
May 21 20:05:26 rhel7.3.mydomain dovecot[1107]: imap: Error: Invalid user settings. Refer to server log for more information.
May 21 20:20:35 rhel7.3.mydomain dovecot[1107]: imap-login: Login: user=<user1>, method=PLAIN, rip=192.168.99.1, lip=192.168.99.101, mpid=3981, session=<FVR/8QZQJwDAqGMB>
May 21 20:20:35 rhel7.3.mydomain dovecot[1107]: imap: Error: user user1: Mail access for users with UID 501 not permitted (see first_valid_uid in config file, uid from userdb lookup).
May 21 20:20:35 rhel7.3.mydomain dovecot[1107]: imap: Error: Invalid user settings. Refer to server log for more information.
Hint: Some lines were ellipsized, use -l to show in full.
[root@rhel7 ~]#
▪️/var/log/audit/audit.log内容
type=USER_ACCT msg=audit(1495365635.286:213): pid=3977 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:dovecot_auth_t:s0 msg='op=PAM:accounting grantors=pam_unix,pam_localuser acct="user1" exe="/usr/libexec/dovecot/auth" hostname=192.168.99.1 addr=192.168.99.1 terminal=dovecot res=success'
▪️OS
サーバ側:Red Hat Enterprise Linux Server release 7.3 (Maipo)
クライアント側:macOS
