Setting email From: field

Is there any way to set the address that RT puts in the From: field of
its emails?

Currently, it’s sending out from apache@foo.com, and I’d like it to be
sending out from rt@foo.com.

Thanks!

Erik Anderson wrote:

Is there any way to set the address that RT puts in the From: field of
its emails?

Currently, it’s sending out from apache@foo.com, and I’d like it to be
sending out from rt@foo.com.
Templates

http://wiki.bestpractical.com/?FAQ

It’s in the Queue Configuration… Reply and Comment email address

Negative…I have the $CorrespondAddress and $CommentAddress set
correctly in RT_SiteConfig.pm. These settings are setting the
Reply-To field correctly, but not the from field.

Templates

Request Tracker Wiki

Thanks for the pointer - that got me going in the right direction I
believe. If I’m understanding this correctly, I need to put “From:
rt@foo.com” at the top of the relevant templates, correct?

Well I’ve added that to the Autoreply template and the Transation
template, and the emails are still being sent out incorrectly.

Am I missing something completely obvious?

Is there any way to set the address that RT puts in the From: field of
its emails?

Currently, it’s sending out from apache@foo.com, and I’d like it to be
sending out from rt@foo.com.

Some mailers enforce that the sender’s From: matches the uid
of the submitter. If it has a concept of ‘trusted users’ allowed
to use an alternate ‘From:’ you’ll have to add apache to
that list.

Les Mikesell
les@futuresource.com

Some mailers enforce that the sender’s From: matches the uid
of the submitter. If it has a concept of ‘trusted users’ allowed
to use an alternate ‘From:’ you’ll have to add apache to
that list.

I’m using ssmtp, which is a very lightweight smtp server. I’m
guessing that it possibly isn’t handling the mail correctly. I’m
going to ditch it and install qmail to see if that works any better.

Thanks for the info, Les!

I’m using ssmtp, which is a very lightweight smtp server. I’m
guessing that it possibly isn’t handling the mail correctly. I’m
going to ditch it and install qmail to see if that works any better.

Arguably, enforcing the uid match is ‘correct’. Sendmail has an
option for trusted users, but even when the sender isn’t trusted
it doesn’t modify the From: - it just adds a 'Sender: or
X-Authentication-Warning: header so the mismatch is noted.

Les Mikesell
les@futuresource.com

Erik Anderson wrote:

Templates

Request Tracker Wiki

Thanks for the pointer - that got me going in the right direction I
believe. If I’m understanding this correctly, I need to put “From:
rt@foo.com” at the top of the relevant templates, correct?

Well I’ve added that to the Autoreply template and the Transation
template, and the emails are still being sent out incorrectly.
When you get mails from any source there is
Return-Path: set by smtp server/program, you can override it with -f
sendmail flag for eg. It’s for bounced mails! You don’t it back in RT,
but often you don’t need it back to apache@example.com, but may be
rt-bounced@example.com.

If you wish one sender for your queue then you should override:
Sender:
and
From:

For example(no new lines in template before header overriding lines):
______________________________ START
Sender: Example Support Department support@example.com
RT-Attach-Message: Yes

{$Transaction->Content()}
______________________________ END

And that’s all.

		Best regards. Ruslan.