لم تعُد "مجموعات Google" تتيح المشاركات أو الاشتراكات الجديدة من Usenet. وسيبقى بالإمكان عرض المحتوى السابق.

Rewrite or delete headers

33 مرّة مشاهدة
التخطي إلى أول رسالة غير مقروءة

Rouslan

غير مقروءة،
14‏/11‏/2005، 3:50:38 م14‏/11‏/2005
إلى
Hi folks,

Is there any way to remove or hide internal IP/Hostname in headers?


Return-Path: <rou...@rshell.net>
Received: from fin.rshell.net (fin.rshell.net [192.115.133.35])
by smtp1.actcom.co.il (8.13.3/8.13.3) with ESMTP id jAEKkkNk019777
for <dfdsfd...@microsoft.com>; Mon, 14 Nov 2005 22:46:50 +0200
Received: from [192.168.0.11] (p4n.rshell.net [192.168.0.11])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
by fin.rshell.net (8.13.5/8.13.3) with ESMTP id jAEKkfVi034490
for <dfdsfd...@microsoft.com>; Mon, 14 Nov 2005 22:46:41 +0200 (IST)
(envelope-from rou...@rshell.net)


Regards,
Rouslan

Claus Aßmann

غير مقروءة،
14‏/11‏/2005، 11:03:34 م14‏/11‏/2005
إلى
Rouslan wrote:

> Is there any way to remove or hide internal IP/Hostname in headers?

Why?

PS: yes.
--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Lars Kellogg-Stedman

غير مقروءة،
14‏/11‏/2005، 11:25:40 م14‏/11‏/2005
إلى
>> Is there any way to remove or hide internal IP/Hostname in headers?
>
> Why?

Because one often wants to obscure the details of one's internal mail
environment, or prevent local smtp filters (e.g., those used for mail
filtering/virus scanning/etc) from resulting in a large number of
meaningless "Received:" headers, etc.

-- Lars

--
Lars Kellogg-Stedman <jn8g543...@jetable.net>
This email address will expire on 2005-11-21.

Rouslan

غير مقروءة،
15‏/11‏/2005، 12:42:18 ص15‏/11‏/2005
إلى
Exactly.

Lars Kellogg-Stedman

غير مقروءة،
15‏/11‏/2005، 12:54:37 ص15‏/11‏/2005
إلى
> Is there any way to remove or hide internal IP/Hostname in headers?

If you're just trying to remove the Received: headers, you could
configure your internal systems to not add the Received: header in the
first place.

You could probably write a custom filter to strip or obscure the
headers. This would probably be the most flexible solution. There are
milter bindings for Perl, Java, etc., so writing one shouldn't be too
bad.

-- Lars

--
Lars Kellogg-Stedman <1o4ibj7...@jetable.org>
This email address will expire on 2005-11-22.

Rouslan

غير مقروءة،
15‏/11‏/2005، 9:30:39 ص15‏/11‏/2005
إلى
Lars,

First off all thank you for your replies.

Lars Kellogg-Stedman wrote:
> If you're just trying to remove the Received: headers, you could
> configure your internal systems to not add the Received: header in the
> first place.

What do you mean? In my example headers: I sent e-mail from
my workstation in internal network. E-mail gateway runs sendmail 8.13.15
and
split DNS (bind with external/internal view statements). I think about
solution without milter usage, only via sendmail configuration.

> You could probably write a custom filter to strip or obscure the
> headers. This would probably be the most flexible solution. There are
> milter bindings for Perl, Java, etc., so writing one shouldn't be too
> bad.

Yes, I installed mimedefang, but I really have no time to configure it
now. If you know other milters that I may use, please write me.

Regards,
Rouslan

Lars Kellogg-Stedman

غير مقروءة،
15‏/11‏/2005، 10:14:08 ص15‏/11‏/2005
إلى
>> If you're just trying to remove the Received: headers, you could
>> configure your internal systems to not add the Received: header in the
>> first place.
>
> What do you mean?

I mean that you can configure Sendmail to not add the Received: header
when email passes through the system. See, for example:

http://lookleap.com/groups.google.com/a3

You can also configure Sendmail to pass your outgoing messages through
procmail, and use that to filter out headers:

http://lookleap.com/groups.google.com/a4

And you can also modify the sendmail source to do the same thing;
instructions for this are apparently in the O'Reilly sendmail book.

Rouslan

غير مقروءة،
15‏/11‏/2005، 4:18:33 م15‏/11‏/2005
إلى
Excellent!

I replaced in sendmail.cf:
HReceived: $?sfrom $s $.$?_($?s$|from $.$_)

by:
HReceived: $?sfrom rshell.net (mail.rshell.net [192.115.133.35])

One note: this adds surplus header into received message, but is is not
critical. Thank you for an advice.

Regards,
Rouslan

0 رسالة جديدة