Sam Varshavchik wrote:
> Olivier Sannier writes:
>
>> Sam Varshavchik wrote:
>>> Olivier Sannier writes:
>>>
>>>> Hi,
>>>>
>>>> I'm trying to configure courier so that the only way to login in 
>>>> SMTP is via the users I defined in the userdb system, but I cannot 
>>>> figure out how to make this work, my smtp clients just get "535 
>>>> Authentication failed" replies.
>>>> Here is what I did:
>>>>
>>>> - Edited /usr/lib/courier/etc/esmptd and set the ESMTPAUTH value to 
>>>> "LOGIN CRAM-MD5"
>>>> - Ran the following commands :
>>>> userdb smtp/userA set systempw=userApassword 
>>>> home=/home/mail/smtp/userA
>>>> makeuserdb
>>>
>>> The systempw setting holds an encrypted password, so "userApassword" 
>>> better be an encrypted string.
>>>
>>> Use "userdbpw -md5 | userdbpw smtp/userA set systempw" to securely 
>>> set encrypted passwords.
>>>
>>> Furthermore, CRAM-MD5 cannot use encrypted passwords, you'll need to 
>>> disable CRAM-MD5 or, in addition to setting systempw, set 
>>> "hmac-md5pw" in a similar way, but with the -hmac-md5 instead of -md5. 
>> Thanks, I did not know that.
>> I used the above commands, reran makeuserdb, restarted authdaemond, 
>> and courierd and esmtpd but to no avail.
>> I also edited authdaemondrc to only allow authuserdb, which indeed 
>> got me rid of the mysql erros, but still, my email client keeps 
>> getting authentication errors.
>> What is the login I should indicate to the email client? "userA" or 
>> "smtp/userA"?
>
> userA.
>
> Additionally, you should not be wasting your time on esmtpd, until you 
> verify the correct configuration of courier-authlib.  Before you even 
> install Courier, you should verify that courier-authlib authentication 
> is working, using its tools.  See courier-authlib's INSTALL and READMEs.
>
> Only when, using courier-authlib's tools, you have password 
> authentication working, only then you can proceed and install 
> everything else, knowing already that authentication is working. 
Good tip indeed, as using authtest fails. However, I can't figure out 
the message, it just says "Operation not permitted".
I've looked around for this very message, but I can't connect to the 
answers I've seen as it talks about radius where I'm only using authuserdb.
Do you have a suggestion? I've already tried changing the DEBUG_LOGIN 
value, and my syslog.conf file contains an entry for mail.debug, but I 
still don't have anything in the file.

Thanks in advance
Olivier


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to