Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Jan 18, 2017 7:45 pm


MTA, MUA, Qmail, Exchange, Exim, Postfix, Sendmail, Courier, Mirapoint, Vpopmail, pop3, smtp, imap

Author Message
LaR3
  Post  Post subject: Squirrelmail attachments error "Could not move/copy file. File not attached"  |  Posted: Tue Sep 01, 2009 3:32 pm

Joined: Mon Aug 03, 2009 4:55 pm
Posts: 19

Offline
 

Squirrelmail attachments error "Could not move/copy file. File not attached"

If you get this errors in Squirrelmail "Could not move/copy file. File not attached" when trying to attach a file, it is not the php.ini upload_tmp_dir setting, but the attachment.

Check this directory and, if doesn't exist, create it with proper permissions (usually apache's user & group)/
Go to squirrelmail configuration (execute config/conf.pl script) and choose option 4 - Generatl Options:
Code:
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color on
S   Save data
Q   Quit

Command >> 4

In the following scree check the 2nd option (Attachment Directory):
Code:
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1.  Data Directory               : /var/local/squirrelmail/data/
2.  Attachment Directory         : /var/local/squirrelmail/attach/
3.  Directory Hash Level         : 0
4.  Default Left Size            : 150
5.  Usernames in Lowercase       : false
6.  Allow use of priority        : true
7.  Hide SM attributions         : false
8.  Allow use of receipts        : true
9.  Allow editing of identity    : true
    Allow editing of name        : true
    Remove username from header  : false
10. Allow server thread sort     : false
11. Allow server-side sorting    : false
12. Allow server charset search  : true
13. Enable UID support           : true
14. PHP session name             : SQMSESSID
15. Location base                :
16. Only secure cookies if poss. : true

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >>

For me, this directory didn't exist (stupid me).
Code:
# mkdir /var/local/squirrelmail/attach/
# chown nobody.nogroup /var/local/squirrelmail/attach/


Now it works (or it should be). If still there's an error, check that php.ini has uploads enabled (file_uploads = On).

_________________
Humble user
http://www.ivorde.ro





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Squirrelmail attachments error "Could not move/copy file. File not attached""
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Squirrelmail: increase the size of compose textarea - How to

LaR3

0

323

Fri Sep 04, 2009 4:53 am

LaR3 View the latest post

 

Who is online
Users browsing this forum: No registered users and 1 guest
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO