Changing FROM field with Sendmail and RT message

Hello,

I am running RT 3.0.8 under RH-9.

Despite having set apache as a trusted user by sendmail (as per
http://fsck.com/rtfm/article.html?id=5#106) messages coming from the RT
machine are still coming with a FROM: field address of
apache@localhost.localdomain

I am using the sendmailpipe option in RT_Config and everything else seems to
be functioning correctly.

What am I missing?

Thanks,
Vincent

PS

I am using a webmail application (squirrelmail) on the same box that is
changing the FROM: correctly, and its running via apache as well.

-vb----- Original Message -----
From: “Jesse Vincent” jesse@bestpractical.com
To: “HAM MI-IH / Torsten Brumm” torsten.brumm@kuehne-nagel.com
Cc: rt-users@lists.bestpractical.com
Sent: Wednesday, March 10, 2004 10:51 AM
Subject: Re: [rt-users] A bug? Time worked, negative values


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Vincent J. Bono wrote:

Hello,

I am running RT 3.0.8 under RH-9.

Despite having set apache as a trusted user by sendmail (as per
http://fsck.com/rtfm/article.html?id=5#106) messages coming from the RT
machine are still coming with a FROM: field address of
apache@localhost.localdomain

I am using the sendmailpipe option in RT_Config and everything else seems to
be functioning correctly.

What am I missing?

from: field in mail headers overrides in templates.

With sendmail you could override return-path for bounced mails.

Hello,

I am running RT 3.0.8 under RH-9.

Despite having set apache as a trusted user by sendmail (as per
http://fsck.com/rtfm/article.html?id=5#106) messages coming from the RT
machine are still coming with a FROM: field address of
apache@localhost.localdomain

I am using the sendmailpipe option in RT_Config and everything else seems to
be functioning correctly.

What am I missing?

I’m also using sendmailpipe, and my submit.cf’s configured to forward all
mail to our proper outbound MTA which is running on a different machine. I
captured a packet trace using ethereal, and the problem I’m seeing is that
the SMTP envelope ‘from’ is being set to apache@william.isode.net (ie the
user that’s running httpd, and the hostname of the machine running httpd)
and I suspect our outbound MTA’s tossing messages from clearly bogus users
into /dev/null :slight_smile:

The message content has a ‘from’ which matches the config in
RT_SiteConfig.pm, ie “Chris Ridd via RT ”.

Is there any way to tune the envelope ‘from’ in RT (3.0.9 btw), or is the
only solution to tweak the MTA to accept what RT’s setting?

Cheers,

Chris

Hello,

I am running RT 3.0.8 under RH-9.

Despite having set apache as a trusted user by sendmail (as per
http://fsck.com/rtfm/article.html?id=5#106) messages coming from the RT
machine are still coming with a FROM: field address of
apache@localhost.localdomain

I am using the sendmailpipe option in RT_Config and everything else seems
to be functioning correctly.

What am I missing?

I’m also using sendmailpipe, and my submit.cf’s configured to forward all
mail to our proper outbound MTA which is running on a different machine. I
captured a packet trace using ethereal, and the problem I’m seeing is that
the SMTP envelope ‘from’ is being set to apache@william.isode.net (ie the
user that’s running httpd, and the hostname of the machine running httpd)
and I suspect our outbound MTA’s tossing messages from clearly bogus users
into /dev/null :slight_smile:

The message content has a ‘from’ which matches the config in
RT_SiteConfig.pm, ie “Chris Ridd via RT ”.

Is there any way to tune the envelope ‘from’ in RT (3.0.9 btw), or is the
only solution to tweak the MTA to accept what RT’s setting?

You can force this by using the -f Parameter: add to SendmailArguments
something like: “-f postmaster@domain.com”.

The trusted user option only prevents “X-Authentication-Warning” warnings.

Cheers
Aurel

The message content has a ‘from’ which matches the config in
RT_SiteConfig.pm, ie “Chris Ridd via RT ”.

Is there any way to tune the envelope ‘from’ in RT (3.0.9 btw), or is the
only solution to tweak the MTA to accept what RT’s setting?

What “envelope from”? do you mean the MAIL FROM that’s in the smtp
exchange? the return path? the sender header?

seph

Is there any way to tune the envelope ‘from’ in RT (3.0.9 btw), or is the
only solution to tweak the MTA to accept what RT’s setting?

You can force this by using the -f Parameter: add to SendmailArguments
something like: “-f postmaster@domain.com”.

Aha! That works well, thanks for the tip.

Cheers,

Chris

The message content has a ‘from’ which matches the config in
RT_SiteConfig.pm, ie “Chris Ridd via RT ”.

Is there any way to tune the envelope ‘from’ in RT (3.0.9 btw), or is the
only solution to tweak the MTA to accept what RT’s setting?

What “envelope from”? do you mean the MAIL FROM that’s in the smtp
exchange? the return path? the sender header?

The SMTP ‘MAIL FROM’.

Cheers,

Chris

are you using sendmail or sendmailpipe? I needed to switch to sendmail
pipe to keep the sender header from screwing up the appearance of emails
in Outlook.

I think the problem I was having was in the perl modules so it wasn’t an
RT problem…basically sender was being set as the webserver user.

rickOn Wed, 10 Mar 2004, seph wrote:

The message content has a ‘from’ which matches the config in
RT_SiteConfig.pm, ie “Chris Ridd via RT ”.

Is there any way to tune the envelope ‘from’ in RT (3.0.9 btw), or is the
only solution to tweak the MTA to accept what RT’s setting?

What “envelope from”? do you mean the MAIL FROM that’s in the smtp
exchange? the return path? the sender header?

seph


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Rick Rezinas
Unix Systems Administrator
Qsent, Inc.

When Gladstone was British Prime Minister he visited Michael Faraday’s
laboratory and asked if some esoteric substance called `Electricity’
would ever have practical significance.
“One day, sir, you will tax it,” was the answer.
– Science, 1994