Date: Wed, 10 Feb 1999 09:11:10 -0500 (EST) From: John Baldwin <jobaldwi@vt.edu> To: freebsd-questions@FreeBSD.ORG Subject: simple sendmail question... Message-ID: <XFMail.990210091110.jobaldwi@vt.edu>
next in thread | raw e-mail | index | archive | help
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:<me@machine.foo.bar> SIZE=2183 <<< 451 <me@machine.foo.bar>... Domain does not resolve FreeBSD-gnats-submit@freebsd.org... Deferred: 451 <me@machine.foo.bar>... 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 <jobaldwi@vt.edu> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990210091110.jobaldwi>