LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squirrelmail Attachments corrupt (https://www.linuxquestions.org/questions/linux-software-2/squirrelmail-attachments-corrupt-51940/)

Hube 03-26-2003 09:58 PM

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:)

mcleodnine 03-27-2003 02:32 AM

Has the filesize of the attached image changed?

Hube 03-27-2003 06:39 AM

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

Hube 03-27-2003 06:41 AM

fwiw, package version in squirrelmail-1.2.10-1

mcleodnine 03-27-2003 07:25 AM

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.

Hube 03-27-2003 07:37 AM

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?

mcleodnine 03-27-2003 07:44 AM

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?

Hube 03-27-2003 08:09 AM

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)!

mcleodnine 03-27-2003 08:27 AM

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.

Hube 03-27-2003 10:02 AM

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

mcleodnine 03-27-2003 11:04 AM

Getting stumped here...

Hube 03-27-2003 12:07 PM

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?

mcleodnine 03-27-2003 12:30 PM

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...

Hube 03-27-2003 12:49 PM

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 :confused:

I think something in the php file may be responsible. Do you know what version you have installed with Debian?

mcleodnine 03-27-2003 01:18 PM

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!) :)


All times are GMT -5. The time now is 07:16 AM.