*BSD News Article 98850


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!nntprelay.mathworks.com!howland.erols.net!newsfeed.internetmci.com!uuneo.neosoft.com!not-for-mail
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Mail question
Date: Mon, 30 Jun 1997 17:51:35 -0500
Organization: NeoSoft, Inc.  
Lines: 54
Message-ID: <n9d9p5.ci2.ln@dolphin.neosoft.com>
References: <5p47sk$a1r@quail.swcp.com>
Reply-To: conrads@neosoft.com (Conrad Sabatier)
NNTP-Posting-Host: as5200-port-254.no.neosoft.com
X-Newsreader: trn 4.0-test58 (13 May 97)
Originator: conrads@neosoft.com (Conrad Sabatier)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43818

[ posted and mailed ]

In article <5p47sk$a1r@quail.swcp.com>, Charlie Sorsby <crs@swcp.com> wrote:
>
>But every once in a while, I get bounced mail because the recipient
>doesn't recognize "quail.swcp.com" -- of course there is no such
>host registered.  I thought that sendmail was properly masquerading
>me as swcp.com as a result of:
>
>DMswcp.com

Wrong!  See below.

>in /etd/sendmail.cf which I built using m4 and the files provided.
>
>If you can provide help, please tell me not only what I should add
>(or change) in sendmail.cf but also where it should go.  I'm *not*
>a sendmail expert.

I was having the same problem.  My machine is (locally) named
dolphin.neosoft.com; not a registered name.  Any mail sent to
"conrads@neosoft.com" is routed to my POP host by my ISP, so 
this is what I use for my From: and Reply-To: addresses.  

Here's what I did in sendmail.cf to solve the bouncing mail 
problem you describe:

First, to avoid having "dolphin" anywhere in the header:

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Djlocalhost.neosoft.com

Note: do *not* try (as I did at first) "Djneosoft.com"!!!  Mail from
cron jobs for "news" was being sent to my ISP's news admin!

Then, to ensure that my From: address contains neither "dolphin" nor
"localhost":

# class E: names that should be exposed as from this host, even if we masquerade
# class L: names that should be delivered locally, even if we have a relay
# class M: domains that should be converted to $M
#CL root
CE root
CM dolphin.neosoft.com,localhost.neosoft.com

# who I masquerade as (null for no masquerading) (see also $=M)
DMneosoft.com

Hope this helps.
-- 
Conrad Sabatier
http://www.neosoft.com/~conrads