LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-06-2009, 09:19 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
imapd memory usage - zip attachment problem


I have mail server on slackware 12.2 sendmail and imapd. This is a home server so I used only 512MB memory.

Several days ago I started have troubles with downloading of zip compressed attachments (thunderbird configured for IMAP account).
I didn't find anything strange in logs.
The mailserver works. The problem is when I start downloading of attachment in zip it downloads several Kbytes and it stucks.
And on the local network it works fine.

The only strange thing I find is that when the server is after restart the used Memory is 186000k. When I start some mail client (thunderbird) and open the inbox the used memory jumps to 440000k. I didn't compare these values before this. Is this normal?

What can be the problem with the zip attachments?

Added: 7.aug. 9:55

I cached the communication by wireshark when thunderbird starts and there are lots of malformed packets sent from server side.
In the packet details I can see:
Quote:
Malformed Packet: SSL
Expert Info (Error/Malformed): Malformed Packet (Exception occured)
Message: Malformed Packet (Exception occured)
Security level: Error
Group: Malformed
When I turn off SSL on thunderbird there are no malformed packets.

Last edited by hua; 08-07-2009 at 07:03 AM.
 
Old 08-07-2009, 02:26 PM   #2
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Rep: Reputation: 42
You haven't mentioned if after switching off SSL, whether the problem with downloading zip attachments still happens. Have you checked your total system memory usage with:

free

Is swap starting to be used? How much memory is the imapd server using? Are you running it out of inetd or as a standalone server?

Do you only have problems with zip files? Or other attachments?

If the attachments work fine inside your network but not from external, then perhaps you have a firewall issue. You could also have a faulty network adapter or problematic hardware somewhere. Check also whether your negotiation settings on your network adapter are ok for your network ie. speed, duplex, etc

Check all system logs ( debug, syslog, messages, maillog for errors ) as well as dmesg.

Robby
 
Old 08-08-2009, 10:25 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Yes after I turn off SSL the problem is still present. I think that with memory it will be OK. The Swap is used.

Quote:
Mem:
total:509668 used:500772 free:8896 shared:0 buffers:69304 cached:292672
Swap:
total:3903776 used:4 free:3903772
I run imapd by inetd: it uses 0.6 % of memory
Quote:
5156 user 20 0 (VIRT)6008 (RES)3152 (SHR)1428 (%CPU)0.0 (%MEM)0.6 0:00.36 imapd
It happens only with zip attachmets others pdf, exe ... everything works.
It really looks like that it will be some kind of network problem (BUT). I tried download the attachment on my home slackware desktop and it worked without malformed packets, BUT it tells me something like this:
invalid filename
Invalid byte sequence in conversation input

The attachment was named - Nový Priečinok.zip - what means New Folder.zip in Slovak. After I saved it under different name (data.zip) it woked.
It seems to me that the same happend on my work windows PC but it didn't show the error message what slackware did.

Next- the problems started after a stormy night when my PC's was shutting down every 5 mins (thunder-bolts). My server is protected by surge diverter protection (?? I don't know if I named it correctly) but the router is not.
I am going to examine my router.

few hours later:
So it really seems to be the ADSL modem problem. I have logs from the router about ADSL status before (and after) the storm:
Quote:
before:
router 1: Mar 31 22:21:35 Mode=G.DMT States=SHOWTIME UpSpeed=512000 DownSpeed=2560000 SNR=27.0 Atten=18.0 ]
after:
router 1: Aug 8 18:16:20 > Mode=G.DMT States=SHOWTIME UpSpeed=704000 DownSpeed=4160000 SNR=30 Atten=15 ]
My ISP increased both the download and the upload speeds. I experienced several times with our internet provider (Slovak Telecom) that they had to reconfigure the speeds when there was a problem with the connection. Usually they decrease the speeds.
I will call them up and ask them to check it.
Maybe when the attachment starts to be downloaded it overloads the upload speed and the connection freezes.(??)

Thanks Robby

Zoltan

Last edited by hua; 08-08-2009 at 11:31 AM.
 
  


Reply



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
[MIMEDefang] recover quarantined zip file attachment noir911 Linux - Server 1 09-20-2008 06:05 AM
sending html text message with zip file attachment; Content-Type: multipart/mixed phelpsj Programming 1 06-22-2006 08:50 AM
memory usage problem hegedus General 5 03-04-2005 07:00 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Mailbox usage,Squirrelmail,Postfix & WU IMAPD Swift&Smart Linux - Software 2 08-09-2004 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration