OK, apparently, i have a problem, but it&#39;s more a SASL problem.<br>I set passwords with &quot;saslpasswd2 -c logon&quot; and then tried to check whether it worked with the command : &quot;testsaslauthd -u logon -p password&quot; and it doesn&#39;t work... :S
<br><br>I checked the logs, here&#39;s what i found : <br>in /var/log/secure:<br>#&nbsp; Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_unix(imap:auth): check pass; user unknown<br>#&nbsp; Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= 
<br>#&nbsp; 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>#&nbsp; Jan 21 17:12:20 demovm33 saslauthd[3351]: server_exit&nbsp;&nbsp;&nbsp;&nbsp; : master exited: 3351
<br>#&nbsp; Jan 21 17:12:21 demovm33 saslauthd[3376]: set_auth_mech&nbsp;&nbsp; : unknown authentication mechanism: map<br>#&nbsp; Jan 21 17:12:27 demovm33 saslauthd[3392]: detach_tty&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : master pid is: 3392<br>#&nbsp; Jan 21 17:12:27 demovm33 saslauthd[3392]: ipc_init&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : listening on socket: /var/run/saslauthd/mux
<br>#&nbsp; Jan 21 17:12:31 demovm33 saslauthd[3393]: do_auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : auth failure: [user=logon] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]<br><br>OK, so that&#39;s when in /etc/sysconfig/saslauthd i have one line saying :&nbsp; 
<br>#&nbsp; MECH=pam<br><br>I tried with several other &quot;MECH&quot; but i still get errors like, for instance with MECH=shadow :<br>#&nbsp; Jan 21 17:11:41 demovm33 saslauthd[3318]: server_exit&nbsp;&nbsp;&nbsp;&nbsp; : master exited: 3318<br>#&nbsp; Jan 21 17:11:41 demovm33 saslauthd[3351]: detach_tty&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : master pid is: 3351
<br>#&nbsp; Jan 21 17:11:41 demovm33 saslauthd[3351]: ipc_init&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : listening on socket: /var/run/saslauthd/mux<br>#&nbsp; Jan 21 17:11:43 demovm33 saslauthd[3352]: do_auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : auth failure: [user=logon] [service=imap] [realm=] [mech=shadow] [reason=Unknown]
<br><br><br>I couldn&#39;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&#39;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&#39;s clearer now to you (it isn&#39;t to me... ;) ) <br>Any idea, please ?<br><br><br>@Alain&gt; about this RCTP TO error, i&#39;d say it comes from the SMTP, but i don&#39;t understand what you meant by &quot;Ave you configured your SMTP to accept 
<a href="mailto:lgon@mydomai.com">lgon@mydomai.com</a> ?&quot;, 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 &lt;<a href="mailto:aspineux@gmail.com">aspineux@gmail.com</a>&gt;:</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 &lt;<a href="mailto:badock@gmail.com">badock@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hello all,<br>&gt;<br>&gt; I recently installed cyrus-imapd, and i&#39;m now trying to make it work.<br>
&gt; I created a mailbox user (cm user.logon) then acl&#39;ed it (sam user.logon<br>&gt; logon all)<br>&gt;&nbsp;&nbsp;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>&gt; So now, i expect the &quot;user&quot; logon to have access to his mailbox<br>&gt; But it doesn&#39;t work, cause<br>&gt;<br>&gt; 1. i can&#39;t telnet/login to the imap server with &quot;logon&quot;:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; shell says:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; LOGIN BAD Error in IMAP commabd received by server<br>&gt;<br>&gt; 2. i can&#39;t send any mail to <a href="mailto:logon@host.domain.com">logon@host.domain.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mailer says :
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RCPT TO &lt; <a href="mailto:logon@mydomain.com">logon@mydomain.com</a>&gt; failed :<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:logon@mydomain.com">logon@mydomain.com</a>&gt;: Recipient address rejected: User unknown in
<br>&gt; 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>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;Do you have an idea how i can check wether the imap works or not ?<br>&gt; Actually i&#39;d like to check if my settings are ok, is there a way to check<br>&gt; that ?<br>
&gt;<br>&gt;<br>&gt; Thanks in advance.<br>&gt;<br>&gt; ----<br>&gt; Cyrus Home Page: <a href="http://cyrusimap.web.cmu.edu/">http://cyrusimap.web.cmu.edu/</a><br>&gt; Cyrus Wiki/FAQ: <a href="http://cyrusimap.web.cmu.edu/twiki">
http://cyrusimap.web.cmu.edu/twiki</a><br>&gt; 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>&gt;<br><br><br><br>--<br>Alain Spineux<br>
aspineux gmail com<br>May the sources be with you<br></blockquote></div><br>