Subject: Re: [netbsd]: Sendmail and Hairpulling.
To: None <netbsd-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 05/03/2002 15:35:53
On Fri, 3 May 2002, Tim Bandy wrote:

> >>>>> "J" == J Buck Caldwell <buckaroo@liveround.com> writes:
>     J>  So I'm trying to figure out what I'm doing wrong. I've got a
>     J> machine set up hosting my domain and I'm trying to configure
>     J> Sendmail. The machine is ns1.(domain).org, and when I send
>     J> mail, it claims to come from root@ns1.(domain).org, and the
>     J> only way I can send mail to it is send it to
>     J> root@ns1.(domain).org. I would like to be able to take that
>     J> 'ns1.'  out of there. I get the feeling I'm doing something
>     J> wrong with DNS, but I don't know what. Any help would be
>     J> appreciated.

> MASQUERADE_AS(host.domain).

That is for outgoing mail.

To get your ns1 to accept mail for your domain:

- set up a MX record in your DNS zone file for your domain:

@		MX	5 ns1

Then in your sendmail local-host-names file add your domain name.
Your mc file will have something like:
FEATURE(`use_cw_file')
Or manually add to sendmail.cf:
Cwdomain.org

Good luck,

   Jeremy C. Reed
   http://www.reedmedia.net/