Squirrelmail file attachment error

Discussion in 'General' started by John Ford, Nov 9, 2012.

  1. John Ford

    John Ford New Member

    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?

  2. concept21

    concept21 Member

    file size too big???
  3. John Ford

    John Ford New Member

    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.

  4. concept21

    concept21 Member

    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.
  5. John Ford

    John Ford New Member

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

    concept21 Member

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

    John Ford New Member


    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. ;)
    Last edited: Nov 11, 2012
  8. concept21

    concept21 Member

    Happy Ending :)

Share This Page