[rt-users] hostname issue
Steve Wampler
sbw at tapestry.tucson.az.us
Fri Jul 11 18:52:42 EDT 2003
On Fri, Jul 11, 2003 at 01:05:44PM -0800, admin wrote:
> >
> > 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 at blah.com
> so that works
>
> but when I place just cst in the correspondence address it sends this mail out
> as cst at 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 at tapestry.tucson.az.us}
The gods that smiled upon your birth are laughing now. -- fortune cookie
More information about the rt-users
mailing list