OK, apparently, i have a problem, but it's more a SASL problem.<br>I set passwords with "saslpasswd2 -c logon" and then tried to check whether it worked with the command : "testsaslauthd -u logon -p password" and it doesn't work... :S
<br><br>I checked the logs, here's what i found : <br>in /var/log/secure:<br># Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_unix(imap:auth): check pass; user unknown<br># Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
<br># Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_succeed_if(imap:auth): error retrieving information about user logon<br><br>in /var/log/messages:<br># Jan 21 17:12:20 demovm33 saslauthd[3351]: server_exit : master exited: 3351
<br># Jan 21 17:12:21 demovm33 saslauthd[3376]: set_auth_mech : unknown authentication mechanism: map<br># Jan 21 17:12:27 demovm33 saslauthd[3392]: detach_tty : master pid is: 3392<br># Jan 21 17:12:27 demovm33 saslauthd[3392]: ipc_init : listening on socket: /var/run/saslauthd/mux
<br># Jan 21 17:12:31 demovm33 saslauthd[3393]: do_auth : auth failure: [user=logon] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]<br><br>OK, so that's when in /etc/sysconfig/saslauthd i have one line saying :
<br># MECH=pam<br><br>I tried with several other "MECH" but i still get errors like, for instance with MECH=shadow :<br># Jan 21 17:11:41 demovm33 saslauthd[3318]: server_exit : master exited: 3318<br># Jan 21 17:11:41 demovm33 saslauthd[3351]: detach_tty : master pid is: 3351
<br># Jan 21 17:11:41 demovm33 saslauthd[3351]: ipc_init : listening on socket: /var/run/saslauthd/mux<br># Jan 21 17:11:43 demovm33 saslauthd[3352]: do_auth : auth failure: [user=logon] [service=imap] [realm=] [mech=shadow] [reason=Unknown]
<br><br><br>I couldn't try to use the MECH=sasldb because natively the sasldb mech is disabled, so i have two options : <br>1. compile a new saslauthd from sources that supports sasldb (i tried and failed, i get error coming from the .c and .h files :-/ )
<br>2. have it working without the sasldb, which i guess is possible... i mean i only need a simple login/password thing, it's not that complex<br><br>So anyway, when _you_ use this cyrus-imapd thing, do you authenticate with the sasldb by typing login/password, or do you do it another way ?
<br><br>Hope it's clearer now to you (it isn't to me... ;) ) <br>Any idea, please ?<br><br><br>@Alain> about this RCTP TO error, i'd say it comes from the SMTP, but i don't understand what you meant by "Ave you configured your SMTP to accept
<a href="mailto:lgon@mydomai.com">lgon@mydomai.com</a> ?", do i have to configure something on the SMTP side ?<br>Thanks for paying interest in my <font size="-1">helplessness :)</font><br><br><br><br><div><span class="gmail_quote">
2008/1/21, Alain Spineux <<a href="mailto:aspineux@gmail.com">aspineux@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Jan 21, 2008 2:19 PM, badock <<a href="mailto:badock@gmail.com">badock@gmail.com</a>> wrote:<br>><br>> Hello all,<br>><br>> I recently installed cyrus-imapd, and i'm now trying to make it work.<br>
> I created a mailbox user (cm user.logon) then acl'ed it (sam user.logon<br>> logon all)<br>> Then i set a password to logon : saslpasswd2 -c logon<br><br>maybe a<br># chown cyrus.cyrus /etc/sasl2.db<br>or something like that could help
<br>Read all cyrus error messages in log files!<br><br>> So now, i expect the "user" logon to have access to his mailbox<br>> But it doesn't work, cause<br>><br>> 1. i can't telnet/login to the imap server with "logon":
<br>> shell says:<br>> LOGIN BAD Error in IMAP commabd received by server<br>><br>> 2. i can't send any mail to <a href="mailto:logon@host.domain.com">logon@host.domain.com</a><br>> mailer says :
<br>> RCPT TO < <a href="mailto:logon@mydomain.com">logon@mydomain.com</a>> failed :<br>> <<a href="mailto:logon@mydomain.com">logon@mydomain.com</a>>: Recipient address rejected: User unknown in
<br>> local recipient table<br><br>Where this message come from ? SMTP or cyrus ? Is-it lmtpd ?<br>Can you give some more line around this error ?<br>Ave you configured your SMTP to accept <a href="mailto:lgon@mydomai.com">
lgon@mydomai.com</a> ?<br><br>><br>><br>> Do you have an idea how i can check wether the imap works or not ?<br>> Actually i'd like to check if my settings are ok, is there a way to check<br>> that ?<br>
><br>><br>> Thanks in advance.<br>><br>> ----<br>> Cyrus Home Page: <a href="http://cyrusimap.web.cmu.edu/">http://cyrusimap.web.cmu.edu/</a><br>> Cyrus Wiki/FAQ: <a href="http://cyrusimap.web.cmu.edu/twiki">
http://cyrusimap.web.cmu.edu/twiki</a><br>> List Archives/Info: <a href="http://asg.web.cmu.edu/cyrus/mailing-list.html">http://asg.web.cmu.edu/cyrus/mailing-list.html</a><br>><br><br><br><br>--<br>Alain Spineux<br>
aspineux gmail com<br>May the sources be with you<br></blockquote></div><br>