From owner-freebsd-questions Wed Feb 10 06:11:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA01286 for freebsd-questions-outgoing; Wed, 10 Feb 1999 06:11:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA01278 for ; Wed, 10 Feb 1999 06:11:14 -0800 (PST) (envelope-from jobaldwi@vt.edu) Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by quackerjack.cc.vt.edu (8.8.8/8.8.8) with ESMTP id JAA28395 for ; Wed, 10 Feb 1999 09:11:12 -0500 (EST) Received: from john.baldwin.cx (jobaldwi.campus.vt.edu [198.82.67.63]) by sable.cc.vt.edu (8.8.8/8.8.8) with ESMTP id JAA07948 for ; Wed, 10 Feb 1999 09:11:10 -0500 (EST) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 10 Feb 1999 09:11:10 -0500 (EST) From: John Baldwin To: freebsd-questions@FreeBSD.ORG Subject: simple sendmail question... Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I have a hopefully simple sendmail question regarding masquerading. I have a two computer lan in my room, one of which acts as a gateway running natd to my sole connection to the outside world. I have a domain name registered, and want to my mail to come from joe@foo.bar instead of joe@machine.foo.bar, especially since my non-gateway machines don't have their names registered in DNS. Now, I have a cname for the gateway machine of mail.foo.bar (since it is my designated mail server) and an mx record foo.bar that points to mail.foo.bar. I've also modified sendmail as follows: - set DM to DMfoo.bar - set DR to DRmail.foo.bar - set DH to DHmail.foo.bar On the internal machine I've also set DS to DSmail.foo.bar. I've also got the following in /etc/mail/sendmail.cw on the mail server: foo.bar machine1.foo.bar machine2.foo.bar Now, everything seems to work fine for the most part. Now, if I run the following command on the internal machine: > cat | sendmail me To: me From: me Subject: test blah . > Then sendmail changes the From address to me@foo.bar and the To address and ReturnPath to me@machine.foo.bar. I also cannot run send-pr from my internal machine because mail delivery dies with this error: ----- Transcript of session follows ----- ... while talking to hub.freebsd.org.: >>> MAIL From: SIZE=2183 <<< 451 ... Domain does not resolve FreeBSD-gnats-submit@freebsd.org... Deferred: 451 ... Domain does not resolve Warning: message still undelivered after 4 hours Will keep trying until message is 5 days old Does anyone know what else I need to configure? I'd really like to be able to use send-pr as I've a few to submit, including a patch or two. :) Thanks. --- John Baldwin -- http://members.freedomnet.com/~jbaldwin/ PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message