Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 1996 15:40:05 -0700
From:      Nate Williams <nate@sri.MT.net>
To:        joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc:        nate@rocky.sri.MT.net (Nate Williams), hackers@FreeBSD.org
Subject:   Re: Sendmail.cf question
Message-ID:  <199601102240.PAA19239@rocky.sri.MT.net>
In-Reply-To: <199601102214.XAA07274@uriah.heep.sax.de>
References:  <199601101945.MAA18558@rocky.sri.MT.net> <199601102214.XAA07274@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> [longish question deleted]
> 
> Give your router box a real name, not just the (sub)domain name.

Unfortunately, I don't have that ability.  This is the name/I.P. address
given by the ISP for the router box.  It's internal name is gateway, but
that's its name in our Class C.

> Keep this:
> 
> > rocky.sri.MT.net        preference = 0, mail exchanger = rocky.sri.MT.net
> > rocky.sri.MT.net        preference = 5, mail exchanger = sri.MT.net
> 
> It's ok.
> 
> Make this:
> 
> > And, the important DNS stuff for my router box.
> > sri.MT.net      inet address = 204.94.231.129
> > sri.MT.net      preference = 0, mail exchanger = rocky.sri.MT.net
> > sri.MT.net      preference = 5, mail exchanger = sri.MT.net
> > rocky.sri.MT.net        inet address = 204.182.243.10
> 
> look like
> 
> router			IN	A	204.94.231.129
> 			IN	MX	0	router
> 			IN	MX	5	rocky
> 
> This just means that mail addressed directly to router.sri.MT.net will
> be most preferably delivered to the host itself, or possibly backed up
> for delivery at rocky (if necessary).

Unfortunately, I can't right now.  However, we are going to get a new
class address soon, so hopefully we can set things right and have the
router address given a different name from our sub-net.

> Add
> 
> Cw	sri.MT.net.
> 
> to rocky's sendmail.cf, so it does accept the mail addressed to the
> subdomain as its own.

Done.

What I ended up doing was this:

On the router, I setup /etc/sendmail.cf with the following additions:
Cwlocalhost sri.MT.net

[ Because it think's it's name is 'gateway.sri.MT.net' ]

# who gets *all* email traffic (except for those in class L below)
DHrocky.sri.MT.net


# who I masquerade as (null for no masquerading)
DMsri.MT.net

# class L: names that should be delivered locally, even if we have a relay
# class E: names that should be exposed as from this host, even if we masquerade
CLroot
CEroot


The magic was in the DH stuff.  I also had to leave DR to null else this
wouldn't work.  Now, any email addressed to this box get's passed onto
'rocky.sri.MT.net'.  Also, I've got this router box doing MX for my home
box, and it seems to know to queue up the email on the router instead of
passing onto rocky in this case.

I'll have to revisit this after we redo our addressing, but for now it
does what I want it to do.  Thanks for the help!



Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601102240.PAA19239>