Anonymous Servers - How to get rid of the "Content-transfer-encoding" header

This is Interesting: Free IT Magazines  
Home > Archive > Anonymous Servers > July 2006 > How to get rid of the "Content-transfer-encoding" header





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get rid of the "Content-transfer-encoding" header
John

2006-07-29, 7:13 am

Hi,

I'm writing a utility that can add or delete headers from a mail
message sent by an email client such as Outlook. Messages are posted
to usenet by using a m2n-gateway.

Now the problem is that I cannot get rid of the
"Content-transfer-encoding" header. It is always part of my message;
of course, I made sure it isn't sent by my utility: it did this by
intercepting all the communication taking place between the utility
and the mailserver of my ISP. The logging of a test message posted to
alt.test.test.a looks like this:

127.0.0.1:4565 Stat Connected.
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 220 smtp16.wxs.nl -- Server
ESMTP (iPlanet Messaging Server 5.2)
127.0.0.1:4565 Recv 29-7-2006 12:21:06: HELO shiva
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 250 smtp16.wxs.nl OK.
127.0.0.1:4565 Recv 29-7-2006 12:21:06: RSET
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 250 2.5.0 Ok.
127.0.0.1:4565 Recv 29-7-2006 12:21:06: MAIL FROM:
<yourstruly@hotmail.com>
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 250 2.5.0 Address Ok.
127.0.0.1:4565 Recv 29-7-2006 12:21:06: RCPT TO:<mail2news@dizum.com>
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 250 2.1.5 mail2news@dizum.com
OK.
127.0.0.1:4565 Recv 29-7-2006 12:21:06: DATA
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 354 Enter mail, end with a
single ".".
127.0.0.1:4565 Recv 29-7-2006 12:21:06: From: John
<yourstruly@hotmail.com>
Newsgroups: alt.test.test.a
Subject: test 127.0.0.1
Date: Sat, 29 Jul 2006 12:21:05 +0200

..
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 250 2.5.0 Ok.
127.0.0.1:4565 Recv 29-7-2006 12:21:06: QUIT
127.0.0.1:4565 Sent 29-7-2006 12:21:06: 221 2.3.0 Bye received.
Goodbye.
127.0.0.1:4565 Stat Disconnected.
0.0.0.0:0 Stat Disconnected.

So no "Content-transfer-encoding" was sent! Yet the header of the
message in alt.test.test.a looks like this:

Path:
text.nova.planet.nl!divide.nova.planet.nl!newsfeeder.wxs.nl!transit.news.xs4all.nl!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
Date: Sat, 29 Jul 2006 12:21:05 +0200
From: John <yourstruly@hotmail.com>
Subject: test 127.0.0.1
Newsgroups: alt.test.test.a
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com


Now who adds this header? Is it dizum or my mailservers ISP? And more
importantly, isn't there a way to prevent it?

Thanks in advance!

John

2006-07-29, 7:13 am

>Oops! This is the wrong one! This is the one I wanted to show you:
>
>Path:
>text.nova.planet.nl!divide.nova.planet.nl!newsfeeder.wxs.nl!transit.news.xs4all.nl!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
>Date: Sat, 29 Jul 2006 12:21:05 +0200
>From: John <yourstruly@hotmail.com>
>Subject: test 127.0.0.1
>Newsgroups: alt.test.test.a
>Mail-To-News-Contact: abuse@dizum.com
>Organization: mail2news@dizum.com
>Xref: text.nova.planet.nl alt.test.test.a:385


LOL This is another problem.. the program also strips lines that are
part of the body. Anyway, it's still underdevelopment I'd say!!








John

2006-07-29, 7:13 am

>
>Path:
>text.nova.planet.nl!divide.nova.planet.nl!newsfeeder.wxs.nl!transit.news.xs4all.nl!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
>Date: Sat, 29 Jul 2006 12:21:05 +0200
>From: John <yourstruly@hotmail.com>
>Subject: test 127.0.0.1
>Newsgroups: alt.test.test.a
>Mail-To-News-Contact: abuse@dizum.com
>Organization: mail2news@dizum.com
>Xref: text.nova.planet.nl alt.test.test.a:385
>
>

Oops! This is the wrong one! This is the one I wanted to show you:

Path:
text.nova.planet.nl!divide.nova.planet.nl!newsfeeder.wxs.nl!transit.news.xs4all.nl!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
Date: Sat, 29 Jul 2006 12:21:05 +0200
From: John <yourstruly@hotmail.com>
Subject: test 127.0.0.1
Message-id: <0J3500CKUU36G7@smtp16.wxs.nl>
Content-transfer-encoding: 7BIT
Newsgroups: alt.test.test.a
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com

