Roundcube Community Forum

Release Support => Pending Issues => Topic started by: AsenClave on February 23, 2011, 05:03:24 AM

Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 05:03:24 AM
Where is that log file?
http://inoto.net/problem/roundcube/1.png (http://inoto.net/problem/roundcube/1.png)

roundcubemail-0.5.1
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 05:57:43 AM
The logfile should be in /logs/
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 06:06:25 AM
Quote from: Julius Caesar;33429
The logfile should be in /logs/


Code: [Select]
roundcube@lupus ~ $ cd [www]/mail/logs/
roundcube@lupus [www]/mail/logs $ ls
errors  sendmail
roundcube@lupus [www]/mail/logs $ cat errors

roundcube@lupus [www]/mail/logs $ cat sendmail
[23-Feb-2011 09:54:40 +0000]: User clave@localhost [79.162.0.109]; Message for asen.clave@gmail.com; 250: 2.0.0 Ok: queued as 34F02139692
[23-Feb-2011 10:05:29 +0000]: User clave@localhost [79.162.0.109]; Message for asen.clave@gmail.com; 250: 2.0.0 Ok: queued as 0E8B8139692
[23-Feb-2011 10:31:19 +0000]: User clave@inoto.net [79.162.0.109]; Message for asen.clave@gmail.com; 250: 2.0.0 Ok: queued as 9EC1813968B
roundcube@lupus [www]/mail/logs $


No errors?
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 06:51:39 AM
You can increase the debuglevel in the config file: /config/main.inc.php

Code: [Select]
$rcmail_config['debug_level'] = 8;
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 07:13:15 AM
Quote from: Julius Caesar;33431
Other question: Are you trying to rename the INBOX?


No, RoundCube can't access to my ~/.maildir/ What chown and chmod i need?
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 07:23:01 AM
The owner must be the same as the user which accessed the imap-server
The rights must be full access to the user

Code: [Select]
chown clave .maildir
chmod 700 .maildir
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 07:48:16 AM
Ok. lets do this:
Code: [Select]
lupus test # ls -laR .maildir/
.maildir/:
total 20
drwx------ 5 test test 4096 Feb 23 13:42 .
drwxr-xr-x 3 test test 4096 Feb 23 13:42 ..
drwxr-xr-x 2 test test 4096 Feb 23 13:42 cur
drwxr-xr-x 2 test test 4096 Feb 23 13:42 new
drwxr-xr-x 2 test test 4096 Feb 23 13:42 tmp

.maildir/cur:
total 8
drwxr-xr-x 2 test test 4096 Feb 23 13:42 .
drwx------ 5 test test 4096 Feb 23 13:42 ..

.maildir/new:
total 8
drwxr-xr-x 2 test test 4096 Feb 23 13:42 .
drwx------ 5 test test 4096 Feb 23 13:42 ..

.maildir/tmp:
total 8
drwxr-xr-x 2 test test 4096 Feb 23 13:42 .
drwx------ 5 test test 4096 Feb 23 13:42 ..


