From owner-freebsd-questions@FreeBSD.ORG Sun Feb 6 10:07:06 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 946AD16A4CE for ; Sun, 6 Feb 2005 10:07:06 +0000 (GMT) Received: from smtp.ade.swiftdsl.com.au (smtp.ade.swiftdsl.com.au [218.214.228.98]) by mx1.FreeBSD.org (Postfix) with SMTP id 6227343D31 for ; Sun, 6 Feb 2005 10:07:05 +0000 (GMT) (envelope-from no-spam@swiftdsl.com.au) Received: (qmail 20547 invoked from network); 6 Feb 2005 10:07:07 -0000 Received: from unknown (HELO daemon.foo.lan) (218.214.176.70) by smtp.ade.swiftdsl.com.au with SMTP; 6 Feb 2005 10:07:07 -0000 From: Ian Moore To: freebsd-questions@freebsd.org User-Agent: KMail/1.7.2 MIME-Version: 1.0 Date: Sun, 6 Feb 2005 20:36:54 +1030 Content-Type: multipart/signed; boundary="nextPart6478555.NVT0AcOrnQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502062037.02494.no-spam@swiftdsl.com.au> Subject: Sendmail masquerading configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 10:07:06 -0000 --nextPart6478555.NVT0AcOrnQ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out o= f=20 the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of root@myhost.foo.bar, = I=20 want it to be root@foo.bar instead. I need to do this because our "smart host" mail server (over which I have n= o=20 control) rejects mail from our domain if it has a hostname in it. Since my= =20 server is in a VPN, I forward root's mail to my own account on the 'smart=20 host' server to make it accessible from outside the VPN. I think that the masquerading settings have changed somewhat since I last d= id=20 this. I read http://www.sendmail.org/m4/masquerading.html, it suggests=20 MASQUERADE_AS(`host.domain') but when I tried that, it didn't work. I believe it used to be just a matter of adding Dmfoo.bar to sendmail.cf &= =20 restart sendmail, but that doesn't work. I have commented out the C{E}root line so that doesn't override the Dm sett= ing=20 for root. Sorry this OT, I did try to find somewhere else to ask this question, but t= he=20 newsgroup listed on the sendmail site doesn't seem to exist (according to m= y=20 news reader) so I'm asking here instead. Cheers, =2D-=20 Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc --nextPart6478555.NVT0AcOrnQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCBexGPUlnmbKkJ6ARAhUuAJ9dS0Ep/ob0P4UtU3b+08dU9z7imACdEms7 A4pfddyBcI4jgYJSA/a5qYw= =1hI5 -----END PGP SIGNATURE----- --nextPart6478555.NVT0AcOrnQ--