Horde is sending blank attachments!

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,255
60
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hi people, since last update to cPanel S21703, we noted that Horde is sending attachments with size of 0 bytes. No matter if you set the attach to be stored online or sent along with the message, the attachs are always set to 0 bytes in size, and are sent in blank.
Probably is a problem originated in the last Security Update for Horde, and is not properly managing the uploaded attachments.

Does anybody know how to repair this issue? We have several customers that are webmail based and this have made one of them turned to Gmail. We don't want to lose customer due to this issue. Please help! :confused:

I'm using this version:
WHM 11.15.0 cPanel 11.18.3-S21703
CENTOS Enterprise 4.6 i686 on virtuozzo - WHM X v3.1.0
 

Todd Mitchell

Well-Known Member
Staff member
Nov 13, 2006
301
1
243
Houston, TX
Check to make sure there is no quota set on the 'cpanel-horde' user. If there is a quota set, reset the quota to unlimited and the issue should be resolved.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,255
60
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
This needs to be done on the command line, using ssh.

Code:
quota cpanel-horde
ok, this was returned:

Code:
Disk quotas for user cpanel-horde (uid 32003):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
     /dev/simfs    5120*   5120    5120              33       0       0
what should I do now? (I never played directly with quotas in this way, so tell me how to go from here)
 

Angel78

Well-Known Member
May 9, 2002
413
1
318
I woud also appreciate if you could post answer to the previous question.

kind regards

:)
 

Angel78

Well-Known Member
May 9, 2002
413
1
318
edquota cpanel-horde

set to whatever you want it for Soft and hard limit and save
 

bflorin

Registered
PartnerNOC
Jun 19, 2007
1
0
51
We have the same problem on a Virtual server of ours. The quota cpanel-horde already shows an unlimited quota...

Code:
Disk quotas for user cpanel-horde (uid 32004):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/vzfs   20480*  20480   20480              73       0       0
Any other suggestions?
 
Last edited:

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,255
60
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Can you check your php.ini settings for "upload_tmp_dir" ?

It should be set to something like "/tmp" or "/var/tmp"
which php.ini are you talking about? I have almost 15 outside my /home dir only.
I suppose you refer to this:
/usr/local/cpanel/3rdparty/etc/horde/php.ini

Please confirm.


Also, I've seen this notice inside that php.ini:

Code:
; CPANEL NOTICE:
; If you edit this file you must run /usr/local/cpanel/bin/install_php_inis
Running that command is a MUST? why?
 

mtindor

Well-Known Member
Sep 14, 2004
1,363
65
178
inside a catfish
cPanel Access Level
Root Administrator
We have the same problem on a Virtual server of ours. The quota cpanel-horde already shows an unlimited quota...

Code:
Disk quotas for user cpanel-horde (uid 32004):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/vzfs   20480*  20480   20480              73       0       0
Any other suggestions?
That doesn't look like an unlimited quota. That looks like your quota has been reached.

An unlimited quota would look similar to this:

Disk quotas for user cpanel-horde (uid 32004): none

In yours, under 'blocks' it is showing the amount of your quota used. Your quota is 20480 (20 MB?) and it is full.

Set your quota to unlimited.

edquota cpanel-horde

Once in the editor, set all entries under 'soft' and 'hard' to 0 for all filesystems.

Mike
 

mtindor

Well-Known Member
Sep 14, 2004
1,363
65
178
inside a catfish
cPanel Access Level
Root Administrator
which php.ini are you talking about? I have almost 15 outside my /home dir only.
I suppose you refer to this:
/usr/local/cpanel/3rdparty/etc/horde/php.ini

Please confirm.


Also, I've seen this notice inside that php.ini:

Code:
; CPANEL NOTICE:
; If you edit this file you must run /usr/local/cpanel/bin/install_php_inis
Running that command is a MUST? why?
I'm guessing it is so that it updates all of the PHP.ini files that Cpanel may use - such as those for horde phpmyadmin phppgadmin squirrelmail roundcube.

Mike
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,255
60
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
I'm guessing it is so that it updates all of the PHP.ini files that Cpanel may use - such as those for horde phpmyadmin phppgadmin squirrelmail roundcube.

Mike
ok, but what is the source file from where that script will update all of the php.ini files?
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,255
60
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
According to /usr/local/cpanel/bin/install_php_inis, it is using the following source:

/usr/local/cpanel/3rdparty/etc/php.ini

Mike
ok then, that should be the php.ini file to edit. This is how it is set by now. I think changes are not needed. (But what's the system default?)

Code:
;upload_tmp_dir =         ; temporary directory for HTTP uploaded files (will use system default if not specified)


That doesn't look like an unlimited quota. That looks like your quota has been reached.

Set your quota to unlimited.

edquota cpanel-horde

Once in the editor, set all entries under 'soft' and 'hard' to 0 for all filesystems.

Mike
It worked great. Now I can send attachments from within the webmail :)

Is this ok?

Code:
[email protected] [/]# quota cpanel-horde
Disk quotas for user cpanel-horde (uid 32003): none
Since the quota is now set to unlimited, how can I check in the future how much disk space is this consuming? and how should be cleaned if needed?
 

mtindor

Well-Known Member
Sep 14, 2004
1,363
65
178
inside a catfish
cPanel Access Level
Root Administrator
ok then, that should be the php.ini file to edit. This is how it is set by now. I think changes are not needed. (But what's the system default?)
/usr/local/cpanel/3rdparty/etc/php.ini is the php.ini file for Cpanel applications - If you are wanting to edit a php.ini that affects user accounts, try:

/usr/lib/php.ini
/usr/local/lib/php.ini
/usr/local/Zend/etc/php.ini

Depending on whether you are running boht PHP4 and PHP5, your directories may be different. If you are running Zend Optimizer, then your /usr/lib/php.ini is a symlink to /usr/local/lib/php.ini, which is a symlink to the actual file /usr/local/Zend/etc/php.ini.


It worked great. Now I can send attachments from within the webmail :)

Is this ok?

Code:
[email protected] [/]# quota cpanel-horde
Disk quotas for user cpanel-horde (uid 32003): none
Since the quota is now set to unlimited, how can I check in the future how much disk space is this consuming? and how should be cleaned if needed?
Yes, that is fine. Now that you have disabled the quota, you can't see how much is being used by cpanel-horde user. But, likely the files it is temporarily using are in /tmp or /var/tmp - so just keep an eye on those directories.

Mike
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,255
60
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
/usr/local/cpanel/3rdparty/etc/php.ini is the php.ini file for Cpanel applications - If you are wanting to edit a php.ini that affects user accounts, try:

/usr/lib/php.ini
/usr/local/lib/php.ini
/usr/local/Zend/etc/php.ini

Depending on whether you are running boht PHP4 and PHP5, your directories may be different. If you are running Zend Optimizer, then your /usr/lib/php.ini is a symlink to /usr/local/lib/php.ini, which is a symlink to the actual file /usr/local/Zend/etc/php.ini.
ok, I'll take a look, but since attachments in Horde are now working again, I prefer avoid to touch php.ini files :)


Yes, that is fine. Now that you have disabled the quota, you can't see how much is being used by cpanel-horde user. But, likely the files it is temporarily using are in /tmp or /var/tmp - so just keep an eye on those directories.
Mike
Checking folders. There aren't newer files except the sess* ones in both /var/tmp and /tmp. I suppose that not seeing files in there is normal since this is only a tmp folder and shouldn't remain files there, i'm ok?


Horde is working properly, but I can't forget about that 33 files reported by the disk quota before the fix:

Code:
Disk quotas for user cpanel-horde (uid 32003):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
     /dev/simfs    5120*   5120    5120              [B][COLOR="Red"]33[/COLOR][/B]       0       0
Where in the server are them supposed to be located?
 

mtindor

Well-Known Member
Sep 14, 2004
1,363
65
178
inside a catfish
cPanel Access Level
Root Administrator
Horde is working properly, but I can't forget about that 33 files reported by the disk quota before the fix:

Code:
Disk quotas for user cpanel-horde (uid 32003):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
     /dev/simfs    5120*   5120    5120              [B][COLOR="Red"]33[/COLOR][/B]       0       0
Where in the server are them supposed to be located?
Kent,

You're likely going to have to use the 'find' command with some various switches and options to find out exactly where those files are. However, I am sure it is very inconsequential. You probably have more important things to do than chase down those 33 files - they are likely owned by cpanel-horde simply because they are required files that Horde uses to deliver the email content in webmail. There is likely no need to go searching for them because I doubt any of them are of significant size to cause problems.

Chasing after those files would be like chasing after files owned by 'mailman' - what would be the purpose? Ya know what I"m saying?

Mike