<div dir="ltr">Fedora 8<br>
# rpm -qa | grep cyrus<br>
cyrus-sasl-lib-2.1.22-8.fc8<br>
cyrus-sasl-plain-2.1.22-8.fc8<br>
cyrus-imapd-utils-2.3.11-1.fc8<br>
cyrus-sasl-devel-2.1.22-8.fc8<br>
cyrus-sasl-2.1.22-8.fc8<br>
cyrus-sasl-md5-2.1.22-8.fc8<br>
cyrus-imapd-perl-2.3.11-1.fc8<br>
cyrus-imapd-2.3.11-1.fc8<br><br># cat /etc/imapd.conf<br>configdirectory: /var/lib/imap<br>partition-default: /var/spool/imap<br>admins: cyrus<br>sievedir: /var/lib/imap/sieve<br>sendmail: /usr/sbin/sendmail<br>hashimapspool: true<br>
sasl_pwcheck_method: auxprop<br>sasl_auxprop_plugin: sasldb2<br>sasldb_path: /etc/sasldb2<br>sasl_mech_list: PLAIN LOGIN DIGEST-MD5 CRAM-MD5<br>tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem<br>tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem<br>
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt<br><br># cat /usr/lib/sasl2/smtpd.conf <br>pwcheck_method: auxprop<br>mech_list: PLAIN LOGIN DIGEST-MD5 CRAM-MD5<br><br>I'm going around in circles here trying to figure out how to authenticate with cyradm. I'd like to use sasldb and so have created an entry there for the cyrus user. And I've disabled saslauthd. Whatever I've tried so far has failed. And, frankly, I'm very confused about how this is supposed to work. For instance, some info I've found online tells me to create an entry in /etc/paswd for the cyrus user, while other sources don't mention that.<br>
<br>So, for the following, PASS1 is what i have in /etc/passwd and PASS2 was given to saslpasswd2 -c cyrus<br><br>-- snip --<br># cyradm --user=cyrus --server=localhost --auth=plain<br>verify error:num=18:self signed certificate<br>
Password: PASS1<br>IMAP Password: PASS2<br> Login failed: authentication failure at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 119<br>cyradm: cannot authenticate to server with plain as cyrus<br>
-- snip --<br><br>/var/log/messages says:<br>perl: No worthy mechs found<br><br>From what I understand google is telling me, the "verify error" line can be ignored for now. If not, stop me now.<br><br>I try LOGIN:<br>
<br>-- snip --<br># cyradm --user=cyrus --server=localhost --auth=login<br>verify error:num=18:self signed certificate<br>IMAP Password: PASS2<br> Login failed: authentication failure at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 119<br>
cyradm: cannot authenticate to server with login as cyrus<br>-- snip --<br><br>This time, there's no entry in /var/log/messages<br><br>I came across this while searching and thought I'd give it a try:<br><br>cyradm --user=cyrus --tls localhost<br>
cyradm><br><br>This time, no password prompt (contrary to the example I saw) and I appear to be in. However, if I try any commands it complains that there's no connection:<br><br>cyradm> cm user.USER@MYDOMAIN<br>
createmailbox: no connection to server<br><br>Long story short: how the heck should I be connecting to cyradm if I'm using sasldb2? What's this, "No worthy mechs " about? Is there yet another config file to adjust?<br>
<br>Sorry for the long post. I've scrolled through so many things online but most of the examples are just a little bit different from my setup (eg. LDAP, MySQL, etc.) and so wanted to try to spell it out as clearly as possible.<br>
<br>Of course, if I've left out any crucial information ...<br><br><br><br></div>