Squirrelmail Error: Could not move/copy file. File not attached
Issue:
Recently,
I got a complaint from a customer that they are not being able to attach any
file from webmail. However, it is working from email client software like
Microsoft Outlook. The error message from webmail shows like below while
attaching any file.
“Could not move/copy file. File
not attached”
Solution:
I
solved the problem by following below steps.
Check
the web directory for the webmail and find out the attachment directory.
Step 1: Move to the configure
directory.
root@mail:cd
/var/www/html/webmail/config
Step 2: Run config.pl to check the
attachment directory.
root@mail:/var/www/html/webmail/config#
./conf.pl
Choose
4 General Options.
Check
option 2 attachment directory. In that case, it is
/var/www/html/webmail/attach/
Exit
from the configuration mode by using ‘Q’.
I
checked and didn’t find any directory titled ‘attach’ under webmail directory.
For this reason, the file attachment is not working from webmail.
Step 3: Create attach directory.
root@mail:mkdir
/var/www/html/webmail/attach/
Step 4: After creating the attach
directory, the last thing to perform is to change the ownership of all the
files under webmail directory as below.
root@mail:chown
–R www-data:www-data /var/www/html/webmail/
Step 5: Restart apache service.
root@mail:/etc/init.d/apache2
restart
Now,
check email sending/receiving status by attaching files. All should be working
fine.
Comments
Post a Comment