linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Here's an easy one
@ 2003-03-20 13:55 Andrew Kelly
  2003-03-20 14:06 ` Jon Fullmer
  0 siblings, 1 reply; 11+ messages in thread
From: Andrew Kelly @ 2003-03-20 13:55 UTC (permalink / raw)
  To: Linux Admin


..or at least I assume it is and I just can't thinks straight
with this head cold.

Hi all; quick hostname question:

When mail is sent to a local user (mail -s "bla" user < file)
it's passed to the MTA as user@localhost. The same is passed
as the From address when the vacation program is run by user.

So where does the localhost expansion take place?

My problem here is that I'm getting 
	user@host.domain.name
when what I want is
	user@domain.name

I'm flying RH 7.2 and Sendmail 8.12.5 (patched) on this
particular box, by the way.

Sendmail -d0.1 -bt </dev/null gives me these responses
============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = host
  (canonical domain name) $j = host.domain.name
         (subdomain name) $m = domain.name
              (node name) $k = host
========================================================

which I keep reading as exactly what I want.

When I send mail from an application, be it Pine from a 
console or Netscape from a GUI, everything is as I'd hope.
My mail goes off as me@domain.name
If I send it from the command line with, say,
mail -s "blaaaa" address < file, or
senmail user <file it goes off as
me@host.domain.name

In my sendmail.cf 
host.domain.name is listed nowhere,
only, domain.name

I'm choking on this one and I know I shouldn't be. It's
like wondering why $var = 1 is not doing what it should
and 2 days of debugging hasn't helped and it only takes
a fresh pair of eyes 5 seconds to see that you really
meant $var == 1

...making me crazy.


Can anybody hold my hand?

Andrew

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Here's an easy one
@ 2003-03-20 14:04 Tim Gildersleeve
  0 siblings, 0 replies; 11+ messages in thread
From: Tim Gildersleeve @ 2003-03-20 14:04 UTC (permalink / raw)
  To: 'Andrew Kelly', Linux Admin

If you are using Sendmail, then this can be sorted out using the
masquerading options.   You can tell the sendmail server to masquerade
certain domains (or hosts) as a different one.   For example,

Host1.domain.com
Host2.domain.com

Can both be masqueraded as domain.com.

I cant remember the options you need to use in the /etc/mail/sendmail.cf
file, but if you have webmin installed then you can set it from there - its
much easier.

 -----Original Message-----
From: 	Andrew Kelly [mailto:akelly@transparency.org] 
Sent:	20 March 2003 13:55
To:	Linux Admin
Subject:	Here's an easy one


..or at least I assume it is and I just can't thinks straight
with this head cold.

Hi all; quick hostname question:

When mail is sent to a local user (mail -s "bla" user < file)
it's passed to the MTA as user@localhost. The same is passed
as the From address when the vacation program is run by user.

So where does the localhost expansion take place?

My problem here is that I'm getting 
	user@host.domain.name
when what I want is
	user@domain.name

I'm flying RH 7.2 and Sendmail 8.12.5 (patched) on this
particular box, by the way.

Sendmail -d0.1 -bt </dev/null gives me these responses
============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = host
  (canonical domain name) $j = host.domain.name
         (subdomain name) $m = domain.name
              (node name) $k = host
========================================================

which I keep reading as exactly what I want.

When I send mail from an application, be it Pine from a 
console or Netscape from a GUI, everything is as I'd hope.
My mail goes off as me@domain.name
If I send it from the command line with, say,
mail -s "blaaaa" address < file, or
senmail user <file it goes off as
me@host.domain.name

In my sendmail.cf 
host.domain.name is listed nowhere,
only, domain.name

I'm choking on this one and I know I shouldn't be. It's
like wondering why $var = 1 is not doing what it should
and 2 days of debugging hasn't helped and it only takes
a fresh pair of eyes 5 seconds to see that you really
meant $var == 1

...making me crazy.


Can anybody hold my hand?

Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-03-21  3:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-20 13:55 Here's an easy one Andrew Kelly
2003-03-20 14:06 ` Jon Fullmer
2003-03-20 14:16   ` Andrew Kelly
2003-03-20 14:51     ` Adam T. Bowen
2003-03-20 14:59       ` Andrew Kelly
2003-03-20 15:04       ` Andrew Kelly
2003-03-20 15:51         ` Adam T. Bowen
2003-03-20 20:55     ` Glynn Clements
2003-03-20 21:41     ` davidgn
2003-03-21  3:33     ` Jon Fullmer
  -- strict thread matches above, loose matches on Subject: below --
2003-03-20 14:04 Tim Gildersleeve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).