[Dovecot] On IMAP vhost login, only Username being used

hobie at rumormillnews.com hobie at rumormillnews.com
Fri Aug 26 07:28:05 EEST 2011


Recapping:  I'm working to set up Dovecot 2.0.13 along with some
additional software (qmail, vpopmail, squirrelmail).  It's working fine
with squirrelmail now, but trying to connect over SSL with a Thunderbird
variant and using IMAP, authentication fails because Dovecot is trying to
match only the front part of the name (the user part), ignoring the domain
name part of what it's being sent.  So, instead of seeking to match
virtual user:

 joe_blow at some_domain.com

...it's trying to match:

 joe_blow

...and failing, since joe_blow is not a system user but is a virtual host
user.  With Squirrelmail, connecting from localhost via non-SSL IMAP, the
match is handled correctly, no problem.  I've run the runtbird.sh script
but no light was shed on this by the resulting output, all it said was
that authentication was failing.

Has anyone else encountered this problem?  Any suggestions on how to fix
it or where to look for additional info?  Thanks kindly.

--hobie

> I tried the runtbird.sh script, hoping for more info - all it did was
show that auth is failing. I don't understand why Dovecot is separating
the username from the domain name, and trying to match only on the
username.  Seems like there must be a config setting that affects this
and that I'm overlooking.  Thanks ahead for any help with this.
>
> --hobie
>
> hobie wrote earlier:
>
> =====
>
> Attempting IMAP SSL login on new installation, using Icedove (Debain
Thunderbird variant), login fails.  Logs show Dovecot attempting to
match username only, not username with domain name, on Vpopmail user, so
of course no match. Tried with '@' in full username, also with '%'.
What's missing?
>
> Log shows:
>
> Aug 24 19:30:48 debian dovecot: auth: Debug: client in: CONT<hidden> Aug
24 19:30:48 debian dovecot: auth: Debug: Loading modules from directory:
/usr/local/lib/dovecot/auth
> Aug 24 19:30:48 debian dovecot: auth: Debug: vpopmail(postmaster,[IP
redacted]): lookup user=postmaster domain=
>
> Current config:
>
> # 2.0.13: /usr/local/etc/dovecot/dovecot.conf
> # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.2 ext3
> auth_debug = yes
> auth_verbose = yes
> disable_plaintext_auth = no
> first_valid_gid = 89
> first_valid_uid = 89
> mail_debug = yes
> mail_location = maildir:/home/vpopmail/domains/%d/%n/Maildir
> maildir_very_dirty_syncs = yes
> passdb {
>   driver = vpopmail
> }
> protocols = imap pop3
> ssl_cert = </etc/ssl/certs/dovecot.pem
> ssl_key = </etc/ssl/private/dovecot.pem
> userdb {
>   args = quota_template=quota_rule=*:backend=%q
>   driver = vpopmail
> }
>
> --hobie
>
> =====
>








More information about the dovecot mailing list