OK, so with PAM, how do you set passwords to your virtual users ?<br>sorry, i&#39;m like _really_ lost, and running out of time :-/<br><br>thanks.<br><br><div><span class="gmail_quote">2008/1/22, 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 22, 2008 2:33 PM, badock &lt;<a href="mailto:badock@gmail.com">
badock@gmail.com</a>&gt; wrote:<br>&gt; mmmmh i still don&#39;t manage to have the &#39;testsaslauthd -u logon -p password&#39;<br>&gt; work...<br>&gt; does yours work allright ?<br>&gt; can you paste your /etc/sysconfig/saslauthd file please ?
<br><br>I don&#39;t use saslauthd !<br><br>&gt; in mine :<br>&gt; SOCKETDIR=/var/run/saslauthd<br>&gt; MECH=pam<br>&gt; FLAGS=<br><br>If you use saslauthd with PAM, like you are trying, you dont need to<br>work with a sasldb nor saslpasswd ....
<br><br><br>&gt;<br>&gt;<br>&gt;<br>&gt; 2008/1/21, Alain Spineux &lt;<a href="mailto:aspineux@gmail.com">aspineux@gmail.com</a>&gt;:<br>&gt; &gt; On Jan 21, 2008 5:31 PM, badock &lt;<a href="mailto:badock@gmail.com">badock@gmail.com
</a>&gt; wrote:<br>&gt; &gt; &gt; OK, apparently, i have a problem, but it&#39;s more a SASL problem.<br>&gt; &gt; &gt; I set passwords with &quot;saslpasswd2 -c logon&quot; and then tried to check<br>&gt; whether<br>&gt; &gt; &gt; it worked with the command : &quot;testsaslauthd -u logon -p password&quot; and it
<br>&gt; &gt; &gt; doesn&#39;t work... :S<br>&gt; &gt;<br>&gt; &gt; Do you want to use saslauth or just don&#39;t realy know what you are doing?<br>&gt; &gt;<br>&gt; &gt; I have just migrated my server yesterday using just here are some of my
<br>&gt; config :<br>&gt; &gt;<br>&gt; &gt; # cat&nbsp;&nbsp;/etc/imapd.conf<br>&gt; &gt; configdirectory: /var/lib/imap<br>&gt; &gt; partition-default: /var/spool/imap<br>&gt; &gt; admins: cyrus<br>&gt; &gt; sievedir: /var/lib/imap/sieve
<br>&gt; &gt; sendmail: /usr/sbin/sendmail<br>&gt; &gt; #sasl_pwcheck_method: saslauthd<br>&gt; &gt; sasl_pwcheck_method: auxprop<br>&gt; &gt; sasl_auxprop_plugin: sasldb<br>&gt; &gt; sasl_mech_list: PLAIN<br>&gt; &gt;<br>
&gt; &gt; tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem<br>&gt; &gt; tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem<br>&gt; &gt; tls_ca_file: /etc/pki/tls/certs/ca- bundle.crt<br>&gt; &gt;<br>&gt; &gt; virtdomains: userid
<br>&gt; &gt; defaultdomain: max.asxnet.loc<br>&gt; &gt; loginrealms: max.asxnet.loc<br>&gt; &gt;<br>&gt; &gt; hashimapspool: yes<br>&gt; &gt;<br>&gt; &gt; altnamespace:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>&gt; &gt; unixhierarchysep:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes
<br>&gt; &gt; lmtp_downcase_rcpt:&nbsp;&nbsp;&nbsp;&nbsp; yes<br>&gt; &gt; username_tolower:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; THE relevant thing for you are :<br>&gt; &gt;<br>&gt; &gt; sasl_pwcheck_method: auxprop<br>&gt; &gt; sasl_auxprop_plugin: sasldb
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # history | grep sasl<br>&gt; &gt;&nbsp;&nbsp; 705&nbsp;&nbsp;sasldblistusers2<br>&gt; &gt;&nbsp;&nbsp; 706&nbsp;&nbsp;saslpasswd2 <a href="mailto:cyrus@max.asxnet.loc">cyrus@max.asxnet.loc</a><br>&gt; &gt;&nbsp;&nbsp; 707&nbsp;&nbsp;sasldblistusers2
<br>&gt; &gt;&nbsp;&nbsp; 709&nbsp;&nbsp;saslpasswd2 -u max.asxnet.loc root<br>&gt; &gt;&nbsp;&nbsp; 710&nbsp;&nbsp;sasldblistusers2<br>&gt; &gt;&nbsp;&nbsp; 728&nbsp;&nbsp;chown cyrus.mail&nbsp;&nbsp;/etc/sasldb2<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I checked the logs, here&#39;s what i found :
<br>&gt; &gt; &gt; in /var/log/secure:<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_unix(imap:auth): check<br>&gt; &gt; &gt; pass; user unknown<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_unix(imap:auth):
<br>&gt; &gt; &gt; authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:28 demovm33 saslauthd[3393]: pam_succeed_if(imap:auth):<br>&gt; &gt; &gt; error retrieving information about user logon
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; in /var/log/messages:<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:20 demovm33 saslauthd[3351]: server_exit&nbsp;&nbsp;&nbsp;&nbsp; : master<br>&gt; &gt; &gt; exited: 3351<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:21 demovm33 saslauthd[3376]: set_auth_mech&nbsp;&nbsp; : unknown
<br>&gt; &gt; &gt; authentication mechanism: map<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:27 demovm33 saslauthd[3392]: detach_tty&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: master<br>&gt; pid<br>&gt; &gt; &gt; is: 3392<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:27 demovm33 saslauthd[3392]: ipc_init&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: listening
<br>&gt; on<br>&gt; &gt; &gt; socket: /var/run/saslauthd/mux<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:12:31 demovm33 saslauthd[3393]: do_auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : auth<br>&gt; failure:<br>&gt; &gt; &gt; [user=logon] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; OK, so that&#39;s when in /etc/sysconfig/saslauthd i have one line saying :<br>&gt; &gt; &gt; #&nbsp;&nbsp;MECH=pam<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I tried with several other &quot;MECH&quot; but i still get errors like, for
<br>&gt; instance<br>&gt; &gt; &gt; with MECH=shadow :<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:11:41 demovm33 saslauthd[3318]: server_exit&nbsp;&nbsp;&nbsp;&nbsp; : master<br>&gt; &gt; &gt; exited: 3318<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:11:41 demovm33 saslauthd[3351]: detach_tty&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: master
<br>&gt; pid<br>&gt; &gt; &gt; is: 3351<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:11:41 demovm33 saslauthd[3351]: ipc_init&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: listening<br>&gt; on<br>&gt; &gt; &gt; socket: /var/run/saslauthd/mux<br>&gt; &gt; &gt; #&nbsp;&nbsp;Jan 21 17:11:43 demovm33 saslauthd[3352]: do_auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : auth
<br>&gt; failure:<br>&gt; &gt; &gt; [user=logon] [service=imap] [realm=] [mech=shadow] [reason=Unknown]<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I couldn&#39;t try to use the MECH=sasldb because natively the sasldb mech
<br>&gt; is<br>&gt; &gt; &gt; disabled, so i have two options :<br>&gt; &gt; &gt; 1. compile a new saslauthd from sources that supports sasldb (i tried<br>&gt; and<br>&gt; &gt; &gt; failed, i get error coming from the .c and .h files :-/ )
<br>&gt; &gt; &gt; 2. have it working without the sasldb, which i guess is possible... i<br>&gt; mean i<br>&gt; &gt; &gt; only need a simple login/password thing, it&#39;s not that complex<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; So anyway, when _you_ use this cyrus-imapd thing, do you authenticate
<br>&gt; with<br>&gt; &gt; &gt; the sasldb by typing login/password, or do you do it another way ?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Hope it&#39;s clearer now to you (it isn&#39;t to me... ;) )<br>&gt; &gt; &gt; Any idea, please ?
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; @Alain&gt; about this RCTP TO error, i&#39;d say it comes from the SMTP, but i<br>&gt; &gt; &gt; don&#39;t understand what you meant by &quot;Ave you configured your SMTP to
<br>&gt; accept<br>&gt; &gt; &gt; <a href="mailto:lgon@mydomai.com">lgon@mydomai.com</a> ?&quot;, do i have to configure something on the SMTP side ?<br>&gt; &gt;<br>&gt; &gt; Often things are made to work together without to much change.
<br>&gt; &gt; It help to stay in the main idea of the developer, but not always easy<br>&gt; &gt; to guest it.<br>&gt; &gt; Yesterday I didn&#39;t touch my postfix on my centos 5.1 to make it works<br>&gt; &gt; with cyrus.
<br>&gt; &gt;<br>&gt; &gt; Regards<br>&gt; &gt; &gt; Thanks for paying interest in my helplessness :)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;2008/1/21, Alain Spineux &lt; <a href="mailto:aspineux@gmail.com">
aspineux@gmail.com</a>&gt;:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; On Jan 21, 2008 2:19 PM, badock &lt;<a href="mailto:badock@gmail.com">badock@gmail.com</a>&gt; wrote:<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Hello all,
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; I recently installed cyrus-imapd, and i&#39;m now trying to make it<br>&gt; work.<br>&gt; &gt; &gt; &gt; &gt; I created a mailbox user (cm user.logon) then acl&#39;ed it (sam
<br>&gt; user.logon<br>&gt; &gt; &gt; &gt; &gt; logon all)<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;Then i set a password to logon : saslpasswd2 -c logon<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; maybe a<br>&gt; &gt; &gt; &gt; # chown 
cyrus.cyrus /etc/sasl2.db<br>&gt; &gt; &gt; &gt; or something like that could help<br>&gt; &gt; &gt; &gt; Read all cyrus error messages in log files!<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; So now, i expect the &quot;user&quot; logon to have access to his mailbox
<br>&gt; &gt; &gt; &gt; &gt; But it doesn&#39;t work, cause<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; 1. i can&#39;t telnet/login to the imap server with &quot;logon&quot;:<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; shell says:
<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; LOGIN BAD Error in IMAP commabd received by server<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; 2. i can&#39;t send any mail to <a href="mailto:logon@host.domain.com">logon@host.domain.com
</a><br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mailer says :<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RCPT TO &lt; <a href="mailto:logon@mydomain.com">logon@mydomain.com</a>&gt; failed :<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:logon@mydomain.com">
logon@mydomain.com</a> &gt;: Recipient address rejected: User<br>&gt; unknown in<br>&gt; &gt; &gt; &gt; &gt; local recipient table<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Where this message come from ? SMTP or cyrus ? Is-it lmtpd ?
<br>&gt; &gt; &gt; &gt; Can you give some more line around this error ?<br>&gt; &gt; &gt; &gt; Ave you configured your SMTP to accept <a href="mailto:lgon@mydomai.com">lgon@mydomai.com</a> ?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;Do you have an idea how i can check wether the imap works or not ?<br>&gt; &gt; &gt; &gt; &gt; Actually i&#39;d like to check if my settings are ok, is there a way to
<br>&gt; &gt; &gt; check<br>&gt; &gt; &gt; &gt; &gt; that ?<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Thanks in advance.<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; ----
<br>&gt; &gt; &gt; &gt; &gt; Cyrus Home Page: <a href="http://cyrusimap.web.cmu.edu/">http://cyrusimap.web.cmu.edu/</a><br>&gt; &gt; &gt; &gt; &gt; Cyrus Wiki/FAQ: <a href="http://cyrusimap.web.cmu.edu/twiki">http://cyrusimap.web.cmu.edu/twiki
</a><br>&gt; &gt; &gt; &gt; &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; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; --<br>&gt; &gt; &gt; &gt; Alain Spineux<br>&gt; &gt; &gt; &gt; aspineux gmail com<br>&gt; &gt; &gt; &gt; May the sources be with you<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Alain Spineux<br>&gt; &gt; aspineux gmail com<br>&gt; &gt; May the sources be with you<br>&gt; &gt;<br>&gt;<br>&gt;<br><br><br><br>--<br>Alain Spineux
<br>aspineux gmail com<br>May the sources be with you<br></blockquote></div><br>