[Dovecot] Problem with virtual mail user login users uid not permitted

Neil Muller neil at neologix.net
Mon May 12 08:19:34 EEST 2008


Hello,

I am trying to run exim 4.68 and dovecot 1.0.13 on Solaris 10 x86 5/08  
using dovecot lda and sieve with virtual users and domains, tls and  
ssl. At the moment certificates are from my internal CA Exim and  
Dovecot, dovecot lda and dovecot sieve were downloaded and installed  
from Blastwave. Mail delivery (ie from Exim to dovecot via dovecot  
lda) is working correctly but when I try to access mail using imap  
from a client (eg. Thunderbird) the login fails. My mail user for  
accessing virtual user mail is vmail (uid=954, gid=954). I have  
attached the messages from dovecot.log and the output of dovecot -n  
below as well as contents from the passdb file.

Can anyone point me to where I've gone wrong, I've had this working  
fine on Linux but Solaris just doesn't seem to want to play :-)

Thanks,

Neil

--
E neil at neologix.net


My passdb file contents:
lothar#  cat /opt/csw/etc/vmail/comms.neologix/passwd
neil:{MD5-CRYPT}$1$Lik.5MFj$PJKYoXEfADgTiK1PI6aa01:954:954::/export/ 
home/vmail/comms.neologix/users/ 
neil::userdb_quota=maildir:storage=10240  
mail_plugins=cmusieve,quota,imap_quota sieve=.dovecot.sieve


Contents of dovecot.log:
dovecot: May 12 15:13:45 Info: auth(default): passwd-file /opt/csw/etc/ 
vmail/comms.neologix/passwd: Read 2 users
dovecot: May 12 15:13:45 Info: auth(default): passwd-file(neil at comms.neologix 
,192.168.1.100): lookup: user=neil file=/opt/csw/etc/vmail/ 
comms.neologix/passwd
dovecot: May 12 15:13:45 Info: auth(default): client out: OK     
1       user=neil at comms.neologix         
mail_plugins=cmusieve,quota,imap_quota  sieve=.dovecot.sieve
dovecot: May 12 15:13:45 Error: user neil at comms.neologix: Logins with  
login_user's UID 954 not permitted (see http://wiki.dovecot.org/ 
UserIds).
dovecot: May 12 15:13:45 Info: auth(default): master in:  
REQUEST        1       16850   1
dovecot: May 12 15:13:45 Info: auth(default):  
passwd(neil at comms.neologix,192.168.1.100): lookup
dovecot: May 12 15:13:45 Info: auth(default):  
passwd(neil at comms.neologix,192.168.1.100): unknown user
dovecot: May 12 15:13:45 Info: auth(default): passwd-file(neil at comms.neologix 
,192.168.1.100): lookup: user=neil file=/opt/csw/etc/vmail/ 
comms.neologix/passwd
dovecot: May 12 15:13:45 Info: auth(default): master out: USER   
1       neil at comms.neologix     uid=954 gid=954 home=/export/home/ 
vmail/comms.neologix/users/neil       quota=maildir:storage=10240
dovecot: May 12 15:13:45 Info: imap-login: Internal login failure:  
user=<neil at comms.neologix>, method=PLAIN, rip=192.168.1.100,  
lip=192.168.1.229, TLS



The output from dovecot -n is:

lothar#  dovecot -n
# 1.0.13: /opt/csw/etc/dovecot.conf
base_dir: /opt/csw/var/run/dovecot/
log_path: /opt/csw/var/log/dovecot.log
ssl_cert_file: /opt/csw/ssl/certs/dovecot-cert.pem
ssl_key_file: /opt/csw/ssl/private/dovecot-key-np.pem
verbose_ssl: yes
login_dir: /opt/csw/var/run/dovecot//login
login_executable: /opt/csw/libexec/dovecot/imap-login
login_user: vmail
first_valid_uid: 900
last_valid_uid: 1900
first_valid_gid: 900
last_valid_gid: 1900
mail_location: maildir:%h/Maildir
mail_debug: yes
auth default:
   username_format: %Lu
   verbose: yes
   debug: yes
   debug_passwords: yes
   passdb:
     driver: passwd-file
     args: /opt/csw/etc/vmail/%d/passwd
   userdb:
     driver: passwd
   userdb:
     driver: passwd-file
     args: /opt/csw/etc/vmail/%d/passwd
   socket:
     type: listen
     client:
       path: /opt/csw/var/run/dovecot/auth-client
       mode: 432
     master:
       path: /opt/csw/var/run/dovecot/auth-master
       mode: 384
       user: vmail
       group: vmail
plugin:
   sieve: %h/.dovecot.sieve
   quota: maildir








More information about the dovecot mailing list