HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   General (
-   -   Squirrelmail file attachment error (

John Ford 9th November 2012 19:19

Squirrelmail file attachment error
Using Ubuntu 11.04 perfect install and squirrelmail throws a

Could not move/copy file. File not attached

Everything else re: emails works fine.

Anyone had similar problems?


concept21 9th November 2012 21:44

file size too big???

John Ford 10th November 2012 15:21

That was my first thought but the file size is only 20K.

I was thinking it has something to do with permissions. I tried chmod 777 on the attachment folder of squirrelmail but that didn't work either.


concept21 10th November 2012 20:36

I just tested on my Ubuntu 10.04 ispconfig 3.046, I could attached a 2 MB pdf file and sent it out correctly.

I suggest you check the squirrelmail log at /var/log/mail.log and see what happened.

John Ford 11th November 2012 00:03

The mail.log doesn't say much except for connects and disconnects of pop3d
and imapd and postfix/smtpd lost connection from localhost

concept21 11th November 2012 21:38

that means you should check other log files like www, suphp, suexec etc if I were you.

John Ford 11th November 2012 23:52

I found this in the apache2 error logs.

[Sun Nov 11 15:27:16 2012] [error] [client] PHP Warning: file_exists(): Fopen_basedir restriction in effect.File(/var/spool/squirrelmail/attach/kGbuxfcRnU3vd6VeCMuI1CzkqLzYJM2Q) is not within the allowed path(s): (/usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname) in /usr/share/squirrelmail/src/compose.php on line 1464, referer:

I found the solution here.

and its fixed. ;)

concept21 13th November 2012 17:52

Happy Ending :)

All times are GMT +2. The time now is 08:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.