(http://inoto.net/problem/roundcube/2.png)

Account to test {
 login = test
 passwd = 1235
}

iNoto.net Association :: Welcome to iNoto.net Association (http://inoto.net/mail/)

Try this and tell me what do you think.
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 07:57:08 AM
Is there any information in the mail servers logfile (/var/log/mail)?

I've tried to create a folder named 'CanBeDropped'
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 07:58:15 AM
Quote from: Julius Caesar;33435
Is there any information in the mail servers logfile (/var/log/mail)?

I've tried to create a folder named 'CanBeDropped'


Code: [Select]
lupus log # ls /var/log
auth.log  daemon.log  kern.log  lighttpd  user.log
btmp      faillog     lastlog   sys.log   wtmp
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 08:02:34 AM
odd!

Can you find any reference to a log location in you imap-server configuration?

Usually in /etc//.

I.E. /etc/dovecot/
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 08:07:35 AM
Quote from: Julius Caesar;33437
odd!

Can you find any reference to a log location in you imap-server configuration?


Code: [Select]
lupus ~ # ls -h /etc/courier
imapd           imapd.cnf   pop3d-ssl       pop3d.dist            shared.tmp
imapd-ssl       imapd.dist  pop3d-ssl.dist  quotawarnmsg.example
imapd-ssl.dist  pop3d       pop3d.cnf       shared


Wanna cat imapd or imapd.cnf?

imapd:
Code: [Select]

...
##NAME: LOGGEROPTS:0
#
# courierlogger(1) options.
#

LOGGEROPTS="-name=imapd"
...
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 08:39:36 AM
I've sent you an email with a request
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 08:42:23 AM
Quote from: Julius Caesar;33440
I've sent you an email with a request


E-mail where you sent :D ? gmail.com or inoto.net? What account?
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 08:45:44 AM
your gmail-account
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 08:49:36 AM
answered.         .
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 09:17:15 AM
Nothing unusual in the config.

Have you tried accessing your mailserver with a regular client like thunderbird or outlook and creating a folder?


Another thing you can try is set the following in the main.inc.php:
Code: [Select]
$rcmail_config['imap_debug'] = true;

And check the logfile: /logs/imap.log.
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 09:21:23 AM
Quote from: Julius Caesar;33444
Another thing you can try is set the following in the main.inc.php:
Code: [Select]
$rcmail_config['imap_debug'] = true;

/logs/imap.log not appear.

Quote
Have you tried accessing your mailserver with a regular client like thunderbird or outlook and creating a folder?
Port 143 need to be open. At first i must be near server to do that ;)

Special question: When i creating with RoundCube a new folder eg. Dir, WHO is creating that folder? user, courier-imap?

I found something like this:
Code: [Select]
2011-02-23 15:25:41: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Warning:  date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in [www]/mail/config/main.inc.php on line 514
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 09:29:25 AM
Quote from: AsenClave;33445
/logs/imap.log not appear.

Strange. When I change
Code: [Select]
$rcmail_config['imap_debug'] = false;to
Code: [Select]
$rcmail_config['imap_debug'] = true;
The file imap.log is filled with all the traffic between RC and my imap-server.

What are the rights on the folder /logs/ ?
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 09:33:21 AM
Quote from: Julius Caesar;33446
What are the rights on the folder /logs/ ?

Code: [Select]
lupus logs # ls -lah
total 16K
drwxr-xr-x  2 lighttpd lighttpd 4.0K Feb 23 13:07 .
drwxr-xr-x 11 lighttpd lighttpd 4.0K Feb 23 13:40 ..
-rw-r--r--  1 lighttpd lighttpd   31 Feb 23 12:59 .htaccess
-rw-r--r--  1 lighttpd lighttpd 2.9K Feb 23 15:29 errors

Code: [Select]
lupus logs # ps -aux | grep lighttpd
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
lighttpd  5883  0.4  0.8  14764  7788 ?        SN   10:42   1:10 /usr/bin/php-cgi
lighttpd 12171  0.0  0.2   5080  2536 ?        SN   Feb21   0:06 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
lighttpd 12172  0.0  0.3  11404  3160 ?        SNs  Feb21   0:00 /usr/bin/php-cgi
lighttpd 12173  0.0  0.1  11404  1380 ?        SN   Feb21   0:00 /usr/bin/php-cgi
lighttpd 12174  0.0  0.3  11404  3164 ?        SNs  Feb21   0:00 /usr/bin/php-cgi
lighttpd 12175  0.0  0.1  11404  1380 ?        SN   Feb21   0:00 /usr/bin/php-cgi
lighttpd 12176  0.0  0.3  11404  3156 ?        SNs  Feb21   0:00 /usr/bin/php-cgi
lighttpd 12177  0.0  0.7  14620  7588 ?        SN   Feb21   0:08 /usr/bin/php-cgi
lighttpd 12178  0.0  0.3  11404  3156 ?        SNs  Feb21   0:00 /usr/bin/php-cgi
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 09:43:59 AM
Look fine. Can you mail me your main.inc.php?
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 09:48:15 AM
Quote from: Julius Caesar;33448
Look fine. Can you mail me your main.inc.php?


ready........
Title: [0.5.1] Create new folder.
Post by: Julius Caesar on February 23, 2011, 09:54:10 AM
You added
Code: [Select]
$rcmail_config['imap_debug'] = true; high in the config file. However the default setting
Code: [Select]
$rcmail_config['imap_debug'] = false; a little lower overrides your setting again.

Maybe I was not clear enough. Remove your entry and change the default setting to true. (about line 48 or 50)
Title: [0.5.1] Create new folder.
Post by: AsenClave on February 23, 2011, 09:56:43 AM
Quote from: Julius Caesar;33451
Maybe I was not clear enough. Remove your entry and change the default setting to true. (about line 48 or 50)


little mistake ;)

