Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Problems sending/attaching files in email using Linux

  1. #11
    Junior Member
    Join Date
    Jan 2005
    Location
    Montreal, Canada
    Posts
    7

    Problems sending/attaching files in email using Linux

    Hi All,

    CrashedAgain -> yeah I tried that one both ways - renaming a jpg with .txt and renaming a .txt with jpg (in case it was some type of filter blocking). the renamed jpg still did not pass and the renamed txt file still passed. So, my guess was that it is the actual content of the file that does not pass. Txt and doc do not have the same tructure as binaries like zip, exe, pdf, jpg.

    Green1 -> thanks for the tips and the test. I see it is not that common factor, I have received your mail attachment so obviously it is not gmail blocking it.


    On the same line as above, since the files that are causing trouble are binaries (txt and doc pass without trouble)someone from the office actually suggested that it might be related to MIME settings but I am not sure where I can find those in Linux... Maybe one of you would know...

    Thanks again for all your help

  2. #12
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981

    Re: Problems sending/attaching files in email using Linux

    Quote Originally Posted by francisgirard
    Hi All,

    CrashedAgain -> yeah I tried that one both ways - renaming a jpg with .txt and renaming a .txt with jpg (in case it was some type of filter blocking). the renamed jpg still did not pass and the renamed txt file still passed. So, my guess was that it is the actual content of the file that does not pass. Txt and doc do not have the same tructure as binaries like zip, exe, pdf, jpg.
    I'm surprised at that result; I always thought mail programs just sent attached files 'blind' without trying to read or identify them (else how would spies be able to send encrypted secret messages?). Maybe that's a thought...have you made any changes to encryption or mime policies? Mine are all just default.

  3. #13
    Junior Member
    Join Date
    Dec 2004
    Posts
    7
    Aha ! Someone else with exactly the same problem I am having with SMTP !

    Running Knoppix 3.6, installed on my hard disk, with the 2.4.27 kernel.
    KPPP for dial-up.
    The PC doesn't have much memory - only 96 Mb RAM, with a 500 Mb swap partition.
    I have tried the following e-mail programs, with exactly the same symptoms: Thunderbird, Netscape mail, Sylpheed, Mutt, Mozilla Mail. What's the common thread for all of these ?
    I have tried both my local ISP SMTP server (which requires no authentication), and gmail's SMTP server (which requires authentication).

    txt files go thru. most jpg files get stuck. most pdf files also get stuck. There seems to be a size dependency - very small jpg and pdf files go thru, but somewhere around 30 kb, they get stuck.

    I did a snoop with Ethereal - it gives the impression that the ISP SMTP server suddenly stops acking the message body packets. Not sure I believe that - Seems more likely that the packets stop going out the ppp interface.

    None of these problems occur running Win 98SE with Outllook Express on the same PC (it's dual boot).

    What other experiments or diagnostics can I try ?

  4. #14
    Junior Member
    Join Date
    Dec 2004
    Posts
    7
    Here's a fix, but it's not pretty....

    There are a few things going on here:

    1) The SMTP servers seem to be losing a large percentage of packets, causing the Linux TCP to retransmit. The servers are also slow to ACK packets. I have no idea why this occurs - but it is common to both the gmail SMTP server and my local ISP SMTP server with my 19.2 kb/s dial-up connection. I also have no idea why this problem is so much worse with binary attachments than text attachments.

    2) The Linux TCP algorithm is adapting to the SMTP server packet-drop and slow ACK problems by increasing the amount of time between retransmissions, up to a maximum of 120 seconds. The TCP throughput drops to virtually zero and the e-mail gets "stuck".

    The fix to the problem is to force the Linux maximum TCP retransmission timer to a much smaller value - like a few seconds. This probably violates some RFC, but it gets the job done !

    I ported the patch at http://www.jankratochvil.net/project/tcp_rto to the 2.4.27 kernel source, and rebuilt and installed this kernel. Once that is done, you can tweak the maximum TCP retransmission timer to something like 3 seconds:

    echo 300 > /proc/sys/net/ipv4/tcp_rto_max

    Put this in a rc*.d script so it will get set with each reboot.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Thermal Sensors: attaching techniques
    By jjmac in forum Hardware & Booting
    Replies: 0
    Last Post: 05-16-2005, 11:34 AM
  2. Attaching midi keyboard/synthesizer
    By el_supremo in forum Hardware & Booting
    Replies: 2
    Last Post: 07-26-2004, 05:28 PM
  3. X-terminal attaching to an existing session ?
    By garyng in forum General Support
    Replies: 4
    Last Post: 03-26-2004, 02:19 AM
  4. LCP: timeout sending config-requests
    By ericia in forum Networking
    Replies: 0
    Last Post: 02-07-2004, 11:29 PM
  5. Failed sending email
    By rickenbacherus in forum The Lounge
    Replies: 2
    Last Post: 04-20-2003, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1625.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed picture

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed

$49.99



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$308.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99



Dell Poweredge C4130 2x LGA2011-3 1U 4x GPU Rackmount Server CTO (NO CPU/NO RAM) picture

Dell Poweredge C4130 2x LGA2011-3 1U 4x GPU Rackmount Server CTO (NO CPU/NO RAM)

$299.95