Difference between revisions of "Changing-horde-download-limit"

From BubbaWiki
Jump to navigation Jump to search
(Created page with 'Changing Horde Download Limit<br>Author: asparak<br>If you find the 4MB download limit of horde annoying, it is pretty simple to fix.<br>This assumes some knowledge of SSH. Don't...')
 
Line 1: Line 1:
Changing Horde Download Limit<br>Author: asparak<br>If you find the 4MB download limit of horde annoying, it is pretty simple to fix.<br>This assumes some knowledge of SSH. Don't try this if you are not comfortable editing files, because if you mess the formatting up, you will mess up horde.
Author: asparak<br>If you find the 4MB download limit of horde annoying, it is pretty simple to fix.<br>This assumes some knowledge of SSH. Don't try this if you are not comfortable editing files, because if you mess the formatting up, you will mess up horde.  


1. Log in to ssh<br>
1. Log in to ssh<br>  
<pre>ssh server
<pre>ssh server
</pre>
</pre>  
2. su to root or use sudo if you have it set up.<br>
2. su to root or use sudo if you have it set up.<br>  
<pre>su root
<pre>su root
</pre>
</pre>  
3. Go to<br>
3. Go to<br>  
<pre>cd /etc/horde/imp4
<pre>cd /etc/horde/imp4


</pre>
</pre>  
4. Edit conf.xml using your preferred editor (I use vi) and under Fetchmail Settings change:<br>4000000 to what ever you want. I set mine to 15000000, but that is up to you.<br>You could set it to 0 if you wanted, but that could lead to issues, so I wouldn't recommend it. Save your changes.<br>5. Edit conf.php and change the line <br>
4. Edit conf.xml using your preferred editor (I use vi) and under Fetchmail Settings change:<br>4000000 to what ever you want. I set mine to 15000000, but that is up to you.<br>You could set it to 0 if you wanted, but that could lead to issues, so I wouldn't recommend it. Save your changes.<br>5. Edit conf.php and change the line <br>  
<pre>vi conf.php
<pre>vi conf.php
$conf['fetchmail']['size_limit'] = 4000000;  
$conf['fetchmail']['size_limit'] = 4000000;  
</pre>
</pre>  
to the same as you set in step 4. Save your changes.<br>
to the same as you set in step 4. Save your changes.<br>  


6. Go to:<br>
6. Go to:<br>  
<pre>cd /etc/php5/apache2/
<pre>cd /etc/php5/apache2/


</pre>
</pre>  
7. edit php.ini and make sure the value memory_limit is at least twice the value you set in steps 4 and 5. Save your changes if necessary. Default seems to be 128MB, so you are fine unless you set your mail size to 64000000 or bigger in steps 4 and 5.<br>8. Log out of Horde and back in again and your new download limit should be working. Remember to check these after each upgrade as Excito's scripts may set these back to defaults.<br>If you want to display HTML inline, instead of an attachment, edit /etc/horde/imp4/mime_drivers.php and set html inline to true and restart as above. This will be a very small hit to the normal performance, so be warned.<br>
7. edit php.ini and make sure the value memory_limit is at least twice the value you set in steps 4 and 5. Save your changes if necessary. Default seems to be 128MB, so you are fine unless you set your mail size to 64000000 or bigger in steps 4 and 5.<br>8. Log out of Horde and back in again and your new download limit should be working. Remember to check these after each upgrade as Excito's scripts may set these back to defaults.<br>If you want to display HTML inline, instead of an attachment, edit /etc/horde/imp4/mime_drivers.php and set html inline to true and restart as above. This will be a very small hit to the normal performance, so be warned.<br>

Revision as of 12:06, 7 October 2010

Author: asparak
If you find the 4MB download limit of horde annoying, it is pretty simple to fix.
This assumes some knowledge of SSH. Don't try this if you are not comfortable editing files, because if you mess the formatting up, you will mess up horde.

1. Log in to ssh

ssh server

2. su to root or use sudo if you have it set up.

su root

3. Go to

cd /etc/horde/imp4

4. Edit conf.xml using your preferred editor (I use vi) and under Fetchmail Settings change:
4000000 to what ever you want. I set mine to 15000000, but that is up to you.
You could set it to 0 if you wanted, but that could lead to issues, so I wouldn't recommend it. Save your changes.
5. Edit conf.php and change the line

vi conf.php
$conf['fetchmail']['size_limit'] = 4000000; 

to the same as you set in step 4. Save your changes.

6. Go to:

cd /etc/php5/apache2/

7. edit php.ini and make sure the value memory_limit is at least twice the value you set in steps 4 and 5. Save your changes if necessary. Default seems to be 128MB, so you are fine unless you set your mail size to 64000000 or bigger in steps 4 and 5.
8. Log out of Horde and back in again and your new download limit should be working. Remember to check these after each upgrade as Excito's scripts may set these back to defaults.
If you want to display HTML inline, instead of an attachment, edit /etc/horde/imp4/mime_drivers.php and set html inline to true and restart as above. This will be a very small hit to the normal performance, so be warned.