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
    Code:
    ERROR:
    Could not move/copy file. File not attached 
    Everything else re: emails works fine.

    Anyone had similar problems?

    Thanks
     
  2. concept21

    concept21 Active 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.

    :confused:
     
  4. concept21

    concept21 Active 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 Active 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

    [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/compose.php?mailbox=INBOX&startMessage=1

    I found the solution here.
    http://www.howtoforge.com/forums/archive/index.php/t-55043.html

    and its fixed. ;)
     
    Last edited: Nov 11, 2012
  8. concept21

    concept21 Active Member

    Happy Ending :)
     

Share This Page