How to get rid of the "from" header / RT 3.0.6 on Debian 3.0

Hi,

I’ve serached the list and went through the FAQ’s but I cannot work out
how to get rid of the from header in the envelope of mails getting sent out.
The emails are all ok, also the "From: " is being set correctly by RT
but for some reason, exim (or RT?) still inserts www-data@DOMAIN into
the mails sent out which leads to some confusion, and problems with
rather not-so-intelligent mail filters which treat the www-data@… as sender
instead of the queues’ RT adress.

Running RT 3.0.6 on Debian 3.0 with exim out-of the box.
according to the FAQ I’ve set in exim.conf:
trusted_users = mail:uucp:www-data

but that seems to have no effect… the Email-header still looks like this
(replaced some private stuff)
— cut —

From www-data@mydomain.com Thu Dec 18 17:14:31 2003
Return-Path: www-data@MYDOMAIN.com

Received: from www-data by HOST.MYDOMAIN.com with local (Exim 3.36 #1 (Debian))

X-RT-Loop-Prevention: RT-NAME
— cut —

my RT_SiteConfig.pm (FriendlyFrom works fine)
— cut —
Set($MailCommand , ‘sendmailpipe’);
Set($SendmailArguments , “-oi -t”);
Set($UseFriendlyFromLine , 1);
Set($FriendlyFromLineFormat , “"%s (RT-NAME)" <%s>”);
— cut —

maybe there’s sbdy with a small hint what I could have overseen.

thanks,

Michael

but that seems to have no effect… the Email-header still looks like this
(replaced some private stuff)
— cut —

From www-data@mydomain.com Thu Dec 18 17:14:31 2003
Return-Path: www-data@MYDOMAIN.com

Received: from www-data by HOST.MYDOMAIN.com with local (Exim 3.36 #1 (Debian))

Reply-To: rt@MYDOMAIN.com <— THIS is ok
To: xyz@gmx.de
X-RT-Loop-Prevention: RT-NAME
From: “Michael Markstaller (RT-NAME)” rt@MYDOMAIN.com <— THIS is also ok
— cut —

I don’t see a bogus Sender or From header in that. are you complaining
about the Return-Path, or the first line which was “>From”?

seph

Yes, it’s about the “From www-data” which for some reason appears,
I haven’t digged to deep but probably this is caused by the
“Return-Path: www-data@mydomain.com” header.
I’m looking for a possibility to set this to the queue-address,
the comment-address or at least something not named www-data :wink:

Backgroud is, that for instance this address is taken as sender when
being blocked somewhere for some reason, for instance in mailsweeper
at the recipient and
BTW: I’m aware this leads to bounces being sent back into the ticket -
that’s what I’m looking for (i.e. the owner gets notified that something
with his answer went wrong).

Michael-----Original Message-----
From: seph [mailto:seph@directionless.org]
Sent: Thursday, December 18, 2003 9:10 PM
To: Michael Markstaller
Cc: rt-users@lists.fsck.com
Subject: Re: How to get rid of the “from” header / RT 3.0.6 on Debian
3.0

I don’t see a bogus Sender or From header in that. are you complaining
about the Return-Path, or the first line which was “>From”?

seph

On Thu, Dec 18, 2003 at 09:37:24PM +0100, Michael Markstaller said:

Yes, it’s about the “From www-data” which for some reason appears,
I haven’t digged to deep but probably this is caused by the
“Return-Path: www-data@mydomain.com” header.

You need to add the www-data user to the trusted user list in your MTA.

Yes, it’s about the “From www-data” which for some reason appears,
I haven’t digged to deep but probably this is caused by the
“Return-Path: www-data@mydomain.com” header.
I’m looking for a possibility to set this to the queue-address,
the comment-address or at least something not named www-data :wink:

In your original message, you listed the header as being:

From www-data@mydomain.com Thu Dec 18 17:14:31 2003

that doesn’t look like a from header because it starts with a ‘>’ and
it has a date in it. It looks more like an mbox seperator to me, but
I’m rusty on mbox.

Backgroud is, that for instance this address is taken as sender when
being blocked somewhere for some reason, for instance in mailsweeper
at the recipient and
BTW: I’m aware this leads to bounces being sent back into the ticket -
that’s what I’m looking for (i.e. the owner gets notified that something
with his answer went wrong).

I think what’s happening is that the end MTA is rejecting the
message. While this does result in a bounce being generated, it’s very
different than the remote MTA generating the bounce. I don’t remember
offhand what exim uses to generate a bounce for rejected mail.

seph

You need to add the www-data user to the trusted user list in your MTA.

That’s what I did first, exim.conf contains: “trusted_users = mail:uucp:www-data”
for now I think the problem is the “Return-Path:” header-field
being set to www-data@domain.com instead of rt@domain.com
still looking to somehow change this…

Michael