Modifying domain on RT replies

Hi,

I’m wondering if I could get some advice for modifying the domain on
e-mails that RT sends.

I just want to shorten it from:

RT_user@xxx.yyy.zzz
to
RT_user@yyy.zzz

Anyone worked on this issue before?

Thanks in advance,

Joshua Ayson
Computer Support Technician
Department of Technical Communication
17 Loew Hall, Box 352195
206.543.8994
http://crusher.uwtc.washington.edu
http://www.schnuckleputz.com
Winter 2002 Office Hours

M,T,Th,F 10:30-2:30
W 11:30-3:00

From: Joshua Ayson [mailto:emerald@u.washington.edu]

I’m wondering if I could get some advice for modifying the domain on
e-mails that RT sends.

I just want to shorten it from:

RT_user@xxx.yyy.zzz
to
RT_user@yyy.zzz

I have a semi-related issue. Our rt instance lives on a box called
"nairobi", but we set up an IP alias for it called “rt”. So if you send
mail to "queue@rt.blah.com", it will arrive in the right place.

And I have set up the queues in rt to think that their
correspondence/comment addresses are in that form, "queue@rt.blah.com".

But when RT sends out mail, it always comes from "queue@nairobi.blah.com".

Anyone know how to make RT send mail from the address the way I set it up?
Or does the MTA step in and change it, so it’s out of RT’s hands? (In which
case, how do I make sendmail leave it alone?)

Thanks for any help…

Kendric Beachey

Hi Josh and Kendric!On Thu, 2002-01-31 at 13:10, Beachey, Kendric wrote:

From: Joshua Ayson [mailto:emerald@u.washington.edu]

I’m wondering if I could get some advice for modifying the domain on
e-mails that RT sends.

I just want to shorten it from:

RT_user@xxx.yyy.zzz
to
RT_user@yyy.zzz

I have a semi-related issue. Our rt instance lives on a box called
"nairobi", but we set up an IP alias for it called “rt”. So if you send
mail to "queue@rt.blah.com", it will arrive in the right place.

And I have set up the queues in rt to think that their
correspondence/comment addresses are in that form, "queue@rt.blah.com".

But when RT sends out mail, it always comes from "queue@nairobi.blah.com".

Anyone know how to make RT send mail from the address the way I set it up?
Or does the MTA step in and change it, so it’s out of RT’s hands? (In which
case, how do I make sendmail leave it alone?)

Well, one way to fix this is to have the MTA know who it’s supposed to
identify as. If you’re using sendmail, there’s a line in your
sendmail.cf file:

my official domain name

… define this only if sendmail cannot automatically determine your

domain
#Dj$w.Foo.COM

Uncomment the last line, change the “$w.Foo.COM” part to “yyy.zzz” or
"rt.blah.com" and restart sendmail. You should get what you want from
that.

Cheers!

–j

p.s. If it’s not sendmail, I wouldn’t know my elbow from a hand grenade.
Jim Meyer, Geek At Large purp@wildbrain.com

Uncomment the last line, change the “$w.Foo.COM” part to “yyy.zzz” or
"rt.blah.com" and restart sendmail. You should get what you want from
that.

Sorry, I forgot that sendmail (long ago) added DM as “Who do I
masquerade as?” Changing that is probably the best answer. Kinda like
this:

who I masquerade as (null for no masquerading) (see also $=M)

#DMmailhub.foo.com
DMfoo.com

Age takes its toll. Please have exact change. ;p

–j, talking to himself, among others.
Jim Meyer, Geek At Large purp@wildbrain.com

But what if RT is the only app on the box that you want to send mail
"from" that domain? For example, you have rt.abc.com and rt.def.com on
the same system and want the outgoing mail to have the proper "from"
address so that responses can be directed to the proper instance of RT.
Handling the incoming responses is simple sendmail stuff, but what about
the outbound stuff?On 31 Jan 2002, Jim Meyer wrote:

On Thu, 2002-01-31 at 13:50, Jim Meyer wrote:

Uncomment the last line, change the “$w.Foo.COM” part to “yyy.zzz” or
"rt.blah.com" and restart sendmail. You should get what you want from
that.

Sorry, I forgot that sendmail (long ago) added DM as “Who do I
masquerade as?” Changing that is probably the best answer. Kinda like
this:

who I masquerade as (null for no masquerading) (see also $=M)

#DMmailhub.foo.com
DMfoo.com

Age takes its toll. Please have exact change. ;p

–j, talking to himself, among others.

From: Trever Furnish [mailto:tfurnish@mail1.wowemployers.com]

But what if RT is the only app on the box that you want to send mail
"from" that domain? For example, you have rt.abc.com and
rt.def.com on
the same system and want the outgoing mail to have the proper "from"
address so that responses can be directed to the proper
instance of RT.
Handling the incoming responses is simple sendmail stuff,
but what about
the outbound stuff?

Ummmm…I dunno. :slight_smile: We have other stuff running on our box, but RT is the
only job that handles mail.

Maybe you could run separate sendmail instances, on different IP addresses,
for each fake domain? I’m a complete sendmail moron, and what I just said
probably shows it. But it’s the best thing I could think of…

Kendric

If you have multiple RT instances on 1 machine, this could be solved by
configuring sendmail to relay both rt.abc.com and rt.def.com thru
sendmail.cw configuration.
In addition to that, using virtual user table of sendmail, incoming mail
can also configured this way.

The outbound stuff can be configured for each queue with Correspondence
Address and Comment Address and also if you have 2 instances of RT you
can configure your config.pm correctly.

Sendmail is the easy part of the problem.

AleshOn Thu, 31 Jan 2002, Trever Furnish wrote:

Date: Thu, 31 Jan 2002 18:23:22 -0500 (EST)
From: Trever Furnish tfurnish@mail1.wowemployers.com
To: Jim Meyer purp@wildbrain.com
Cc: “Beachey, Kendric” Kendric.Beachey@garmin.com,
“Rt-Users (E-mail)” rt-users@lists.fsck.com
Subject: RE: [rt-users] Modifying domain on RT replies

But what if RT is the only app on the box that you want to send mail
"from" that domain? For example, you have rt.abc.com and rt.def.com on
the same system and want the outgoing mail to have the proper "from"
address so that responses can be directed to the proper instance of RT.
Handling the incoming responses is simple sendmail stuff, but what about
the outbound stuff?

On 31 Jan 2002, Jim Meyer wrote:

On Thu, 2002-01-31 at 13:50, Jim Meyer wrote:

Uncomment the last line, change the “$w.Foo.COM” part to “yyy.zzz” or
"rt.blah.com" and restart sendmail. You should get what you want from
that.

Sorry, I forgot that sendmail (long ago) added DM as “Who do I
masquerade as?” Changing that is probably the best answer. Kinda like
this:

who I masquerade as (null for no masquerading) (see also $=M)

#DMmailhub.foo.com
DMfoo.com

Age takes its toll. Please have exact change. ;p

–j, talking to himself, among others.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users