[Dovecot] vpopmail auth always return "unknown user"
Hi,
I'm working on a setup of dovecot 2 + netqmail + vpopmail 5.5 but auth doesn't works :(
dovecot -n # 2.0.1: /etc/dovecot/dovecot/dovecot.conf # OS: Linux 2.6.35.1-rscloud x86_64 Ubuntu 10.04.1 LTS auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login cram-md5 auth_verbose = yes auth_verbose_passwords = plain disable_plaintext_auth = no log_path = /var/log/dovecot/dovecot.log login_greeting = Dovecot ready. mail_debug = yes passdb { driver = vpopmail } ssl_cert =
LOG:
Aug 27 14:11:55 auth: Debug: client in: AUTH 1 PLAIN service=imap secured lip=184.106.217.69 rip=178.32.33.247 lport=143 rport=33875 Aug 27 14:11:55 auth: Debug: client out: CONT 1 Aug 27 14:11:56 auth: Debug: client in: CONT 1 AHRvb3JvcEByZXNwdWJsaWNhLmZyAG11cnBoeTI1 Aug 27 14:11:56 auth: Debug: vpopmail(toorop@respublica.fr,178.32.33.247): lookup user=toorop domain=respublica.fr Aug 27 14:11:56 auth: Info: vpopmail(toorop@respublica.fr,178.32.33.247): unknown user Aug 27 14:11:58 auth: Debug: client out: FAIL 1 user=toorop@respublica.fr Aug 27 14:11:58 auth: Debug: client in: AUTH 2 PLAIN service=imap secured lip=184.106.217.69 rip=178.32.33.247 lport=143 rport=33875 resp=AHRvb3JvcEByZXNwdWJsaWNhLmZyAG11cnBoeTI1 Aug 27 14:12:02 auth: Debug: vpopmail(toorop@respublica.fr,178.32.33.247): lookup user=toorop domain=respublica.fr Aug 27 14:12:02 auth: Info: vpopmail(toorop@respublica.fr,178.32.33.247): unknown user Aug 27 14:12:04 auth: Debug: client out: FAIL 2 user=toorop@respublica.fr
./vuserinfo toorop@respublica.fr name: toorop passwd: $1$sOC22F4C$8.ciZmdTZkNnFLFB8EsZm0 clear passwd: clearpass comment/gecos: toorop uid: 1 gid: 0 flags: 0 gecos: toorop limits: No user limits set. dir: /home/vpopmail/domains/respublica.fr/toorop quota: NOQUOTA usage: 0% (8487 byte(s) in 3 file(s))
Any idea ?
Thanks.
-- Toorop
«Ils ne savaient pas que c'était impossible, alors ils l'ont fait.» Mark Twain
On Fri, 27 Aug 2010 16:15:42 +0200, Toorop toorop@toorop.fr wrote:
Hi,
I'm working on a setup of dovecot 2 + netqmail + vpopmail 5.5 but auth doesn't works :(
dovecot -n # 2.0.1: /etc/dovecot/dovecot/dovecot.conf # OS: Linux 2.6.35.1-rscloud x86_64 Ubuntu 10.04.1 LTS auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login cram-md5 auth_verbose = yes auth_verbose_passwords = plain disable_plaintext_auth = no log_path = /var/log/dovecot/dovecot.log login_greeting = Dovecot ready. mail_debug = yes passdb { driver = vpopmail } ssl_cert =
dovecot -n is very very simplistic thanks more work itself
On Fri, 27 Aug 2010 16:15:42 +0200, Toorop toorop@toorop.fr wrote:
Hi,
I'm working on a setup of dovecot 2 + netqmail + vpopmail 5.5 but auth doesn't works :(
dovecot -n # 2.0.1: /etc/dovecot/dovecot/dovecot.conf # OS: Linux 2.6.35.1-rscloud x86_64 Ubuntu 10.04.1 LTS auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login cram-md5 auth_verbose = yes auth_verbose_passwords = plain disable_plaintext_auth = no log_path = /var/log/dovecot/dovecot.log login_greeting = Dovecot ready. mail_debug = yes passdb { driver = vpopmail } ssl_cert =
you send my dovecot -n for inspiration consult the archive of the ml it's full documented
[root@r13151 ~]# /usr/sbin/dovecot -n # 2.0.0: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32.2-xxxx-grs-ipv4-32 i686 CentOS release 5.5 (Final) auth_mechanisms = plain login base_dir = /var/run/dovecot/ listen = [::] log_path = /var/log/maillog log_timestamp = %Y-%m-%d %H:%M:%S login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c mail_location = maildir:~/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date spamtest spamtestplus virustest passdb { driver = pam } plugin { plugin = autocreate managesieve sieve sieve = ~/.dovecot.sieve sieve_before = /var/sieve-scripts/roundcube.sieve sieve_dir = ~/sieve sieve_global_path = whatever } protocols = sieve imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-master { mode = 0666 } vsz_limit = 256 } service imap-login { inet_listener imap { port = 0 } inet_listener imaps { address = * port = 993 } process_limit = 128 vsz_limit = 64 } service managesieve-login { inet_listener managesieve-login { address = * port = 2000 } process_limit = 128 vsz_limit = 64 } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { address = * port = 995 } process_limit = 128 vsz_limit = 64 } ssl_ca =
Le 28/08/2010 03:20, fakessh a écrit :
you send my dovecot -n for inspiration
You don't use vpopmail backend.
consult the archive of the ml it's full documented
Thanks but as you can imagine it's the firts thing i have done.
-- Toorop - Filtrage antivirus et antispam : http://www.protecmail.com
«Ils ne savaient pas que c'était impossible, alors ils l'ont fait.» Mark Twain
On Fri, 2010-08-27 at 16:15 +0200, Toorop wrote:
I'm working on a setup of dovecot 2 + netqmail + vpopmail 5.5 but auth doesn't works :( .. #1 0x000000000041f735 in vpopmail_lookup (auth_request=0x23c4358, callback=0x410770
) at userdb-vpopmail.c:99 _module = 0x23b13f0
Yeah, vpopmail keeps changing their APIs in ways I have no idea what to do to fix it. So here's my solution for now:
http://hg.dovecot.org/dovecot-2.0/rev/f90590836165
You can always use vpopmail's checkpassword binary or access its database some other way (passdb/userdb sql?)
Le 31/08/2010 20:35, Timo Sirainen a écrit :
..
#1 0x000000000041f735 in vpopmail_lookup (auth_request=0x23c4358, callback=0x410770
) at userdb-vpopmail.c:99 _module = 0x23b13f0 Yeah, vpopmail keeps changing their APIs in ways I have no idea what to do to fix it. So here's my solution for now:
Ok
You can always use vpopmail's checkpassword binary or access its database some other way (passdb/userdb sql?)
I've switched to vpopmail 5.4.30 (last *stable* release) and all works as expected.
Thank you Timo.
-- Toorop
«Ils ne savaient pas que c'était impossible, alors ils l'ont fait.» Mark Twain
participants (3)
-
fakessh
-
Timo Sirainen
-
Toorop