imap-log file (login)
Code: [Select]
[23-Feb-2011 15:57:40 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:57:40 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:57:40 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:57:40 +0000]: C: A0002 NAMESPACE
[23-Feb-2011 15:57:40 +0000]: S: * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
[23-Feb-2011 15:57:40 +0000]: S: A0002 OK NAMESPACE completed.
[23-Feb-2011 15:57:40 +0000]: C: A0003 LOGOUT
[23-Feb-2011 15:57:40 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:57:40 +0000]: S: A0003 OK LOGOUT completed
[23-Feb-2011 15:57:40 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:57:40 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:57:41 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:57:41 +0000]: C: A0002 CAPABILITY
[23-Feb-2011 15:57:41 +0000]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
[23-Feb-2011 15:57:41 +0000]: S: A0002 OK CAPABILITY completed
[23-Feb-2011 15:57:41 +0000]: C: A0003 LSUB "" "*"
[23-Feb-2011 15:57:41 +0000]: S: A0003 OK LSUB completed
[23-Feb-2011 15:57:41 +0000]: C: A0004 GETQUOTAROOT INBOX
[23-Feb-2011 15:57:41 +0000]: S: * QUOTAROOT "INBOX" "ROOT"
[23-Feb-2011 15:57:41 +0000]: S: * QUOTA "ROOT"
[23-Feb-2011 15:57:41 +0000]: S: A0004 OK GETQUOTAROOT Ok.
[23-Feb-2011 15:57:41 +0000]: C: A0005 LOGOUT
[23-Feb-2011 15:57:41 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:57:41 +0000]: S: A0005 OK LOGOUT completed
[23-Feb-2011 15:57:42 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:57:42 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:57:42 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:57:42 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:57:42 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:57:42 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:57:42 +0000]: C: A0002 CAPABILITY
[23-Feb-2011 15:57:42 +0000]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
[23-Feb-2011 15:57:42 +0000]: S: A0002 OK CAPABILITY completed
[23-Feb-2011 15:57:42 +0000]: C: A0003 LSUB "" "*"
[23-Feb-2011 15:57:42 +0000]: S: A0003 OK LSUB completed
[23-Feb-2011 15:57:42 +0000]: C: A0004 STATUS INBOX (MESSAGES UNSEEN)
[23-Feb-2011 15:57:42 +0000]: C: A0002 STATUS INBOX (MESSAGES UNSEEN)
[23-Feb-2011 15:57:42 +0000]: S: A0002 NO [ALERT] STATUS failed
[23-Feb-2011 15:57:42 +0000]: S: A0004 NO [ALERT] STATUS failed
[23-Feb-2011 15:57:42 +0000]: C: A0005 SELECT INBOX
[23-Feb-2011 15:57:42 +0000]: S: A0005 NO Unable to open this mailbox.
[23-Feb-2011 15:57:42 +0000]: C: A0006 LOGOUT
[23-Feb-2011 15:57:42 +0000]: C: A0003 LOGOUT
[23-Feb-2011 15:57:42 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:57:42 +0000]: S: A0003 OK LOGOUT completed
[23-Feb-2011 15:57:42 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:57:42 +0000]: S: A0006 OK LOGOUT completed


create folder:
Code: [Select]
[23-Feb-2011 15:59:17 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:59:17 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:59:17 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:59:17 +0000]: C: A0002 LOGOUT
[23-Feb-2011 15:59:17 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:59:17 +0000]: S: A0002 OK LOGOUT completed
[23-Feb-2011 15:59:19 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:59:19 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:59:19 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:59:19 +0000]: C: A0002 LIST "" "*"
[23-Feb-2011 15:59:19 +0000]: S: * LIST (\Unmarked \HasNoChildren) "." "INBOX"
[23-Feb-2011 15:59:19 +0000]: S: A0002 OK LIST completed
[23-Feb-2011 15:59:19 +0000]: C: A0003 CAPABILITY
[23-Feb-2011 15:59:19 +0000]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
[23-Feb-2011 15:59:19 +0000]: S: A0003 OK CAPABILITY completed
[23-Feb-2011 15:59:19 +0000]: C: A0004 LSUB "" "*"
[23-Feb-2011 15:59:19 +0000]: S: A0004 OK LSUB completed
[23-Feb-2011 15:59:19 +0000]: C: A0005 GETQUOTAROOT INBOX
[23-Feb-2011 15:59:19 +0000]: S: * QUOTAROOT "INBOX" "ROOT"
[23-Feb-2011 15:59:19 +0000]: S: * QUOTA "ROOT"
[23-Feb-2011 15:59:19 +0000]: S: A0005 OK GETQUOTAROOT Ok.
[23-Feb-2011 15:59:19 +0000]: C: A0006 LOGOUT
[23-Feb-2011 15:59:19 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:59:19 +0000]: S: A0006 OK LOGOUT completed
[23-Feb-2011 15:59:24 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:59:24 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:59:24 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:59:24 +0000]: C: A0002 LOGOUT
[23-Feb-2011 15:59:24 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:59:24 +0000]: S: A0002 OK LOGOUT completed
[23-Feb-2011 15:59:27 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
[23-Feb-2011 15:59:27 +0000]: C: A0001 LOGIN clave {passwd}#
[23-Feb-2011 15:59:27 +0000]: S: A0001 OK LOGIN Ok.
[23-Feb-2011 15:59:27 +0000]: C: A0002 CREATE INBOX.Send
[23-Feb-2011 15:59:27 +0000]: S: A0002 NO Cannot create this folder.
[23-Feb-2011 15:59:27 +0000]: C: A0003 LOGOUT
[23-Feb-2011 15:59:27 +0000]: S: * BYE Courier-IMAP server shutting down
[23-Feb-2011 15:59:27 +0000]: S: A0003 OK LOGOUT completed