*BSD News Article 59281


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!news.msfc.nasa.gov!bcm.tmc.edu!newshost.convex.com!usenet
From: "Alan E. Ross" <alan@popi.net>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Multiple Domains Mail
Date: Wed, 17 Jan 1996 10:11:48 -0800
Organization: CONVEX Computer Corporation, Richardson, TX USA
Lines: 44
Message-ID: <30FD3BE4.3BC8@popi.net>
References: <leem.16.0009CB8F@mastnet.net>
NNTP-Posting-Host: mobil.convex.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0b5 (Win16; I)
To: Lee McMullen <leem@mastnet.net>

Lee,

I just fought the same battle.  This would be a superb FAQ entry; anybody from
BSDI listening??? :->

Basically, what I did to fix it was remake the sendmail.cf file using the
m4 command and told it to masquerade as the other domain.  The steps are
roughly:

	1. ifconfig your LAN interface to be an alias to the other domain(s)
		ifconfig eth0 new.domain alias
	
	2. Add MX records to the DNS db file.

	3. Add a CW record to the /etc/sendmail.cw file for the new domain

	4. Go to /usr/share/sendmail/cf and edit the bsdi.mc file.
		o Turn on the option for masquerading, and list the new domain.
		o I also turned on allmasquerade, for what it's worth.

	5. use the command that is shown towards the beginning of the mc file
		to remake sendmail.cf ( m4 < bsdi.mc > sendmail.cf )

	6. kill -HUP named; kill and restart sendmail.

Somebody mentioned as a follow up post to my request for help that I forgot ARP.  That
is true, but in my case I don't need it, as this is the only box on the end of an ISDN
line.  I just needed it to answer Email and spoof WWW stuff.

Hope this helps,

Alan Ross

Lee McMullen wrote:
> I am setting up a BSD 2.01 server and have several domains residing on it.
> 
> I have established the DB files for each of the domains and have them listed
> as a CNAME in the name servers db file.
> 
> When I try to send mail to any of the domains I receive a local configuration
> error from sendmail stating that the server is looping back.
> 
> I have been through the O'Reilly book several times and can find no solution
> for this.