Sunday, 25 August 2013

Squirrelmail Could not move/copy file. File not attached


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)


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.


I not remember now if Squirrelmail installation has been done trough ports, packages or just rsync while relocating server...
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?


Config file is located here:

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)


0 komentářů:

Post a Comment