HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Squirrelmail file attachment error (http://www.howtoforge.com/forums/showthread.php?t=59485)

John Ford 9th November 2012 18:19

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

ERROR:
Could not move/copy file. File not attached

Everything else re: emails works fine.

Anyone had similar problems?

Thanks

concept21 9th November 2012 20:44

file size too big???

John Ford 10th November 2012 14: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.

:confused:

concept21 10th November 2012 19: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 10th November 2012 23: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 20:38

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

John Ford 11th November 2012 22:52

[solved]
 
I found this in the apache2 error logs.

[Sun Nov 11 15:27:16 2012] [error] [client 192.168.1.101] 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: http://192.168.1.105/webmail/src/com...startMessage=1

I found the solution here.
http://www.howtoforge.com/forums/arc...p/t-55043.html

and its fixed. ;)

concept21 13th November 2012 16:52

Happy Ending :)


All times are GMT +2. The time now is 21:49.

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