365 Hosting support | Server Management Provider

365hostingsupport ultimate source of Server Security, cPanel server management and monitoring. Since 2012 we are offering top class technical support services at lowest prices. We offer 100% Satisfaction with 7 Days Money Back Guarantee.

365 Hosting support |  Server Management Provider - 365hostingsupport ultimate source of Server Security, cPanel server management and monitoring. Since 2012 we are offering top class technical support services at lowest prices. We offer 100% Satisfaction with 7 Days Money Back Guarantee.

Login not permitted to account with a uid lower than 1000

If you dealing with the disk crash and recovering the accounts from old cpanel disk to new cpanel server you might get this error “Login not permitted to account with a uid lower than xx “  So that does this case and how to solve it.

 

Remember one thing this is base on the studies we implement for our customers if this fix does not apply on your issue you can contact us to permanently solve your issue at   http://365hostingSupport.com

Error :

Login not permitted to account with a uid lower than xx “

dovecot[464249]: auth: Error:
Cpanel::MailAuth: Login not permitted to account with a uid lower than 1000
(883)

Jun 17 08:25:38 servername.com dovecot[464249]: pop3-login:
Disconnected: Inactivity (no auth attempts in 181 secs): user=<>,
rip=119.30.45.117, lip=198.50.154.36, session=<B2rCc3g1cWR3Hi11>
Jun 17 08:25:48 servername.com dovecot[464249]: auth: Debug: client
in: AUTH 1 PLAIN service=imap secured
session=+45jdHg1puUAAAAAAAAAAAAAAAAAAAAB lip=::1 rip=::1
lport=143 rport=58790 resp=<hidden>
Jun 17 08:25:48 servername.com dovecot[464249]: auth: Debug:
checkpassword(test@domainname.com,::1,<+45jdHg1puUAAAAAAAAAAAAAAAAAAAAB>):
execute: /usr/local/cpanel/bin/dovecot-wrap
/usr/libexec/dovecot/checkpassword-reply
Jun 17 08:25:48 servername.com dovecot[464249]: auth: Debug: auth
client connected (pid=490158)
Jun 17 08:25:48 servername.com dovecot[464249]: auth: Error:
Cpanel::MailAuth: Login not permitted to account with a uid lower than 1000
(883)

Reason :

1. Recently copied the Account from old server

2. /etc/passwd and /etc/shadow file touched/tampered

3. The mail server will try to authenticate against system user of the server instead of virtual domains on the server

4. /etc/dovecot/dovecot.conf touched/tampered .

 

Fix :

Check the cpanel user uid and gid by id command

[root@7578445 ]#id cpanelusername

make sure its not below the one which is mentioned in the error log

If yes you can backup and restore the same account which will asign the latest new uid and gid to cpanel user

Also make sure that there is entry of the domain in both /etc/localdomains and /etc/userdomains.

[root@7578445 /etc/dovecot] #egrep valid_uid\|valid_gid dovecot.conf
# be done even if first_valid_uid is set to 0.
first_valid_uid = 201
#last_valid_uid = 0
#first_valid_gid = 1
#last_valid_gid = 0

Change the hostname of the server to something else other than domain name.

For example if your domain is domain.com then you can set the hostname as host.domain.com