[opensuse] Need Help Getting Started with Cyrus IMAP
Hi all, So, I am learning about how to setup Cyrus IMAP on a OpenSUSE 11.4 server, and I'm having some very basic problems that I hope the experts here can help me with. I've successfully installed Cyrus IMAP using the stock OpenSUSE packages. For now, I want to start simple and just understand the basic IMAP operations in Cyrus, so I have defined the following objectives for myself: 1. Create 'cyrus' system user and 'cyrus' user in sasldb2 for administration 2. Create three mailboxes: 'ahkow@test.com', 'ahteh@test.com' and 'ahbeng@test.com' 3. Authenticate using sasldb2 as backend instead of saslauthd (for now) 4. Login as each user using the CLI and test using 'imtest' Right now, I have the 3 users created inside sasldb2, verified using sasldblistusers2. I'm not sure what I am doing wrong, but I can't authenticate as any user using imtest. Here's what I get: linux-zuge:/usr/lib/sasl2 # imtest -u cyrus@linux-zuge -m login -p imap localhost S: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED AUTH=GSSAPI AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR COMPRESS=DEFLATE] linux-zuge Cyrus IMAP v2.3.16 server ready Please enter your password: C: L01 LOGIN root {0} S: L01 NO Login only available under a layer Authentication failed. generic failure Security strength factor: 0 What do I check/change and where do I change it? Any help would be greatly appreciated. Regards, pascal chong -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Donnerstag 12 Mai 2011, 07:10:25 schrieb Yu Meng Chong:
Hi all,
So, I am learning about how to setup Cyrus IMAP on a OpenSUSE 11.4 server, and I'm having some very basic problems that I hope the experts here can help me with.
I've successfully installed Cyrus IMAP using the stock OpenSUSE packages. For now, I want to start simple and just understand the basic IMAP operations in Cyrus, so I have defined the following objectives for myself:
1. Create 'cyrus' system user and 'cyrus' user in sasldb2 for administration 2. Create three mailboxes: 'ahkow@test.com', 'ahteh@test.com' and 'ahbeng@test.com' 3. Authenticate using sasldb2 as backend instead of saslauthd (for now) 4. Login as each user using the CLI and test using 'imtest'
Right now, I have the 3 users created inside sasldb2, verified using sasldblistusers2. I'm not sure what I am doing wrong, but I can't authenticate as any user using imtest. Here's what I get:
linux-zuge:/usr/lib/sasl2 # imtest -u cyrus@linux-zuge -m login -p imap localhost You are telling imtest to use the "login" authentication mechanism, which is a) not a SASL mechanism and b) a plaintext authentication mechanism. "login" (and I think "plain" as well) does not work for users stored in sasldb2 AFAIK. You should use as mechanism supported for sasldb base users (e.g. CRAM-MD5 or DIGEST-MD5) Additionally you are missing a "-a" argument to the imtest command. imtest will try authenticating as the user who started the command ("root" in your case) if you leave "-a <username>" out. See the imtest(1) man page for details. (Note: You can probably leave out the -u argument from you imtest called, but I am not 100% sure about that)
S: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED AUTH=GSSAPI AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR COMPRESS=DEFLATE] linux-zuge Cyrus IMAP v2.3.16 server ready Please enter your password: C: L01 LOGIN root {0} S: L01 NO Login only available under a layer Additionally here cyrus imapd is complaining about the fact that is will allow plaintext mechanisms only for encrypted connection. (This can however be disbabled, which otoh is probably a bad idea. See the imapd.conf(5) manpage for details).
Ralf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Ralf Haferkamp
-
Yu Meng Chong