<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — [FAQ] How to change mail attachment size]]></title>
		<link>http://www.iredmail.org/forum/topic464-faq-how-to-change-mail-attachment-size.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic464.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [FAQ] How to change mail attachment size.]]></description>
		<lastBuildDate>Thu, 03 Dec 2009 08:20:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[[FAQ] How to change mail attachment size]]></title>
			<link>http://www.iredmail.org/forum/post1987.html#p1987</link>
			<description><![CDATA[<p>This tutorial is used to explain how to change mail attachment size in iRedMail. If they don&#039;t work for you, please post a new topic in <a href="http://www.iredmail.org/forum/forum2-iredmail-general-technical-support.html">iRedMail General Technical Support</a> forum.<br />=====================</p><p>To change mail attachment size, we have to change 3 settings.</p><h5>Change mail size in postfix</h5><p>Postfix is MTA, so we have to change its setting to make it transfer large mail.</p><p>If you want to make it allow to transfer mail which size is less than 100Mb, just change &#039;message_size_limit&#039; setting:<br /></p><div class="codebox"><pre><code># ---- Run below command in terminal ----
# postconf -e message_size_limit=&#039;104857600&#039;

# ---- Restart postfix to make it work ----
# /etc/init.d/postfix restart</code></pre></div><p>Note:<br /></p><ul><li><p>104857600 is equal to 100MB x 1024 KB x 1024 Bit.</p></li><li><p>Normally, mail will be encoded before transferred, so the actual mail size will be larger than 100MB, you can simplily increase to 110Mb or 120Mb to make it work as expected.</p></li></ul><p>=============<br />If you use mail clients such as Outlook, thunderbird to fetch/send mails, it&#039;s enough to sent large attachments in mail.<br />If your users will use webmail as mail client, you have to change two more settings:</p><h5>Change PHP setting to allow to upload large attachment</h5><p>You should change &#039;memory_limit&#039;, &#039;upload_max_filesize&#039; and &#039;post_max_size&#039; in <strong>/etc/php.ini</strong> (RHEL/CentOS) or <strong>/etc/php5/apache2/php.ini</strong> (Debian/Ubuntu).<br /></p><div class="codebox"><pre><code>memory_limit = 200M;
upload_max_filesize = 100M;
post_max_size = 100M;</code></pre></div><h5>Change Roundcube webmail to allow to upload large attachment</h5><p>Change same settings in <strong>.htaccess</strong> which under roundcube root directory, it&#039;s <strong>/var/www/roundcube/</strong> (RHEL/CentOS)&nbsp; or <strong>/usr/share/apache2/roundcube/</strong> (Debian/Ubuntu) by default.<br /></p><div class="codebox"><pre><code>php_value    upload_max_filesize    100M
php_value    post_max_size    100M</code></pre></div><h5>Restart apache web server</h5><div class="codebox"><pre><code># ---- For RHEL/CentOS users ----
# /etc/init.d/httpd restart

# ---- For Debian/Ubuntu users ----
# /etc/init.d/apache2 restart</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 03 Dec 2009 08:20:18 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post1987.html#p1987</guid>
		</item>
	</channel>
</rss>
