{"id":16813,"date":"2024-05-21T16:06:29","date_gmt":"2024-05-21T16:06:29","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/how-to-set-limit-to-attachment-size-for-horde-on-plesk-server\/"},"modified":"2024-06-17T03:24:24","modified_gmt":"2024-06-17T03:24:24","slug":"how-to-set-limit-to-attachment-size-for-horde-on-plesk-server","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/how-to-set-limit-to-attachment-size-for-horde-on-plesk-server\/","title":{"rendered":"How to Set Limit to Attachment Size for Horde on Plesk Server?"},"content":{"rendered":"\n<p>If you are unable to transmit any attached documents by email, you must adjust the maximum attachment size for your email accounts. Horde Webmail account administrators have the ability to modify and impose a memory limit on the size of attachments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">To Set Limit to Attachment Size<\/h2>\n\n\n\n<p>1. Connect to your Linux server via SSH.<\/p>\n\n\n\n<p>2. Edit the directory&nbsp;<em>\/etc\/psa-webmail\/horde\/horde\/php.ini<\/em>&nbsp;and enter these&nbsp;settings:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">upload_max_filesize = 256M\npost_max_size = 256M<\/pre>\n\n\n\n<p>3. Next is modifying the&nbsp;<strong>attach_size_limit<\/strong>&nbsp;value at the&nbsp;<em>\/etc\/psa-webmail\/horde\/imp\/conf.php<\/em>&nbsp;file&nbsp;of Horde.&nbsp;In case you do not want to cap the limit(set it as unlimited), the limit should be \u201c<strong>0<\/strong>\u201c.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">grep attach_size_limit \/etc\/psa-webmail\/horde\/imp\/conf.php $conf['compose']['attach_size_limit'] = 0;<\/pre>\n\n\n\n<p><strong>Note<\/strong>: If your requirement is specific, you can set exact values for the attachment size.<\/p>\n\n\n\n<p>Moving on, these changes should reflect on all domains. It is why you have to modify the templates.<\/p>\n\n\n\n<p>4. Create a new directory for the custom templates for webmail:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># mkdir -p \/usr\/local\/psa\/admin\/conf\/templates\/custom\/webmail<\/pre>\n\n\n\n<p>5. Enter\/copy this template to the directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cp \/usr\/local\/psa\/admin\/conf\/templates\/default\/webmail\/horde.php\n\/usr\/local\/psa\/admin\/conf\/templates\/custom\/webmail\/<\/pre>\n\n\n\n<p>6. Edit the&nbsp;<strong>FcgidMaxRequestLen<\/strong>&nbsp;directive in the custom template with the value specified in Bytes. (For example: 256MB= 268435456 Bytes)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># sed -i '\/FcgidMaxRequestLen\/c\\FcgidMaxRequestLen 268435456'\n\/usr\/local\/psa\/admin\/conf\/templates\/custom\/webmail\/horde.php<\/pre>\n\n\n\n<p>To finish things off, apply these changes within the template of all webmail accounts.<\/p>\n\n\n\n<p>7. Run the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># plesk repair web -server<\/pre>\n\n\n\n<p>With this, you can easily set a memory limit to the attachment size for all Webmail accounts for Horde.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are unable to transmit any attached documents by email, you must adjust the maximum attachment size for your email accounts. Horde Webmail account administrators have the ability to modify and impose a memory limit on the size of attachments. To Set Limit to Attachment Size 1. Connect to your Linux server via SSH. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":453,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-16813","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/16813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=16813"}],"version-history":[{"count":1,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/16813\/revisions"}],"predecessor-version":[{"id":16814,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/16813\/revisions\/16814"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=16813"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=16813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}