Hostname issue

RT 3.0.3
FreeBSD 4.8
sendmail 8.12.9

Okay,

I am sure i overlooked this somewhere in the docs.

right now all rt mail is originating as rt@blah.blah.com
but I want the originating outbound email to be rt@blah.com

what do I augment here?

  • Noah

I am sure i overlooked this somewhere in the docs.

right now all rt mail is originating as rt@blah.blah.com
but I want the originating outbound email to be rt@blah.com

I don’t know if it’s in the docs, I assume so, but the global default
is set in the config file, and the per-queue setting is an obvious
configuration option in the web interface.

seph

Please keep all correspondence on the mailing list. (I’ve cc’ed
rt-users)

I am sure i overlooked this somewhere in the docs.

right now all rt mail is originating as rt@blah.blah.com
but I want the originating outbound email to be rt@blah.com

I don’t know if it’s in the docs, I assume so, but the global default
is set in the config file,

what is the variable that I need to set here in the configuration file. I
think sendmail is tacking this on regardless of what is set in the
configuration file.

sendmail should never be tacking on a From header. if you suspect
sendmail is taking on a Sender header, read (or search) rt/fm.
(http://fsck.com/rtfm/)

seph

Please keep all correspondence on the mailing list. (I’ve cc’ed
rt-users)

sure thing

I am sure i overlooked this somewhere in the docs.

right now all rt mail is originating as rt@blah.blah.com
but I want the originating outbound email to be rt@blah.com

I don’t know if it’s in the docs, I assume so, but the global default
is set in the config file,

what is the variable that I need to set here in the configuration file. I
think sendmail is tacking this on regardless of what is set in the
configuration file.

what is the exact variable name? because I dont have any variable set to
blah.blah.com . I only have hostnames like rt.blah.com and blah.com but no
blah.blah.com

  • Noah

right now all rt mail is originating as rt@blah.blah.com
but I want the originating outbound email to be rt@blah.com

what is the exact variable name? because I dont have any variable set to
blah.blah.com . I only have hostnames like rt.blah.com and blah.com but no
blah.blah.com

read the configs, it had an obvious name.

seph

Please keep all correspondence on the mailing list. (I’ve cc’ed
rt-users)

sure thing

I am sure i overlooked this somewhere in the docs.

right now all rt mail is originating as rt@blah.blah.com
but I want the originating outbound email to be rt@blah.com

I don’t know if it’s in the docs, I assume so, but the global default
is set in the config file,

what is the variable that I need to set here in the configuration file. I
think sendmail is tacking this on regardless of what is set in the
configuration file.

what is the exact variable name? because I dont have any variable set to
blah.blah.com . I only have hostnames like rt.blah.com and blah.com but no
blah.blah.com

  • Noah

sendmail should never be tacking on a From header. if you suspect
sendmail is taking on a Sender header, read (or search) rt/fm.
(http://fsck.com/rtfm/)

Sendmail won’t tack on a From header, but it can certainly mangle
existing ones, as well as lots of other addresses in email
headers. If the original poster is absolutely certain
that the RT config file doesn’t include ‘blah.blah.com’ and
that’s what’s really appearing the From line (or the reply-to,
or any any other mail header), then the sendmail configuration
is certainly something to look at.

That being said, it’s rare to have sendmail configured to
map ‘blah.com’ into ‘blah.blah.com’. It’s much more common
to have it map ‘blah.blah.com’ into ‘blah.com’…

-Steve
Steve Wampler {sbw@tapestry.tucson.az.us}
The gods that smiled upon your birth are laughing now. – fortune cookie

what is the exact variable name? because I dont have any variable set to
blah.blah.com . I only have hostnames like rt.blah.com and blah.com but no
blah.blah.com

  • Noah

sendmail should never be tacking on a From header. if you suspect
sendmail is taking on a Sender header, read (or search) rt/fm.
(http://fsck.com/rtfm/)

Sendmail won’t tack on a From header, but it can certainly mangle
existing ones, as well as lots of other addresses in email
headers. If the original poster is absolutely certain
that the RT config file doesn’t include ‘blah.blah.com’ and
that’s what’s really appearing the From line (or the reply-to,
or any any other mail header), then the sendmail configuration
is certainly something to look at.

That being said, it’s rare to have sendmail configured to
map ‘blah.com’ into ‘blah.blah.com’. It’s much more common
to have it map ‘blah.blah.com’ into ‘blah.com’…

cool - thanks steve - I think we are getting close on this response.

when I explicitly define the correspondence address to cst@blah.com
so that works

but when I place just cst in the correspondence address it sends this mail out
as cst@blah.blah.com

what are the different possibilities that I can place in the sendmail
configuration. I guess there can be a global entry in the blah.blah.com.mc
file, yes. if so what would it be? also I guess I could place an entry in
the genericstable, eh?

  • Noah

Sendmail won’t tack on a From header, but it can certainly mangle
existing ones, as well as lots of other addresses in email
headers. If the original poster is absolutely certain
that the RT config file doesn’t include ‘blah.blah.com’ and
that’s what’s really appearing the From line (or the reply-to,
or any any other mail header), then the sendmail configuration
is certainly something to look at.

That being said, it’s rare to have sendmail configured to
map ‘blah.com’ into ‘blah.blah.com’. It’s much more common
to have it map ‘blah.blah.com’ into ‘blah.com’…

cool - thanks steve - I think we are getting close on this response.

when I explicitly define the correspondence address to cst@blah.com
so that works

but when I place just cst in the correspondence address it sends this mail out
as cst@blah.blah.com

what are the different possibilities that I can place in the sendmail
configuration. I guess there can be a global entry in the blah.blah.com.mc
file, yes. if so what would it be? also I guess I could place an entry in
the genericstable, eh?

Hi Noah,

I’m going to blindly assume that you’re using RedHat, or at least
that your sendmail setup is the same as on RedHat (otherwise,
you’re on your own!)

Let’s start simple - genericstable is really more useful if you’ve
managing email for multiple hosts.

Move to /etc/mail

Edit sendmail.mc and add (not the odd quotes!!!):

MASQUERADE_AS(`blah.com')dnl
FEATURE(`masquerade_envelope')dnl

Then, rebuild sendmail.cf:

make

Here, you may need to copy this new sendmail.cf over the old
one if the ‘real’ one isn’t kept in /etc/mail. Look to see
if you have the file /etc/sendmail.cf. If so, then:

cp sendmail.cf /etc

Restart the sendmail deamon:

service sendmail restart

Test it!

Good luck,
Steve
Steve Wampler {sbw@tapestry.tucson.az.us}
The gods that smiled upon your birth are laughing now. – fortune cookie