TwistyCreek

2006-07-29, 7:12 pm

John wrote:

<lotsa snippage>

> Now the problem is that I cannot get rid of the
> "Content-transfer-encoding" header. It is always part of my message;


If your logs are accurate, and there's no reason to believe they're not
they look fine, then your ISP is adding the header. Usually the
originating client stipulates any transfer encoding information, and it
would seem odd at best for an MTA to just try and "guess" that
information from the message itself. Although not impossible. ;)

First of all try a telnet session to your mail server. Issue the bare
minimum commands you need to send a message (HELO may or may not be
optional, RCPT TO and MAIL FROM are probably necessary, and of course
your DATA). That way you know without any doubts that what you type and
see is the only thing being sent.

IF it's your mail server, there's really not much you can do. You can
try "forging" the header ans see what happens, although that's not
really useful at all. The only other thing is to find another mail
server.

John

2006-07-30, 7:13 am

On 29 Jul 2006 18:58:30 -0000, TwistyCreek <anon@comments.header>
wrote:

>John wrote:
>
><lotsa snippage>
>
>
>If your logs are accurate, and there's no reason to believe they're not
>they look fine, then your ISP is adding the header. Usually the
>originating client stipulates any transfer encoding information, and it
>would seem odd at best for an MTA to just try and "guess" that
>information from the message itself. Although not impossible. ;)
>
>First of all try a telnet session to your mail server. Issue the bare
>minimum commands you need to send a message (HELO may or may not be
>optional, RCPT TO and MAIL FROM are probably necessary, and of course
>your DATA). That way you know without any doubts that what you type and
>see is the only thing being sent.
>

It did that as well. The message with the subject TEST was sent to
alt.test.test.a using a telnet session. This is the header:

Path:
text.nova.planet.nl!divide.nova.planet.nl!newsfeeder.wxs.nl!transit.news.xs4all.nl!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
Date: Sat, 29 Jul 2006 10:09:57 +0200
From: yourstruly@hotmail.com
Subject: TEST2
Message-id: <0J35004COOPRCI@psmtp03.wxs.nl>
Content-transfer-encoding: 7BIT
Newsgroups: alt.test.test.a
X-No-Archive: yes
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Xref: text.nova.planet.nl alt.test.test.a:380


So it contains the Content-transfer-encoding: 7BIT header also.
But the header is *not* part of the message if I post it to one of my
private email-addresses. Could dizum add the header?! I cannot imagine
that either cuz I've seen many posts through dizum without this
header. Anyway, confusing!




>IF it's your mail server, there's really not much you can do. You can
>try "forging" the header ans see what happens, although that's not
>really useful at all. The only other thing is to find another mail
>server.


I'll see if I can myself another free smtp-server allowing me to post
through.

John

2006-07-30, 7:13 am

>
>
>So it contains the Content-transfer-encoding: 7BIT header also.
>But the header is *not* part of the message if I post it to one of my
>private email-addresses. Could dizum add the header?! I cannot imagine


I just did another test as well. I now posted the message to an
email-address not provided by my ISP. And guess what? The message
contains the Content-transfer-encoding header! So it seems to be
added by my ISP if I post it to an email-address not provided by my
ISP such as mail2news@dizum.com

>
>I'll see if I can myself another free smtp-server allowing me to post
>through.


So that's what I have to do:-)

John

2006-07-30, 1:12 pm

>
>IF it's your mail server, there's really not much you can do. You can
>try "forging" the header ans see what happens, although that's not
>really useful at all. The only other thing is to find another mail
>server.


I resolved the problem by (mx-)querying my dns-server. This query
askes for the hosts of the domain you want to post to, in this case
dizum.com.
Dizum's mail exchanger is smtp.zedz.net BTW.
Anyway, this way I avoided my own mailserver and now there is no
"Content-transfer-encoding" header anymore! (see my message)

Alex de Joode

2006-07-30, 1:12 pm

John <yourstruly@hotmail.com> wrote:
: >
: >
: >So it contains the Content-transfer-encoding: 7BIT header also.
: >But the header is *not* part of the message if I post it to one of my
: >private email-addresses. Could dizum add the header?! I cannot imagine

: I just did another test as well. I now posted the message to an
: email-address not provided by my ISP. And guess what? The message
: contains the Content-transfer-encoding header! So it seems to be
: added by my ISP if I post it to an email-address not provided by my
: ISP such as mail2news@dizum.com

: >
: >I'll see if I can myself another free smtp-server allowing me to post
: >through.

: So that's what I have to do:-)

You can also ask the mail2news gateway operator to remove that header
automaticly ;)

Cheers,
-aj-
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com