Removing "Sender: apache@domain" from mail header?

Hi.

Here’s an example of header of corresponded mail from RT. Domains and server
names changed.

“Problem” is that I can’t find a way to remove header line “Sender: Apache
apache@server
Reason I want to remove it, that it causes Outlook 2000 to show quite
confusing line as From: -field:

"From: Apache [apache@server] on behalf of Support via RT

[rt-support-test@domain]"

I’m using Sendmail (from RedHat) as mailer.

I don’t know if this is a Apache, Sendmail or RT issue, but I’d like to get
this changed. :slight_smile:

  • Toni

Return-Path: apache@server
Received: from [x.x.x.x] (HELO domain)
by mailserver
with ESMTP id 1244578 for toni.willberg@domain; Wed, 19 Dec 2001 17:23:56
+0200
Received: (from apache@localhost)
by server (8.11.6/8.11.6) id fBJFOw618132;
Wed, 19 Dec 2001 17:24:58 +0200
Message-Id: rt-24-117.17.7688088923204@ID
RT-Ticket: ID #24
X-Mailer: Perl5 Mail::Internet v1.42
RT-Originator: systems@domain
X-RT-Loop-Prevention: ID
Content-Disposition: inline
Content-Type: text/plain
In-Reply-To: rt-24@ID
Managed-BY: Request Tracker 2.0.9 (http://www.fsck.com/projects/rt/)
Precedence: bulk
MIME-Version: 1.0
Content-Transfer-Encoding: binary
Sender: Apache apache@server

“TW” == Toni Willberg toni.willberg@atbusiness.com writes:

TW> I don’t know if this is a Apache, Sendmail or RT issue, but I’d like to get
TW> this changed. :slight_smile:

None of the above. It is an Outlook issue. Try getting that fixed :wink:

This causes no end of problems with mailing lists and confused
Lookout users.

Well, if anyone knows where that “Sender: …” -line comes from, and how to
remove it, let me know.

It could be usefull to be able to configure headers somehow other than
changing the code…

  • Toni

“TW” == Toni Willberg toni.willberg@atbusiness.com writes:

TW> Well, if anyone knows where that “Sender: …” -line comes from, and how to
TW> remove it, let me know.

It depends. Some MTAs insert it for you, some don’t. Some overwrite
it for you if it exists and doesn’t match the envelope address.
Basically you can’t guarantee 100% that any solution you provide
locally will work globally, because of so much crapware out there
calling itself a mail server.

TW> It could be usefull to be able to configure headers somehow other than
TW> changing the code…

The only place I see “Sender” in RT is when it is scanning the header
for it. It doesn’t seem to insert it.

“Problem” is that I can’t find a way to remove header line “Sender: Apache
apache@server

I’ve added something to the FAQ that answers this.
try it, and let me know if it works for you.
http://fsck.com/rtfm/article.html?id=5#106

seph

Adding “apache” to trusted sendmail users did the magic. Thank you. :slight_smile:

In (atleast) RedHat version of Sendmail: /etc/mail/trusted-users

  • Toni