From owner-freebsd-questions Thu Sep 18 05:06:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA01821 for questions-outgoing; Thu, 18 Sep 1997 05:06:37 -0700 (PDT) Received: from BIGFUN.vwcom.com (BIGFUN.vwcom.com [151.197.101.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA01815 for ; Thu, 18 Sep 1997 05:06:34 -0700 (PDT) Received: from WillsCreek.COM (gw.willscreek.com [151.197.101.46]) by BIGFUN.vwcom.com (8.8.6/8.8.6) with ESMTP id IAA02523 for ; Thu, 18 Sep 1997 08:01:55 -0400 (EDT) Received: from current.willscreek.com (bmc@current.willscreek.com [172.16.87.1]) by WillsCreek.COM (8.8.5/8.8.5) with ESMTP id IAA18215 for ; Thu, 18 Sep 1997 08:06:31 -0400 (EDT) Received: (from bmc@localhost) by current.willscreek.com (8.8.5/8.8.5) id IAA00477; Thu, 18 Sep 1997 08:06:30 -0400 (EDT) Date: Thu, 18 Sep 1997 08:06:30 -0400 (EDT) Message-Id: <199709181206.IAA00477@current.willscreek.com> From: Brian Clapper MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: questions@FreeBSD.ORG Subject: Re: Re-write sendmail sender address rules? In-Reply-To: <971121@toto.iv> X-Mailer: VM 6.23 under Emacs 19.34.1 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk root@ns1.apginet.com wrote: > Greetings, > > We are working on using sendmail as a relay host for internal mail > servers. So far, the internal mail servers are forwarding all > outbound mail to the main mail server. However, once that relay > sends the mail, the "FROM" field still reveals the relay's true > host name. > > What method can be used to "hide" the host name so that all mail > appears to come from "user@domain.tld" ? > > Please send any replies to root@ns1.apginet.com. > > Thanks. Assuming you're using sendmail 8.8.something, see the README file in the `cf' subdirectory of the sendmail source tree. You want the stuff on host masquerading. In particular, see the section entitled "MASQUERADING AND RELAYING", and read the paragraphs describing "allmasquerade", "limited_masquerade", and "masquerade_entire_domain" in the "FEATURE" section. See http://www.sendmail.org/ for pointers to other docs and sources of help. ----- Brian Clapper, bmc@WillsCreek.COM, http://WWW.WillsCreek.COM/ Injustice anywhere is a threat to justice everywhere. -- Martin Luther King, Jr.