linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Fullmer <jon@jonfullmer.com>
To: Andrew Kelly <akelly@transparency.org>,
	Linux Admin <linux-admin@vger.kernel.org>
Subject: Re: Here's an easy one
Date: Thu, 20 Mar 2003 07:06:16 -0700	[thread overview]
Message-ID: <BA9F18E8.B59F%jon@jonfullmer.com> (raw)
In-Reply-To: <3E79C842.86E68C18@transparency.org>

It sounds to me like you would want to masquerade your domain in your
sendmail configuration.  If you add these lines to your mc file:

MASQUERADE_AS(domain.name)dnl
FEATURE(`masquerade_envelope')dnl

And build a new sendmail.cf file, that should do it. The thing to remember
here then is that ALL e-mail being sent by sendmail on this host will send
mail as "@domain.name".  That sounds like what you want, though.

Hope this helps.

 - Jon

on 3/20/03 6:55 AM, Andrew Kelly at akelly@transparency.org wrote:

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


  reply	other threads:[~2003-03-20 14:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 13:55 Here's an easy one Andrew Kelly
2003-03-20 14:06 ` Jon Fullmer [this message]
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=BA9F18E8.B59F%jon@jonfullmer.com \
    --to=jon@jonfullmer.com \
    --cc=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).