From owner-freebsd-questions@FreeBSD.ORG Sun Feb 6 10:50:11 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 E90E616A4CF for ; Sun, 6 Feb 2005 10:50:11 +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 D945D43D48 for ; Sun, 6 Feb 2005 10:50:06 +0000 (GMT) (envelope-from no-spam@swiftdsl.com.au) Received: (qmail 20632 invoked from network); 6 Feb 2005 10:50:09 -0000 Received: from unknown (HELO daemon.foo.lan) (218.214.176.70) by smtp.ade.swiftdsl.com.au with SMTP; 6 Feb 2005 10:50:09 -0000 From: Ian Moore To: freebsd-questions@freebsd.org Date: Sun, 6 Feb 2005 21:19:56 +1030 User-Agent: KMail/1.7.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart11189626.ZmyBy2ZLnY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502062120.04731.no-spam@swiftdsl.com.au> cc: Ted Mittelstaedt Subject: Re: 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:50:12 -0000 --nextPart11189626.ZmyBy2ZLnY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 6 Feb 2005 20:58, Ted Mittelstaedt wrote: > > -----Original Message----- > > From: owner-freebsd-questions@freebsd.org > > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Ian Moore > > Sent: Sunday, February 06, 2005 2:07 AM > > To: freebsd-questions@freebsd.org > > Subject: Sendmail masquerading configuration > > > > > > 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 of > > 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 > > want it to be root@foo.bar instead. > > Not possible, I think, as I recall masquerading only works on > users not in the T macro. (ie: Trusted Users) root is > most definitely in this macro. I guess even if I redirect root's mail to another user & forward that to my= =20 account on the ISP's server, it wouldn't work for the same reason. > Masquerading is a bullshit way of doing this kind of > thing anyhow. Use the -f switch if your calling the sendmail > binary directly from programs. If your using /bin/mail > as a MUA, then get a better one like Elm or Pine that > lets you do this. It's mail from cron, periodic etc. that I want to redirect to my work email= =20 account, so i can tell if my server is still alive when I'm on holidays. This wasn't a problem until a few days ago when our ISP started blocking ma= il=20 with a hostname attached. Cheers, =2D-=20 Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc --nextPart11189626.ZmyBy2ZLnY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCBfZcPUlnmbKkJ6ARAu3gAJ49dG1L4flXshEs/SrvNbmBhZjwiACfZEpM NYnL1evrTQWsGrMSm0/Ymwk= =kYgZ -----END PGP SIGNATURE----- --nextPart11189626.ZmyBy2ZLnY--