From owner-freebsd-questions Sun Apr 22 14:57:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id B7AAB37B422 for ; Sun, 22 Apr 2001 14:57:10 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.2/8.11.1) id f3MLuUY51995; Mon, 23 Apr 2001 09:56:30 +1200 (NZST) (envelope-from jonc) Date: Mon, 23 Apr 2001 09:56:30 +1200 From: Jonathan Chen To: Andrew Gould Cc: FreeBSD Mailing List Subject: Re: sendmail masquerading problem Message-ID: <20010423095630.D47279@itouchnz.itouch> References: <20010422155745.45481.qmail@web13401.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010422155745.45481.qmail@web13401.mail.yahoo.com>; from andrewgould@yahoo.com on Sun, Apr 22, 2001 at 08:57:45AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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