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"?
Thanks for your help
Olivier