Hi i use Dovecot and it works ok for users except for root user. It is impossible to login as root Here is a log Sep 10 10:15:44 auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth Sep 10 10:15:44 auth: Debug: auth client connected (pid=18077) Sep 10 10:15:44 auth: Debug: client in: AUTH 1 PLAIN service=imap secured lip=212.97.133.82 rip=212.97.133.82 lport=143 rport=34645 resp=<hidden> Sep 10 10:15:44 auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth Sep 10 10:15:44 auth: Debug: pam(root,212.97.133.82): lookup service=dovecot Sep 10 10:15:44 auth: Debug: pam(root,212.97.133.82): #1/1 style=1 msg=Password: Sep 10 10:15:44 auth: Debug: client out: OK 1 user=root Sep 10 10:15:44 auth: Debug: master in: REQUEST 2889482241 18077 1 3500554cf70742dfc0515671c7671bbd Sep 10 10:15:44 auth: Debug: passwd(root,212.97.133.82): lookup Sep 10 10:15:44 auth: Debug: master out: USER 2889482241 root system_groups_user=root uid=0 gid=0 home=/root Sep 10 10:15:44 imap-login: Info: Login: user=<root>, method=PLAIN, rip=212.97.133.82, lip=212.97.133.82, mpid=18082, secured Sep 10 10:15:44 imap: Error: user root: Invalid settings in userdb: userdb returned 0 as uid Sep 10 10:15:44 imap: Error: Invalid user settings. Refer to server log for more information. Can anyone help? Thanks LL.
On 09/10/2011 10:04 AM jana1972 at centrum.cz wrote:> Hi i use Dovecot and it works ok for users except for root user. > It is impossible to login as root > Here is a log > ? > Sep 10 10:15:44 imap: Error: user root: Invalid settings in userdb: userdb > returned 0 as uid > Sep 10 10:15:44 imap: Error: Invalid user settings. Refer to server log for > more information. > > > Can anyone help?http://hg.dovecot.org/dovecot-1.2/file/02c2ac9ddf8c/dovecot-example.conf: 374 # Valid UID range for users, defaults to 500 and above. This is mostly 375 # to make sure that users can't log in as daemons or other system users. 376 # Note that denying root logins is hardcoded to dovecot binary and can't 377 # be done even if first_valid_uid is set to 0. Regards, Pascal -- The trapper recommends today: cafebabe.1125310 at localdomain.org
As far as I recall, IMAP servers generally don't allow access to root. According to the Dovecot wiki, this is hard-coded in the binary: http://wiki.dovecot.org/MainConfig see under "first_valid_uid" If the root user is receiving emails, these need to be redirected to another user so they can be read via IMAP. John On 10/09/2011 10:04, jana1972 at centrum.cz wrote:> Hi i use Dovecot and it works ok for users except for root user. > It is impossible to login as root > Here is a log > > > Sep 10 10:15:44 auth: Debug: Loading modules from directory: > /usr/local/lib/dovecot/auth > Sep 10 10:15:44 auth: Debug: auth client connected (pid=18077) > Sep 10 10:15:44 auth: Debug: client in: AUTH 1 PLAIN service=imap > secured lip=212.97.133.82 rip=212.97.133.82 lport=143 > rport=34645 resp=<hidden> > Sep 10 10:15:44 auth: Debug: Loading modules from directory: > /usr/local/lib/dovecot/auth > Sep 10 10:15:44 auth: Debug: pam(root,212.97.133.82): lookup service=dovecot > Sep 10 10:15:44 auth: Debug: pam(root,212.97.133.82): #1/1 style=1 > msg=Password: > Sep 10 10:15:44 auth: Debug: client out: OK 1 user=root > Sep 10 10:15:44 auth: Debug: master in: REQUEST 2889482241 18077 1 > 3500554cf70742dfc0515671c7671bbd > Sep 10 10:15:44 auth: Debug: passwd(root,212.97.133.82): lookup > Sep 10 10:15:44 auth: Debug: master out: USER 2889482241 root > system_groups_user=root uid=0 gid=0 home=/root > Sep 10 10:15:44 imap-login: Info: Login: user=<root>, method=PLAIN, > rip=212.97.133.82, lip=212.97.133.82, mpid=18082, secured > Sep 10 10:15:44 imap: Error: user root: Invalid settings in userdb: userdb > returned 0 as uid > Sep 10 10:15:44 imap: Error: Invalid user settings. Refer to server log for > more information. > > > Can anyone help? > Thanks > LL.