Ruby IMAP with Cyrus server

F

Fox Ph

Hi All,
I'm trying to authenticate to my imap server using the Net::IMAP
library.
i'm doing this:

require 'net/imap'
imap = Net::IMAP.new('my.server.com')
#i get an imap object back
imap.authenticate('LOGIN','user','password')
and at that point there's a pause then i get:
Net::IMAP::NoResponseError: encryption needed to use mechanism

my imap server is set to accept these sasl authentications:
plain login

and my cyrus log says this:
LOGIN [SASL(-16): encryption needed to use mechanism: security flags do
not match required]

any ideas how to enable the correct authentication methods on this?

many thanks for reading,
cheers.
fox
 
E

Eric Hodel

Hi All,
I'm trying to authenticate to my imap server using the Net::IMAP
library.
i'm doing this:

require 'net/imap'
imap = Net::IMAP.new('my.server.com')
#i get an imap object back
imap.authenticate('LOGIN','user','password')
and at that point there's a pause then i get:
Net::IMAP::NoResponseError: encryption needed to use mechanism

my imap server is set to accept these sasl authentications:
plain login

and my cyrus log says this:
LOGIN [SASL(-16): encryption needed to use mechanism: security
flags do
not match required]

any ideas how to enable the correct authentication methods on this?

You probably need to use an SSL connection. LOGIN sends a
recoverable password.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top