LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2003, 11:29 PM   #1
ilya
LQ Newbie
 
Registered: Feb 2002
Location: SF, CA
Distribution: redhat,debian
Posts: 4

Rep: Reputation: 0
squirrelmail : cannot add attachments


Hello there,

I am running squirrelmail-1.2.10-1 on RedHat 7.3 with php-4.1.2-7. Squirrelmail works fine except I cannot seem to add attachments. Get the error:
Could not move/copy file. File not attached

Nothing interesting in http logs...

Any pointers would be welcome as I think I've exhausted google et. al.
Thanks in advance!

Here's some info:

[root@calendar config]# grep attach config.php
$attachment_dir = "/var/lib/squirrelmail/attach/";

[root@calendar config]# ls -al /var/lib/squirrelmail
...
drwxr-xr-x 2 apache apache 4096 Feb 1 15:45 attach

[root@calendar config]# ps -ef | grep http
root 31933 1 0 19:11 ? 00:00:00 /usr/sbin/httpd -DHAVE_ACCESS -D
apache 31936 31933 0 19:11 ? 00:00:06 /usr/sbin/httpd -DHAVE_ACCESS -D

[root@calendar config]# grep upload /etc/php.ini
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
upload_tmp_dir = /var/lib/squirrelmail/attach
; Maximum allowed size for uploaded files.
upload_max_filesize = 5M
 
Old 02-03-2003, 08:10 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Hmmm. Wierd.

All I can come up with is this blurb from the configure script.
Code:
Path to directory used for storing attachments while a mail is
being sent.  There are a few security considerations regarding this
directory:
  1.  It should have the permission 733 (rwx-wx-wx) to make it
      impossible for a random person with access to the webserver
      to list files in this directory.  Confidential data might
      be laying around in there.
  2.  Since the webserver is not able to list the files in the
      content is also impossible for the webserver to delete files
      lying around there for too long.
  3.  It should probably be another directory than the data
      directory specified in option 3.
But my data dir shows up as same owner as apache user and drwx --- --- for permissions.

And the upload_tmp_dir is commented out in my php.ini.

Last edited by mcleodnine; 02-03-2003 at 08:11 AM.
 
Old 02-03-2003, 03:15 PM   #3
ilya
LQ Newbie
 
Registered: Feb 2002
Location: SF, CA
Distribution: redhat,debian
Posts: 4

Original Poster
Rep: Reputation: 0
yep - weird :)

thanks for the tip!
i verified that it is not permissions or PUT restrictions by placing a cgi into the src dir and doing an http upload via the cgi to the attach directory - to me that says permissions are ok and webserver is allowing http uploads.
now i am struggling to find a way to debug the php code- i am mostly clueless about php...
oh what fun
 
Old 02-03-2003, 03:41 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Befor debugging the php in squirrelmail you might want to try and get the previous version and see if you have the same problem. I've been running 1.2.9 for quite some time and testing 1.2.10 for about 2 weeks now with no real problems.

Also look to see if you have any mysterious .htaccess files kicking around...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
evolution and attachments iamnotherbert Linux - Software 2 12-02-2004 11:46 AM
email attachments rhb327 Linux - Software 2 11-13-2004 10:08 AM
Squirrelmail Attachments corrupt Hube Linux - Software 23 08-10-2003 07:57 PM
how to add user in squirrelmail? alen Linux - Software 5 06-20-2003 03:14 PM
Squirrelmail attachments mail55127 Linux - Software 3 03-12-2003 03:37 PM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration