LinuxQuestions.org
Visit Jeremy's Blog.
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 03-26-2003, 10:58 PM   #1
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
Unhappy Squirrelmail Attachments corrupt


Help!... I'm a relative newbie with Squirrelmail. I'm running with RH 8.0. If I use the Squirrelmail web interface and attach a very simple text document and send it to another email account it seems to get there with no problems e.g

text.txt contains:

This is a simple test!

When I receive the email and open text.txt I can see the same text.

If I get a little more sophisticated and attach an image (image.png), then when I receive it on another email account it appears that the image has been corrupted. By corrupted I mean that the image is nolonger the same size and none of my graphical packages can open the file (it was OK before it was sent).

I am using courier-imap and qmail. If I use Mozilla or Netscape to send the image (rather than Squirrelmail) then it transfers fine, so it appears that this is just a php problem with squirrelmail?

I'd be extremely gratful if somebody could point me in the right direction???

Thankyou.

Hube
 
Old 03-27-2003, 03:32 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
Has the filesize of the attached image changed?
 
Old 03-27-2003, 07:39 AM   #3
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Yes, it has gotten larger. To me that implies that the contents are either being replicated or extra characters are being injected. I've not managed too find anything else similar to this but a friend of mine also has the same problem so I know this isn't unique to me (which wouldn't be a first!)

Thanks.

Hube
 
Old 03-27-2003, 07:41 AM   #4
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
fwiw, package version in squirrelmail-1.2.10-1
 
Old 03-27-2003, 08:25 AM   #5
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
I've been using SquirrelMail/Postfix/UW-IMAP for well over a year now and have never seen a problem like this so I don't think SM is suspect.

This morning I am in the middle of a qmail/courier/squirrelmail/LDAP(if I can get it figured out) setup so I'll see if I get the same results as you.
 
Old 03-27-2003, 08:37 AM   #6
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
That's good to hear. I have docs (rough notes) that I wrote if you need some help? I think the problem is with squirrelmail or courier-imap as I can send messages straight to qmail (smtp) from Mozilla or Netscape and they get there OK.

I'd be interested to hear what you find?
 
Old 03-27-2003, 08:44 AM   #7
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
Ahhh.... ok.

Which IMAP server did you specify in your SquirrelMail config (run the SqurrelMail configure script, select option 2 'Server Settings')

Do all attachments get mangled? What happens if you change the extension of the attachment or delete the extension and then send it?
 
Old 03-27-2003, 09:09 AM   #8
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
The imap server is set to courier, I just double checked in the /etc/squirrelmail/config.php file.

If I strip the extension off a file and send it, it still gets mangled (it looks to be almost double the size!? (but not exactly)). If I send a very basic text string it looks to be OK, but a longer plain text file also gets corrupted. If I do a file comparison, it's taking blocks of the original text file and replicating them (looks to be random)!
 
Old 03-27-2003, 09:27 AM   #9
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
OK.... let's try and trace this out.

Compose a new message, add an attachment, but don't send it. After you have added the atty it should live in the $data directory and will remain there until the message is sent. Go there and see if the file you uploaded has changed in any form.
 
Old 03-27-2003, 11:02 AM   #10
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
OK... sorry for the delay had to pop out for a minute...

I upload the document to the email but didn't send the email, I then move in to /var/spool/squirrelmail/attach and do a long listing: ls -lart, I see that the timestamp on the file is approximately the same as the point when I uploaded the file so I believe I am looking at the uploaded file. I then ftp the original file to the same location and look at the respective file sizes, once again the uploaded file is corrupted. I also did a comparison and see that the it's corrupted in a simlar fashion to what I reported above.

So my conclusion is that the uploading of the file using squirrelmail causes the corruption. Do you have any thoughts?

I really appreciate you help. Thank you

Hube
 
Old 03-27-2003, 12:04 PM   #11
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
Getting stumped here...
 
Old 03-27-2003, 01:07 PM   #12
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Yeah me to... Generally I can work out these things but this time I'm bashing my head against a brick wall... and it hurts!

Wondering if any of the squirrelmail folks read these posts?

The fact that I'm not alone since a friend who uses sendmail, UW-imap and the same version of squirrelmail is seeing the same problem makes me curious why others have not seen the same issue. I did see a post regarding plugins. I wonder if the existance of a plugin is causing issues, guess I should remove all plugins, try again and then add them back in one by one?

Thoughts?
 
Old 03-27-2003, 01:30 PM   #13
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
Is your friend also running his setup on RH8.0?

I've run this setup on SuSE 7.3/8.1, Slackware 8.1, debian 3.0.1 with no problems...
 
Old 03-27-2003, 01:49 PM   #14
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Unhappy

Yes RH 8.0, with the standard RH install, however, they also provided an upgrade to the version I mentioned above based on I believe a security issue.

I don't find anything useful by doing a google search

I think something in the php file may be responsible. Do you know what version you have installed with Debian?
 
Old 03-27-2003, 02:18 PM   #15
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
Running SM 1.2.10, php 4.3.1, apache 1.3.27.

Check your httpd.conf file to make sure you're handling php/php3 extensions properly.

(Quickly running out of things to blame!)
 
  


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
email attachments rhb327 Linux - Software 2 11-13-2004 10:08 AM
Attachments in Evolution zenix Linux - Software 2 09-24-2003 08:50 PM
Sendmail and attachments Satriani Linux - Software 2 04-27-2003 01:09 PM
Squirrelmail attachments mail55127 Linux - Software 3 03-12-2003 03:37 PM
squirrelmail : cannot add attachments ilya Linux - Software 3 02-03-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:35 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