The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SquirrelMail Error - Could not move/copy file. File not attached

Discussion in 'E-mail Discussions' started by smile, Oct 2, 2004.

  1. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I'm running SQMail 1.4.3a on my servers and recently the squirrelmail started giving me the following error whenever I try to attach anything while composing the mail :

    Could not move/copy file. File not attached error in squirrelmail

    I tried easy apache but it stll doesn't works. Can some one please help.
     
    #1 smile, Oct 2, 2004
    Last edited: Oct 3, 2004
  2. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    Can anyone help ??
     
  3. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    increase file upload size at php.ini; restart apache and try
     
  4. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    Tried that..still the problem is same :(
     
  5. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    then it must be a permission error. On what file; is that affected; you need to dig the log files.
     
  6. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    From what i read Squirrelmail uses /tmp as the attachment folder and it has already got the 777 permissions.

    Can you give me some idea about the folder which squirrelmail uses for the attachment uploads.
     
  7. Norman

    Norman Well-Known Member

    Joined:
    Sep 20, 2004
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    I don't usually use squirrel mail.. but could look into this for your..

    What is the size of the attachement you are trying to upload? If I know this i can try to (as well as others) reproduce the error on my server and see if it may be a problem ....
     
  8. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I have increased the limit of the file uploads in php.ini to 5 MB and the attachment i am trying to upload is 10 kb. Even if i try to upload an attachment of 1 kb in size it would give me the same error.

    On the contrary file uploads are working on the server and when my users try horde they are able to attach the attachments without any problem. It only seems to appear with Squirrelmail.
     
  9. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    this is the attachment directory for squirrelmail:

    drwx------ 2 apache apache 4096 Jun 7 05:12 /var/spool/squirrelmail/attach//

    above is a copy from one of our client server. is it the same for you ?
     
  10. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    I can't find var/spool/squirrelmail/attach/ in my CPANEL server...according to my understanding this directory generally exist when you do an install of Squirrelmail on a clean RH server...but with the Cpanel the squirrelmailmail comes shipped and works on a different directory.

    I may be wrong coz I'm still learning...however the problem remains the same.
     
  11. Norman

    Norman Well-Known Member

    Joined:
    Sep 20, 2004
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6

    I have that directory oever here.. RHE-3.. My server was new.. and cpanel installed everything I assume.. it came with cpanel installe.d. :)
     
  12. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    i think this is the folder you want to check the permisions on:

    /usr/local/cpanel/base/3rdparty/squirrelmail/data/
     
  13. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    Wow..thats the directory which needed some tweak..I gave 777 permissions to this and it works. Last thing I'd like to know is if its safe to assign 777 permissions to this dir.

    Thanks to all you guys..you all are amazing :)
     
  14. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    Ooops..mine is RH9 :)
     
  15. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I also had a user experiencing this problem today and it was resolved by changing the permissions on the directory mentioned above. Thanks for posting the solution!!
     
  16. Servia

    Servia Active Member

    Joined:
    Jan 20, 2004
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Finland
    chmod 777 /usr/local/cpanel/base/3rdparty/squirrelmail/data/ worked for me too..

    Thanks for the advice! :)
     
  17. mvargassv

    mvargassv Registered

    Joined:
    Dec 19, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Attach files with SquirrelMail

    As a security measure we also create a directory for temporary data (files attached) that
    only access the web server. Need to know the usr / group that runs under our server. Again,
    can be found in the / etc / httpd / httpd.conf. We find lines like

    User wwwrun (Example)
    Group nogroup (Example)

    Now you must create the following folder:

    #) mkdir -p /var/lib/squirrelmail/attach

    Now you have to change the permissions of the directories created. Assuming the user and group the previous example:

    #) chmod 730 /var/lib/squirrelmail/attach
    #) chown -R wwwrun /var/lib/squirrelmail
    #) chgrp -R nogroup /var/lib/squirrelmail

    This way you'll have your mail server perfectly attaching files
     
Loading...

Share This Page