LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-30-2003, 11:02 AM   #1
mcm77
LQ Newbie
 
Registered: May 2003
Location: Massachusetts
Distribution: Red Hat
Posts: 5

Rep: Reputation: 0
Squirrelmail- more attachment troubles


Squirrelmail has reduced me tt newbie status- (this project seemed like a good idea when I started).
RH 7.1, SM 1.4.0, uw Imap 2001A- login in is fine, mail reading and sending is fine as long as there are no attachments. Mail with attachments sits in the INBOX with the attachment still imbedded in the email- supposing the attachment is an image file, I can see the image with most browsers, but some browsers download the image successfully and some do not. Small text attachments show up as simply text at the end of the email, not seperate files-

My questions is when are attachments supposed to be stripped from the body of the message and stored seperately in whatever directory I have specified in the configure script?

I have tried "/usr/share/squirrelmail/attachments", "/var/spool/squirrelmail/attach". I even tried "/usr/share/squirrelmail/prefs" since I know apache and php successfully read and right there- I have changed owners of those directories to "apache", I have tried all sorts of rights assignements, including 777- yet attachments still stay imbedded in the body of the email- why do we set this directory up if Squirrel doesn't strip off the attachment? My assumption is that if they got stripped off, the Mozilla browser (which I have switched most of my users to) would be better able to download the attachments--

thanks to all-
 
Old 05-30-2003, 01:11 PM   #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
Yep - they're in the email itself, mime-encoded. If some browsers can see and some don't then it's a good chance that it's getting funky mime tags from your apache setup or it's happening on the client side...

Have a look at your /etc/apache/mime.types and your httpd.conf AddTypes directives.
 
Old 05-30-2003, 10:28 PM   #3
mcm77
LQ Newbie
 
Registered: May 2003
Location: Massachusetts
Distribution: Red Hat
Posts: 5

Original Poster
Rep: Reputation: 0
ok- that makes sense and is consistent with the convential POP/IMAP systems I currently run. So what does SM do with the "attachments" directory?

As I see it, once the browser seperates it from the body, the user can either view or download to a directory of the user's choice and thus there is no time that that directory is required.

I believe I am also hosed- I have just painfully switched my users to Mozilla- and it of course is the browser that is haveing the most difficulty-

thanks the the help and patience- mcm
 
Old 05-30-2003, 10:47 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
Step 1: Don't Panic

I don't think you're hosed at all. The "attachments" directory is purely a temporary store for uploaded files.

A user starts a 'compose' session.
User decides to attach a file.
User browsers their local file system for the file.
User "Add"s the file, which goes to the "attachment" directory.
User does some more typing and add some ":-)".
User presses the "Send" button.

When the user presses the send button the attachment is mime'd into the message itself, after the body content. After this is accomplished a SquirrelMail process should delete the attachment from the temporary store. If something crashes in the process (unsure of what conditions can actually cause this) attachments can be abandoned in the temp store.

If you're using IMAP the users can leave their mesages in the INBOX (which in sendmail/postfix + UW-IMAP) will be located in the /var/spool/mail/<username> file. When a user moves the file (either by deleting it or moving it to an IMAP folder) it will go to a local file in the user's home directory.

In short: Squirrelmail's 'attachment' directory is only ever touched by userland while uploading an attachment. That is the last time any user will touch that file.

You may want to investigate the mime issues a little further. 'httpd -l' lists the modules built into your httpd binary. Make sure you're loading the proper modules and that you have your mime.types in order and your php type statements (in your httpd.conf) setup as per the SquirrelMail installation directives.

Last edited by mcleodnine; 05-30-2003 at 10:52 PM.
 
Old 05-30-2003, 10:56 PM   #5
mcm77
LQ Newbie
 
Registered: May 2003
Location: Massachusetts
Distribution: Red Hat
Posts: 5

Original Poster
Rep: Reputation: 0
THANK YOU-- with a proper road map the hunting is so much easier- mcm
 
  


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
Postfix, Dovecot, SquirrelMail Troubles?! simonsez711 Linux - Software 14 07-22-2005 03:32 PM
Mail Attachment size hinetvenkat Linux - Security 3 12-26-2004 09:05 AM
Attachment size in Sendmail RajaRC Linux - General 6 03-23-2004 12:05 AM
mail with attachment joseph Linux - Networking 1 08-31-2003 11:01 PM
sending an attachment Sathe Linux - General 1 12-02-2001 04:39 PM


All times are GMT -5. The time now is 06:37 PM.

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