advert

Sunday, 25 August 2013

Squirrelmail Could not move/copy file. File not attached


System:

FreeBSD 8.4-RC3
hw.machine: amd64; hw.ncpu: 2
CPU: Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz (1800.01-MHz K8-class CPU)
real memory  = 2147483648 (2048 MB)

Introduction:

SquirrelMail is a PHP based webmail and include support for IMAP and SMTP protocols. Pages are rendering without needed JavaScript so that mean high compatibility with any browser.

Problem:

I not remember now if Squirrelmail installation has been done trough ports, packages or just rsync while relocating server...
anyway
While using Squirrelmail 1.4 problem appeared with attachments which has been lost while the e-mail body has been delivered correctly. After keeping eyes on adding attachments there appeared on top of page message:
"Could not move/copy file. File not attached."
So what next?

Solution:


Config file is located here:
/usr/local/www/squirrelmail/config/config.php


There is line with attachment directory settings:
$attachment_dir = '/var/spool/squirrelmail/attach/';

In my case this directory was not exist so that was the problem.

Now solving it is easy:

1. create directory
mkdir /var/spool/squirrelmail/attach/

2. change permissions
chown www:www /var/spool/squirrelmail/attach/


Happy Squirrell Mailing :o)

References:
http://www.morpheushosting.sk/squirrelmail-could-not-movecopy-file-file-not-attached/