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 A520M DS3H AC AMD AM4 Motherboard mATX picture

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX

$59.99



Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery picture

Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery

$54.99



ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield picture

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield

$84.99



⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠ picture

⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠

$29.90



GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard picture

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard

$59.99



ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio picture

ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio

$34.99



ASUS TUF GAMING B550-PLUS WIFI II AM4 AMD B550 ATX AMD Motherboard picture

ASUS TUF GAMING B550-PLUS WIFI II AM4 AMD B550 ATX AMD Motherboard

$90.99



ASRock B650M Pro RS WiFi AM5 AMD B650 SATA 6Gb/s Micro ATX Motherboard picture

ASRock B650M Pro RS WiFi AM5 AMD B650 SATA 6Gb/s Micro ATX Motherboard

$101.99



ASUS ROG STRIX X870E-E GAMING WIFI picture

ASUS ROG STRIX X870E-E GAMING WIFI

$289.99



GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5 picture

GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5

$189.99