*BSD News Article 68793


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!news.cais.net!bofh.dot!news.mathworks.com!newsfeed.internetmci.com!news.tpp.com!usenet
From: forest@teamx.riatax.com (Forest Wilkinson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Mail or DNS configuration?
Date: Fri, 17 May 1996 19:38:41 GMT
Organization: Research Institute of America, Team X
Lines: 33
Message-ID: <4nil6h$9bg@news.tpp.com>
References: <319C0A04.77C4@mcs.com>
NNTP-Posting-Host: gateway.tpp.com
X-Newsreader: Forte Free Agent 1.0.82

Eli Lazich <elazich@mcs.com> wrote:

> I can send mail to users at FOO1.FOO.COM just fine but 
>what change and where does it need to be made so that I can send mail to 
>a user at FOO.COM instead of the specific machine they are on. 

Assuming that foo1.foo.com is the only machine that should receive
mail, you need to do two things:

1. Create an MX record in DNS that looks something like this:

foo.com.	IN MX	10 foo1.foo.com.

2. Add these lines to the appropriate places in the sendmail.cf on
foo1.foo.com:

Cw foo.com
DMfoo.com

The first line will tell foo1.foo.com's sendmail to accept mail for
foo.com, and deliver it locally.  The second line will tell sendmail
to rewrite return addresses so that mail appears to come from foo.com.

If you're using sendmail's m4 package for generating your sendmail.cf,
add these lines to your .mc file instead of modifying the .cf file
directly:

MASQUERADE_AS(foo.com)dnl
Cw foo.com

Forest