7 messages in net.sourceforge.lists.courier-usersRe: [courier-users] EMSTP authenticat...
FromSent OnAttachments
Olivier SannierApr 15, 2007 7:46 am 
Sam VarshavchikApr 15, 2007 11:14 am 
Olivier SannierApr 15, 2007 11:57 am 
Sam VarshavchikApr 15, 2007 1:16 pm 
Olivier SannierApr 15, 2007 2:09 pm 
Olivier SannierApr 15, 2007 2:45 pm 
Sam VarshavchikApr 15, 2007 3:17 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] EMSTP authentication using userdbActions...
From:Olivier Sannier (obo@free.fr)
Date:Apr 15, 2007 11:57:40 am
List:net.sourceforge.lists.courier-users

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