Author Topic: can't test authenticate to localhost IMAP, won't log?  (Read 6227 times)

Offline aweber

  • Newbie
  • *
  • Posts: 8
can't test authenticate to localhost IMAP, won't log?
« on: April 26, 2013, 05:07:14 PM »
I have done my best to enable logging, but I can't get anything written to the log directory.

If I telnet localhost 143, I can LOGIN with my credentials (dovecot).

No matter what I put into the "Test Config" page to test IMAP, it always fails.  I don't know why.  It won't log anything so far.

I can't believe I'm having this much trouble with this app.

-AJ

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #1 on: April 26, 2013, 06:14:25 PM »
The installer sometime doesn't read the config and will use CRAM-MD5 instead of what you have in the main.inc.php. My advised would be to skip the installer check and see if you can actually login to RoundCube.

Offline aweber

  • Newbie
  • *
  • Posts: 8
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #2 on: April 29, 2013, 08:47:59 AM »
Unfortunately, trying to login to the normal interface gives me a "connection to storage server failed".  And still nothing in the log directory.  Nothing at all.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #3 on: April 29, 2013, 04:50:53 PM »
Make sure the logs directory is writeable, every failed login should add a line.

Offline aweber

  • Newbie
  • *
  • Posts: 8
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #4 on: April 29, 2013, 05:03:00 PM »
Not sure what's going on.  I tried explicitly giving an absolute path, because I thought I was just looking in the wrong place.  The directory is 777 (and actually owned by apache user).

(That part passed the test-config as writable too.)

EDIT:
Changed Log type to 5, and see a message on the top after failed login:
Quote
IMAP Error in /var/www/html/webmail/program/lib/Roundcube/rcube_imap.php (184): Login failed for aweber from 192.168.1.176. Could not connect to app2:143: Permission denied
(Remember, telnet to port 143 allows me to manually logon correctly.)
« Last Edit: April 29, 2013, 05:05:13 PM by aweber »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #5 on: April 29, 2013, 05:05:01 PM »
What is the debug level in the main.inc.php?

Offline aweber

  • Newbie
  • *
  • Posts: 8
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #6 on: April 29, 2013, 05:06:02 PM »
See above.  Sorry, just saw that setting and updated it and edited my post.

That appears to have it logging now.  This is the entry in "errors" file:
Quote
[29-Apr-2013 17:08:05 -0400]: IMAP Error: Login failed for aweber from 192.168.1.176. Could not connect to app2:143: Permission denied in /var/www/html/webmail/program/lib/Roundcube/rcube_imap.php on line 184 (POST /webmail/?_task=login&_action=login)
« Last Edit: April 29, 2013, 05:09:42 PM by aweber »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #7 on: April 29, 2013, 05:15:14 PM »
Do you have SELinux enabled? Does it work if you turn if off?

Offline aweber

  • Newbie
  • *
  • Posts: 8
Re: can't test authenticate to localhost IMAP, won't log?
« Reply #8 on: April 29, 2013, 05:24:53 PM »
That was it.  Beautiful.

I don't (think I) need it on, and I'm a little surprised it was enabled by default.

THANK YOU.

-AJ