Author Topic: Roundcube and Mountain Lion  (Read 12560 times)

Offline ccoles

  • Newbie
  • *
  • Posts: 2
Roundcube and Mountain Lion
« on: July 16, 2012, 12:39:49 PM »
Hello all,

Running 10.8 server and roundcube connected to MySQL.  All green lights up to Step 3 of install.  Authentication always fails when testing IMAP access.  I've tried all forms of authentication available in the main.inc.php file.

Here is an error in the error log of roundcube:

[16-Jul-2012 09:42:39 -0500]: IMAP Error: Login failed for ccoles from 10.0.0.3. Authentication failed. in /Library/Server/Web/Data/Sites/Webmail/program/include/rcube_imap.php on line 205 (POST /?_task=login&_action=login)

This is in the system log of the OS:

Jul 16 11:34:00 tas2.anthonyschool.org log[220]: auth: Error: od(ccoles,10.0.0.3): authentication failed for user=ccoles, method=DIGEST-MD5

Despite changing the authentication type, DIGEST-MD5 always shows up in the system log.  All authentication methods are enabled on the mail server.

Any help would be appreciated!  Looks like Apple dropped roundcube from the server OS and I'm having to install it myself.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube and Mountain Lion
« Reply #1 on: July 16, 2012, 01:11:36 PM »
The installer doesn't actually read the authentication type from the main.inc.php when trying to connect, does it work if you actually try to login?

Offline ccoles

  • Newbie
  • *
  • Posts: 2
Re: Roundcube and Mountain Lion
« Reply #2 on: July 16, 2012, 02:44:25 PM »
It did actually work.  However, DIGEST-MD5 and CRAM-MD5 do not work.  LOGIN and PLAIN does work.

Thanks!

Offline Bjorn16

  • Newbie
  • *
  • Posts: 1
Re: Roundcube and Mountain Lion
« Reply #3 on: August 02, 2012, 06:53:02 AM »
Hi!

i have some problems to!On the new OSX 10.8, after install step 1 and 2 are working step 3 allmost sending a test mail ok smtp not ok.
When i login to the webmail the following error i get...


DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.


please can someone help!

Bjorn

Offline PaSav

  • Newbie
  • *
  • Posts: 6
Re: Roundcube and Mountain Lion
« Reply #4 on: August 02, 2012, 11:45:34 AM »
It did actually work.  However, DIGEST-MD5 and CRAM-MD5 do not work.  LOGIN and PLAIN does work.

Thanks!

I got it working with CRAM-MD5.

Offline oldschool

  • Sr. Member
  • ****
  • Posts: 406
Re: Roundcube and Mountain Lion
« Reply #5 on: August 02, 2012, 05:04:52 PM »
It did actually work.  However, DIGEST-MD5 and CRAM-MD5 do not work.  LOGIN and PLAIN does work.

Thanks!

I got it working with CRAM-MD5.

Don't you think it could be interesting howto for others, too?
 ;)


Rgds.


Offline Peggaweng

  • Newbie
  • *
  • Posts: 2
Re: Roundcube and Mountain Lion
« Reply #6 on: August 03, 2012, 01:33:55 PM »
Hi,

Mine is always using DIGEST-MD5 no matter what I do. A how to would be great :)

Offline Peggaweng

  • Newbie
  • *
  • Posts: 2
Roundcube and Mountain Lion
« Reply #7 on: August 03, 2012, 03:03:04 PM »
Ok so LOGIN does not test correctly but does log in.

Offline stvs

  • Newbie
  • *
  • Posts: 1
Re: Roundcube and Mountain Lion
« Reply #8 on: November 02, 2012, 11:45:30 PM »
Same problem on 10.8.2. I tried:
Code: [Select]
$rcmail_config['imap_auth_type'] = 'CRAM-MD5';
$rcmail_config['imap_auth_type'] = CRAM-MD5;
$rcmail_config['imap_auth_type'] = null;

All to no avail -- my logs always shows a FAIL on DIGEST-MD5 authentication:
Code: [Select]
Nov  2 20:33:44 domainname.com log[249]: auth: Error: od(username,10.0.1.3): authentication failed for user=username, method=DIGEST-MD5
So I just turned off DIGEST-MD5 authentication in serveradmin and it worked.
Code: [Select]
sudo serveradmin settings mail:imap:imap_auth_digest_md5 = no
This looks like a roundcube installer bug -- it's not using the specified authentication method in Mountain Lion.

Offline Matt_D

  • Newbie
  • *
  • Posts: 7
Re: Roundcube and Mountain Lion
« Reply #9 on: November 03, 2012, 08:31:40 PM »
I had similar issues...but fixed them on ML.

1) Make sure in your main.inc.php file that you set the option as CRAM_MD5 (note the underscore not the dash)
2) If you want to configure managesieve so your users can edit rules again, you'll need to enable CRAM-MD5 (dash this time) in the config.inc.php, force TLS, and specify port 4190.

Hope that helps.

- Matt