linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Kelly <akelly@transparency.org>
To: Linux Admin <linux-admin@vger.kernel.org>
Subject: Here's an easy one
Date: Thu, 20 Mar 2003 14:55:14 +0100	[thread overview]
Message-ID: <3E79C842.86E68C18@transparency.org> (raw)


..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

             reply	other threads:[~2003-03-20 13:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 13:55 Andrew Kelly [this message]
2003-03-20 14:06 ` Here's an easy one 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E79C842.86E68C18@transparency.org \
    --to=akelly@transparency.org \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).