Thanks for the information about the salt with encrypt.
I actually figured that out at some point.
I sent the messages below yesterday, but for some reason they were not posted to
the list.
Thanks
Ted



>
>> Hello
>> I just updated the 2/18 snapshot for amd64 (6.0 GENERIC.MP#178 amd64).
>>
>> After updating, I updated all the packages.
>>
>> Now, I cannot login to imap.
>>
>> I am using postfix, courier-imap, with mysql (mariadb).
>>
>> I recall that when I set this up 2 years ago, I used the command line
>> "encrypt" function to create the password hashes that were inserted in
>> the mysql user table for authentication.
>>
>> Since all my user accounts cannot access imap, I wondered if something
>> had changed in the hashing.  So, I used "encrypt" on the password, and
>> got a different hash than I did originally.
>>
>> for example, last year the hash (of one password) started with
>> "$2b$08$GbrcrMOiXb..." and now it starts with "$2b$10$9xJ8rv1D..."
>>
>> I tried changing the hash in the database, restarting mysql, courier
>> (imap, authd), postfix; but am unable to login to imap.
>>
>> I keep getting login failures.
>>
>> Any help would be really appreciated.
>>
>> Thanks
>> Ted
>
> I am responding to my own message.
>
> I still cannot authenticate to courier-imap.
>
> I have found this in /var/log/maillog:
>
> authdaemond: marker line not found in /etc/courier/authmysqlrc
> (probably forgot to run sysconftool after an upgrade)
>
> This occurs with each login attempt, and preceeds each "LOGIN FAILED"
> line, such as:
>
> imapd-ssl: LOGIN FAILED, user=u...@example.com, ip=[::ffff:172.xx.x.xx]
>
> I found that something called sysconftool exists at:
> /usr/local/libexec/courier-authlib/sysconftool
>
> But running it as root (#
> /usr/local/libexec/courier-authlib/sysconftool), and then restarting
> courier_authdaemond, courier_imap, and courier_imap_ssl (in that
> order), does not resolve the login failures or the message in maillog.
>
> As I said, any pointers on how I can fix this would be welcome.
> At this point, I don't think the login failure has anything to do with
> encrypt (as I implied in my original message).
>
> Thanks again
> Ted

Ok, sorry for bothering the list, but the loss of email access bugged  
me, and I did not know what to do.

But now, 3 hours later, I have gotten imap working again.  Whether or  
not I "fixed" the problem, I don' know.

But, it seems, in the most recent package update of courier-imap,  
something is missing.

I basically added:
---
##NAME: MARKER:0
#
# Do not remove this section from this configuration file. This section
# must be present at the end of this file.
---
to the end of /etc/courier/authmysqlrc and restarted courier, and I  
can now login again.

I mention this in case it may be of help to another.

Thanks
Ted

Reply via email to