This tutorial is going to cover how to fix the attachments settings for squirrelmail (as well as how to fix attachments if they have been broken by installing a nutsmail skin). If you are getting an error that is similar to (could not copy/move file… file not attached) this tutorial will show you how to fix this.
Ok so first things first, you will most likely need to connect to your server via ssh in order to locate your installation of squirrelmail. If you are not familiar with ssh please see our post about connecting to your server via ssh.
All right so step one is to open up putty and log into your server. Once you do this navigate to your squirrelmail installation (this is typically located at /usr/local/cpanel/base/3rdparty/squirrelmail/)
Once you do this you will need to find your config.php and config_local.php files. Download a copy of these files to your computer and open them up in notepad or Dreamweaver.
Now in the config_local.php file navigate to the line that has the following snippet of code ($attachment_dir) this is typically line 44 or 45. In order for your attachments to function properly you need to change the line of code to the following:
$attachment_dir = $data_dir;
After that simply save your file and upload to your server. If you are not familiar with how to upload files to your squirrelmail directory I would recommend just uploading them to the www folder and then moving them to your squirrelmail directory (which automatically overwrites the old file) with the following command:
mv config_local.php /usr/local/cpanel/base/3rdparty/squirrelmail/config/
That is it, your attachments should now be functioning correctly, as always if you have any questions feel free to drop us a comment below and a member of our team will be sure to get back to you.
Leave a reply