Roundcube Community Forum

 

can't test authenticate to localhost IMAP, won't log?

Started by aweber, April 26, 2013, 05:07:14 PM

Previous topic - Next topic

aweber

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

SKaero

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.

aweber

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.

SKaero

Make sure the logs directory is writeable, every failed login should add a line.

aweber

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:
QuoteIMAP 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.)

SKaero


aweber

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)

SKaero

Do you have SELinux enabled? Does it work if you turn if off?

aweber

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