From owner-freebsd-questions Mon Apr 23 19:32:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web13406.mail.yahoo.com (web13406.mail.yahoo.com [216.136.175.64]) by hub.freebsd.org (Postfix) with SMTP id 77DF037B43E for ; Mon, 23 Apr 2001 19:32:24 -0700 (PDT) (envelope-from andrewgould@yahoo.com) Message-ID: <20010424023224.6974.qmail@web13406.mail.yahoo.com> Received: from [38.36.58.207] by web13406.mail.yahoo.com; Mon, 23 Apr 2001 19:32:24 PDT Date: Mon, 23 Apr 2001 19:32:24 -0700 (PDT) From: Andrew Gould Subject: Re: sendmail masquerading problem - Fixed! To: FreeBSD Mailing List In-Reply-To: <20010423095630.D47279@itouchnz.itouch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks to everyone who helped out. The solution that finally worked was simply to use the default sendmail.cf and define Dj, DS and DM at the locations where they are shown. (I was had not defined Dj previously.) Question: Does the placement of the definitions in the file matter? That is, if I defined Dj at the end of sendmail.cf, would it still work? I should now be able to dial into one modem, dial the internet on the second modem, and manage my email without dealing with XWindow. Is this really necessary? No, but I'm having a lot of fun learning! Thanks again, Andrew Gould --- Jonathan Chen wrote: > On Sun, Apr 22, 2001 at 08:57:45AM -0700, Andrew > Gould wrote: > > [...] > > I made the following changes to > > /etc/mail/sendmail.cf: > > > > DSvipmail.earthlink.net > > DMdatawok.com > > > > I then restarted sendmail. When I try to send > mail, > > Earthlink rejects the mail; indicating that the > sender > > domain, 'terrek.datawok.com', needs to exist. > > That's 'cos terrek.datawok.com hasn't got a DNS > entry; but you don't > need this to get your mail system working... > > > Masquerading does not seem to be working. > > You need to get a working config (don't need to > change hosts files et > al). Your m4 config file (and you should use them > instead of tweaking > sendmail.cf directly) should look something like: > > VERSIONID(`@(#)datawok.mc') > OSTYPE(bsd4.4)dnl > DOMAIN(generic)dnl > > FEATURE(`use_cw_file') > FEATURE(`access_db') > FEATURE(`mailertable') > > FEATURE(local_lmtp)dnl > define(`LOCAL_MAILER_FLAGS', > LOCAL_MAILER_FLAGS`'P)dnl > > MASQUERADE_AS(datawok.com) > FEATURE(`masquerade_envelope') > > MAILER(local)dnl > MAILER(smtp)dnl > > Djdatawok.com > > Plonk it down in /usr/share/sendmail/cf/cf, and > build it with: > > m4 ../m4/cf.m4 datawok.mc > datawok.cf > cp datawok.cf /etc/mail/sendmail.cf > > and restart sendmail. > -- > Jonathan Chen > ---------------------------------------------------------------------- > Computers are like > air conditioners. > They stop working when > you open Windows. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of > the message __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message