How to Set Attachment Size Limit for Horde Webmail on a Plesk Server

May 2, 2025 / Plesk

If sending emails with attachments from Horde Webmail isn’t working for you, you might need to raise the attachment size limit. These restrictions can be set by Plesk admins by changing a few important files and templates.

Steps to Set Attachment Size Limit:

  1. Access your Linux server via SSH.
  2. Update PHP Configuration for Horde:
    1. Edit the php.ini file for Horde:
      nano /etc/psa-webmail/horde/horde/php.ini
    2. Add or update the following values:
      upload_max_filesize = 256M
      post_max_size = 256M
  3. Modify Horde’s Attachment Limit:
    1. Edit the Horde configuration file to adjust or remove the attachment size limit:
      nano /etc/psa-webmail/horde/imp/conf.php
    2. To set no limit:
      $conf[‘compose’][‘attach_size_limit’] = 0;

      Note: You can replace 0 with a specific limit in bytes if needed.

  4. Set up a directory for custom webmail templates, using the following command:
    # mkdir -p /usr/local/psa/admin/conf/templates/custom/webmail
  5. Copy the default Horde template to your custom directory:
    # cp /usr/local/psa/admin/conf/templates/default/webmail/horde.php /usr/local/psa/admin/conf/templates/custom/webmail/
  6. In the custom template, update the FcgidMaxRequestLen directive with the value given in Bytes. (For instance, 256MB is equal to 268435456 bytes.)
    # sed -i '/FcgidMaxRequestLen/c\FcgidMaxRequestLen 268435456'
    /usr/local/psa/admin/conf/templates/custom/webmail/horde.php
  7. Apply the Changes.
  8. Apply the updated configuration across all webmail templates by running the subsequent command:
    plesk repair web -server

Your Horde Webmail on the Plesk server will now support the new attachment size limit across all domains. For the latest web hosting plans, visit our website regularly.

Want more control over attachments? How to limit attachment size on horde in Plesk/a>

Spread the love