星期三, 3月 07, 2007

Dovecot 設定成功

今天忽然想到,Dovecot不應該出問題,(請看遜掉了)於是就檢查設定檔,將log打開。
Error: Logins with UID 100 (user 鳥毅 ) not permitted (see first_valid_uid in config file)
原來Dovecot將為了增加安全性,只允許user從500開始。因為自己手賤,在adduser時將uid設成100,因此在 /usr/local/etc/dovecot.conf 加上 first_valid_uid = 100 就搞定。當然把uid改成預設的1000之後也行,但還要改我自己的檔案權限...還是改first_valid_uid比較快。

仔細看看,Dovecot真是非常注重安全的程式呀!還絕對禁止root登入。
# Valid UID range for users, defaults to 500 and above. This is mostly
# to make sure that users can't log in as daemons or other system users.
# Note that denying root logins is hardcoded to dovecot binary and can't
# be done even if first_valid_uid is set to 0.

沒有留言: