Subject: Re: simple sendmail hub
To: Andrew Brown <atatat@atatdot.net>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 07/11/2001 22:21:29
On Wed, Jul 11, 2001 at 11:20:30AM -0400, Andrew Brown wrote:
> >>I want to "rewrite" (I think) the from address to
> >>read: jklowden@schemamania.org.
>
> then you want this:
>
> OSTYPE(bsd4.4)dnl
> DOMAIN(generic)dnl
> FEATURE(masquerade_envelope)dnl
> MASQUERADE_AS(`schemamania.org')dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
Andrew,
First of all, thanks very much! Between you and Jim Miller, I got the
encouragement and guidance I needed. The proof's in the pudding: see my from
address?
Second, you had me ROFL for 10 minutes, positively giddy. I knew anyone
*could* poke into my DNS with nslookup, but that's the first time anyone *did*.
It just felt very funny to have my homely set of names echoed back to me.
Very thorough. Thanks for that advice, too.
Third, it looked to me like some of the messages I got from you were sent to
jklowden@lowden.schemamania.org. I'm very confused about that. I do use a
bimap command in ipnat for lowden, but I'm still surprised mail got through
because the external address isn't exposed in the DNS. Care to comment?
What I did between 7 and 9 tonight:
I wound up following the directions in the readme (big surprise), adding your
contents to a copy of usr/share/sendmail/cf/netbsd-proto-IPv4only.mc.
I m4'd it, trying (with doubts) to hup sendmail. She stopped. OK, so sendmail
is not bind.
Then she wouldn't restart, complaining:
/etc/mail/sendmail.cf: line 84: fileclass:
cannot open '/etc/mail/local-host-names':
No such file or directory
So I did what anyone might try:
echo lowden >/etc/mail/local-host-names
which was all I had to do before sendmail -bd.
== second topic: DNS ==
> it might also help to have mx records for lowden, children, sandbox,
> and home that all point to home.
>
> also...add a second ns record that points to ns1.speakeasy.net so that
> you get the redundancy you're supposed to get.
The latter point is clear, but I don't know what you mean by "mx records for
lowden, ... that all point to home". I re-read the mail chapter in "DNS and
BIND", which goes to great lengths to explain backup mail hosts, but I didn't
notice anything about MX records that "point to" anything. What am I missing
here?
Once again, thanks. It was amusing and interesting. I learned something.
I'm very glad I asked for help instead of punting and switching to another MTA.
Regards,
--jkl