Dovecot 1.07rc1 on ubuntu 6.04 I get the following problem: root 26375 0.0 0.2 5548 2240 ? Ss Sep15 1:39 /usr/sbin/dovecot root 26376 0.0 0.3 7896 3364 ? S Sep15 0:31 \_ dovecot-auth root 26378 0.0 0.3 8304 3824 ? S Sep15 0:34 \_ dovecot-auth root 26379 0.0 0.4 8668 4152 ? S Sep15 0:38 \_ dovecot-auth root 32660 0.0 0.2 7340 2856 ? S Sep15 0:00 | \_ dovecot-auth root 2968 0.0 0.2 7260 2728 ? S Sep15 0:00 | \_ dovecot-auth root 24559 0.0 0.2 7260 2768 ? S Sep16 0:00 | \_ dovecot-auth root 24771 0.0 0.2 7260 2768 ? S Sep16 0:00 | \_ dovecot-auth root 6265 0.0 0.2 7376 2788 ? S Sep18 0:00 | \_ dovecot-auth root 11988 0.0 0.2 7376 2900 ? S Sep18 0:00 | \_ dovecot-auth root 13865 0.0 0.2 7584 3044 ? S Sep18 0:00 | \_ dovecot-auth root 337 0.0 0.3 7704 3148 ? S Sep19 0:00 | \_ dovecot-auth root 407 0.0 0.3 7704 3148 ? S Sep19 0:00 | \_ dovecot-auth root 1321 0.0 0.3 7704 3160 ? S Sep19 0:00 | \_ dovecot-auth root 1361 0.0 0.3 7784 3292 ? S Sep19 0:00 | \_ dovecot-auth root 1645 0.0 0.3 7784 3312 ? S Sep19 0:00 | \_ dovecot-auth root 1673 0.0 0.3 7704 3196 ? S Sep19 0:00 | \_ dovecot-auth root 1867 0.0 0.3 7704 3204 ? S Sep19 0:00 | \_ dovecot-auth root 2033 0.0 0.3 7704 3212 ? S Sep19 0:00 | \_ dovecot-auth root 2067 0.0 0.3 7704 3224 ? S Sep19 0:00 | \_ dovecot-auth root 2148 0.0 0.3 7880 3368 ? S Sep19 0:00 | \_ dovecot-auth root 2308 0.0 0.3 7880 3376 ? S Sep19 0:00 | \_ dovecot-auth root 2420 0.0 0.3 7880 3384 ? S Sep19 0:00 | \_ dovecot-auth root 2571 0.0 0.3 7880 3396 ? S Sep19 0:00 | \_ dovecot-auth root 2779 0.0 0.3 7880 3420 ? S Sep19 0:00 | \_ dovecot-auth root 2888 0.0 0.3 7880 3432 ? S Sep19 0:00 | \_ dovecot-auth root 3049 0.0 0.3 7800 3324 ? S Sep19 0:00 | \_ dovecot-auth root 3298 0.0 0.3 7904 3332 ? S Sep19 0:00 | \_ dovecot-auth root 3514 0.0 0.3 7984 3464 ? S Sep19 0:00 | \_ dovecot-auth root 3710 0.0 0.3 7984 3468 ? S Sep19 0:00 | \_ dovecot-auth root 6463 0.0 0.3 7904 3388 ? S Sep19 0:00 | \_ dovecot-auth root 6464 0.0 0.3 7904 3456 ? S Sep19 0:00 | \_ dovecot-auth root 6465 0.0 0.3 7904 3388 ? S Sep19 0:00 | \_ dovecot-auth root 10289 0.0 0.3 7904 3420 ? S Sep19 0:00 | \_ dovecot-auth root 11144 0.0 0.3 7968 3452 ? S Sep19 0:00 | \_ dovecot-auth root 12018 0.0 0.3 8176 3636 ? S Sep19 0:00 | \_ dovecot-auth root 12561 0.0 0.3 8096 3540 ? S Sep19 0:00 | \_ dovecot-auth root 14090 0.0 0.3 8176 3724 ? S Sep19 0:00 | \_ dovecot-auth root 14728 0.0 0.3 8096 3592 ? S Sep19 0:00 | \_ dovecot-auth root 15442 0.0 0.3 8176 3736 ? S Sep19 0:00 | \_ dovecot-auth root 16329 0.0 0.3 8288 3796 ? S Sep19 0:00 | \_ dovecot-auth root 18818 0.0 0.3 8208 3684 ? S Sep19 0:00 | \_ dovecot-auth root 3228 0.0 0.3 8388 3892 ? S Sep20 0:00 | \_ dovecot-auth root 5596 0.0 0.3 8308 3764 ? S Sep20 0:00 | \_ dovecot-auth root 12477 0.0 0.3 8308 3804 ? S Sep20 0:00 | \_ dovecot-auth root 14008 0.0 0.3 8404 3848 ? S Sep20 0:00 | \_ dovecot-auth root 14742 0.0 0.3 8484 3980 ? S Sep20 0:00 | \_ dovecot-auth root 15133 0.0 0.3 8404 3860 ? S Sep20 0:00 | \_ dovecot-auth root 16170 0.0 0.3 8484 4028 ? S Sep20 0:00 | \_ dovecot-auth root 16327 0.0 0.3 8404 3908 ? S Sep20 0:00 | \_ dovecot-auth root 19848 0.0 0.3 8604 4140 ? S Sep20 0:00 | \_ dovecot-auth root 20278 0.0 0.4 8692 4188 ? S Sep20 0:00 | \_ dovecot-auth root 20746 0.0 0.4 8692 4200 ? S Sep20 0:00 | \_ dovecot-auth root 22057 0.0 0.3 8612 4072 ? S Sep20 0:00 | \_ dovecot-auth root 24303 0.0 0.3 8612 4084 ? S Sep20 0:00 | \_ dovecot-auth root 6514 0.0 0.4 8888 4356 ? S 10:32 0:00 | \_ dovecot-auth root 26380 0.0 0.3 8120 3660 ? S Sep15 0:31 \_ dovecot-auth root 32218 0.0 0.3 7952 3444 ? S Sep15 0:27 \_ dovecot-auth What means? Ciao Rick
On 25.9.2006, at 15.57, Riccardo Bini wrote:> Dovecot 1.07rc1 on ubuntu 6.04 I get the following problem: > > root 26375 0.0 0.2 5548 2240 ? Ss Sep15 1:39 / > usr/sbin/dovecot > root 26376 0.0 0.3 7896 3364 ? S Sep15 0:31 > \_ dovecot-auth > root 26378 0.0 0.3 8304 3824 ? S Sep15 0:34 > \_ dovecot-auth.. I guess you're using PAM? It means that one of your PAM modules has gotten stuck and you should look into your PAM configuration. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20060925/6d7a2f07/attachment.bin>
hello, i new to list but i need little help. I need only imap (later pop3),i have own checkpassword and own user/password database. i'm using last version v1.0.rc10 But i have problem with auth, user is authorized but cannot login, here is log: dovecot: Oct 17 15:00:36 Info: Dovecot v1.0.rc10 starting up dovecot: Oct 17 15:00:40 Info: auth(default): client in: AUTH 1 PLAIN service=IMAP lip=10.0.0.1 rip=10.0.0.13 resp=AG1kdgBza29sYTY2Ng=dovecot: Oct 17 15:00:40 Info: auth(default): checkpassword(lampa,10.0.0.13): Executed: /usr/local/checklocalpwd/checkpassword.pl /usr/local/dovecot/bin/dovecot/checkpassword-reply dovecot: Oct 17 15:00:40 Info: auth(default): checkpassword(lampa,10.0.0.13): Received input: userdb_user=lampa userdb_home=/home/_mail/lampa userdb_uid=65534 userdb_gid=65534 dovecot: Oct 17 15:00:40 Info: auth(default): checkpassword(lampa,10.0.0.13): Received no input dovecot: Oct 17 15:00:40 Info: auth(default): checkpassword(lampa,10.0.0.13): exit_status=0 dovecot: Oct 17 15:00:40 Info: auth(default): client out: OK 1 user=lampa dovecot: Oct 17 15:00:40 Info: auth(default): master in: REQUEST 1 17950 1 dovecot: Oct 17 15:00:40 Info: auth(default): master out: USER 1 lampa user=lampa home=/home/_mail/lampa uid=65534 gid=65534 dovecot: Oct 17 15:00:40 Info: imap-login: Internal login failure: user=<lampa>, method=PLAIN, rip=10.0.0.13, lip=10.0.0.1 dovecot: Oct 17 15:00:40 Error: Logins with UID 65534 (user lampa) not permitted (see first_valid_uid in config file) i think that problem is that uid and gid is set to user nobody instead 508 and 502 (user lampa , end of message is passwd file) uid 65534 is user nobody (used in auth section in conf, if i set it to root everyhting is ok) this is my config: base_dir = /var/run/dovecot/ protocols = imap listen = 10.0.0.1 disable_plaintext_auth = no log_path = /var/log/dovecot/dovecot.log info_log_path = /var/log/dovecot/dovecot.info log_timestamp = "%b %d %H:%M:%S " ssl_disable = yes login_dir = /var/run/dovecot/login login_chroot = yes login_user = dovecot mail_debug = yes mail_log_prefix = "%Us(%u): " verbose_proctitle = yes first_valid_uid = 508 last_valid_uid = 508 first_valid_gid = 502 last_valid_gid = 502 protocol imap { login_executable = /usr/local/dovecot/bin/imap-login mail_executable = /usr/local/dovecot/bin/imap } auth_executable = /usr/local/dovecot/bin/dovecot-auth auth_verbose = yes auth_debug = yes auth_debug_passwords = yes auth default { mechanisms = plain passdb checkpassword { args = /usr/local/checklocalpwd/checkpassword.pl } userdb prefetch { } user = nobody } in file i must comment out chdir $home (program was unable to chdir) i think due to chroot /usr/local/checklocalpwd/checkpassword.pl: #!/usr/bin/perl use POSIX; use strict qw(vars); my $PASSWD_FILE = "/usr/local/qmail/control/passwd2"; %ENV=(); my($len, $buf); open (USER, "<&=3") || _exit(2); $len = read(USER, $buf, 512); close USER; _exit(2) if $len < 4; my($user, $pass) = split /\x00/, $buf; $user = lc $user; $buf = "\x00" x $len; my $cwd = getcwd; my ($passwd, $uid, $gid, $gcos, $home, $shell) = ""; open F, $PASSWD_FILE || _exit(111); while (<F>) { if (/^$user:/) { ($user, $passwd, $uid, $gid, $gcos, $home, $shell) = split(/:/); } } close F; _exit(2) unless $uid; if (crypt($pass, $passwd) ne $passwd) { _exit(1); } $ENV{USER} = $user; $ENV{UID} = $uid + 0; $ENV{HOME} = $home; $ENV{SHELL} = $shell; _exit(111) unless $ENV{UID}; #chdir $home || _exit(111); $) = $gid; $( = $gid; $> = $uid; $< = $uid; exec @ARGV; _exit(0); here is passwd/user file: lampa:HSExFJNuwlKvk:508:502::/home/_mail/lampa:/bin/false -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20061017/f9ffda30/attachment-0001.html>