{"id":12327,"date":"2021-11-06T11:54:38","date_gmt":"2021-11-06T11:54:38","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=12327"},"modified":"2021-11-08T05:02:04","modified_gmt":"2021-11-08T05:02:04","slug":"set-limit-attachment-size-roundcube-plesk-server","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/","title":{"rendered":"How to Set Limit to Attachment Size for Roundcube on Plesk Server?"},"content":{"rendered":"<p>Altering the maximum size for the attachment is necessary if you can&#8217;t send any attached documents via email. Plesk admins can\u00a0set a memory limit to the attachment size for their Webmail accounts for Roundcube.<\/p>\n<h2>To Set Limit to Attachment Size<\/h2>\n<p>1. Connect to your Linux server via SSH.<\/p>\n<p>2. Edit the directory\u00a0<em>\/etc\/psa-webmail\/roundcube\/php.ini<\/em> and enter these\u00a0settings:<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \">upload_max_filesize = 100M\r\npost_max_size = 100M<\/pre>\n<p>3. Open the <em>\/usr\/share\/psa-roundcube\/config\/config.inc.php<\/em> file.<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \">$config['max_message_size'] = '133M';<\/pre>\n<p>&nbsp;<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-key kb-wisdom-wrapr-green\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note<\/strong>: The value you mention here should be <strong>33%<\/strong> higher than the value you set as the limit.<\/p>\n<\/div>\n<\/div>\n<p>Moving on, these changes should reflect on all domains. It is why you have to modify the templates.<\/p>\n<p>4. Create a new directory for the custom templates for webmail:<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \"># mkdir -p \/usr\/local\/psa\/admin\/conf\/templates\/custom\/webmail<\/pre>\n<p>5. Enter\/copy this template to the directory:<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \"># cp \/usr\/local\/psa\/admin\/conf\/templates\/default\/webmail\/roundcube.php\r\n\/usr\/local\/psa\/admin\/conf\/templates\/custom\/webmail\/<\/pre>\n<p>6. Edit the <strong>FcgidMaxRequestLen<\/strong> directive in the custom template with the value specified in Bytes. (For example: 256MB= 268435456 Bytes)<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \"># sed -i '\/FcgidMaxRequestLen\/c\\FcgidMaxRequestLen 268435456'\r\n\/usr\/local\/psa\/admin\/conf\/templates\/custom\/webmail\/roundcube.php<\/pre>\n<p>To finish things off, apply these changes within the template of all webmail accounts.<\/p>\n<p>7. Run the command:<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \"># plesk repair web -server<\/pre>\n<p>With this, you can easily set a memory limit to the attachment size for all Webmail accounts for Roundcube.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Altering the maximum size for the attachment is necessary if you can&#8217;t send any attached documents via email. Plesk admins can\u00a0set a memory limit to the attachment size for their Webmail accounts for Roundcube. To Set Limit to Attachment Size 1. Connect to your Linux server via SSH. 2. Edit the directory\u00a0\/etc\/psa-webmail\/roundcube\/php.ini and enter these\u00a0settings: [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,41,10],"tags":[2669,2670,2668,853,794,806,2089],"class_list":["post-12327","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-email-issues","category-howtos","category-plesk-faq","tag-change-maximum-attachment-size","tag-email-attachments","tag-limit-attachment-size-roundcube-plesk","tag-linux-server","tag-php-settings-in-plesk","tag-plesk-server","tag-roundcube"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Limit to Attachment Size for Roundcube on Plesk Server?<\/title>\n<meta name=\"description\" content=\"Plesk server admins can set the memory limit in the PHP settings and change the maximum attachment size for Roundcube Webmail accounts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Limit to Attachment Size for Roundcube on Plesk Server?\" \/>\n<meta property=\"og:description\" content=\"Plesk server admins can set the memory limit in the PHP settings and change the maximum attachment size for Roundcube Webmail accounts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-06T11:54:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-08T05:02:04+00:00\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/\",\"name\":\"How to Set Limit to Attachment Size for Roundcube on Plesk Server?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2021-11-06T11:54:38+00:00\",\"dateModified\":\"2021-11-08T05:02:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"Plesk server admins can set the memory limit in the PHP settings and change the maximum attachment size for Roundcube Webmail accounts.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Limit to Attachment Size for Roundcube on Plesk Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Limit to Attachment Size for Roundcube on Plesk Server?","description":"Plesk server admins can set the memory limit in the PHP settings and change the maximum attachment size for Roundcube Webmail accounts.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/","og_locale":"en_GB","og_type":"article","og_title":"How to Set Limit to Attachment Size for Roundcube on Plesk Server?","og_description":"Plesk server admins can set the memory limit in the PHP settings and change the maximum attachment size for Roundcube Webmail accounts.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-11-06T11:54:38+00:00","article_modified_time":"2021-11-08T05:02:04+00:00","author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/","name":"How to Set Limit to Attachment Size for Roundcube on Plesk Server?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2021-11-06T11:54:38+00:00","dateModified":"2021-11-08T05:02:04+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"Plesk server admins can set the memory limit in the PHP settings and change the maximum attachment size for Roundcube Webmail accounts.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/set-limit-attachment-size-roundcube-plesk-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Set Limit to Attachment Size for Roundcube on Plesk Server?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":322,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=12327"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12327\/revisions"}],"predecessor-version":[{"id":12329,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12327\/revisions\/12329"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=12327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=12327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=12327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}