On 4/23/06, <b class="gmail_sendername">Angel Pavlov</b> <<a href="mailto:angel@coffeejob.com">angel@coffeejob.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;"><span class="e" id="q_10ac917ef5116252_0">
Tom Ray wrote:
<blockquote cite="http://mid90cdc53f0604231612s3ed5f046m9cf5924b8fb5e727@mail.gmail.com" type="cite">I've just installed Dovecot and am running into a bit of a
problem with
it. I'm using virtual email accounts and everything seems to be working
up to a certain point. Let me break down how the server is setup.<br>
<br>
Each domain belongs under the directory /mail so it's path is
basically: /mail/domain.tld. Within each domain directory there are two
sub-directories etc and mail. Under /mail/domain.tld/etc I have two
files setup aliases and passwd, the aliases file handles all mail
aliasing for that domain and the passwd file holds the users account
name and password. The password file has the accounts stored in the
following format:<br>
<br>
<a href="mailto:user@domain.tld:%28encrypted" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain.tld:(encrypted</a> password):500:500:Virtual
User:/mail/domain.tld/mail/user:/dev/null<br>
<br>
The password enctryption is basically htpasswd() style encryption. Now
the problem I'm having is I keep getting authentication errors when I
try to login via POP3 (I'm testing via command line so I do `telnet
localhost 110`). At first I had only auth_debug_passwords=yes set and I
was seeing this in the log file:<br>
<br>
Apr 23 18:54:19 www dovecot: auth(default): client in:
AUTH^I1^IPLAIN^Iservice=POP3^Isecured^Ilip=127.0.0.1^Irip=127.0.0.1^Iresp=AHRvbUBkZXRyb2l0b25saW5lLmNvbQBuZXdiZXJn<br>
Apr 23 18:54:19 www dovecot: auth(default): pam(<a href="mailto:user@domain.tld" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain.tld</a>,<a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
127.0.0.1</a>): pam_authenticate() failed:
Authentication failure<br>
Apr 23 18:54:19 www dovecot: auth(default): passwd-file
/mail/domain.tld/etc/passwd: Read 1 users<br>
Apr 23 18:54:19 www dovecot: auth(default): passwd-file(<a href="mailto:user@domain.tld" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain.tld</a>,<a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
127.0.0.1</a>): unknown user<br>
Apr 23 18:54:20 www dovecot: auth(default): client out: FAIL^I1^Iuser=<a href="mailto:user@domain.tld" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain.tld</a><br>
<br>
So I can see it's reading the proper password file but it claims that
user doesn't exist, however, that user does exist. When I turn on
auth_verbose=yes and I'm still seeing the same errors in the log file.<br>
<br>
Can someone tell me what I'm missing here? I'm really on a time crunch
with this, our mail server died friday morning and it's been put on me
to fix it. They insist I use UW IMAP but I can't get it to work with
the vitrtual users like the previous guy did. I've used Dovecot before
but it's been two years and I can't remember how I got everything
working before. They want things back to normal by Monday morning
(tomorrow) so now I'm a bit stressed since I've lost most my weekend
rebuilding the server and users.<br>
<br>
Any help would be appreciated. I thought I had this setup just right
but I just can't get passed it telling me the user doesn't exsist.<br>
<br>
<br>
</blockquote></span></div><div style="direction: ltr;">
try :<br>
<br>
1. htpasswd file formated : <a href="mailto:user@domain.tld:%28encrypted" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">user@domain.tld:(encrypted</a> password)<br>
2. Without PAM<br>
<br>
good luck !<br></div><div style="direction: ltr;"><span class="sg">
<br>
Angel</span></div></blockquote><div><br>
<br>
I'm still getting told that the user doesn't exist. It's loading the
proper password file, but it just doesn't see the user...it should be
parsing it right correct?<br>
</div><br></div><br>