From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 01:51:31 2003 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 A45A616A4CE for ; Thu, 18 Dec 2003 01:51:31 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 012E743D36 for ; Thu, 18 Dec 2003 01:51:27 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hBI9oXTA017356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Dec 2003 09:51:04 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hBI9oWZ3017355; Thu, 18 Dec 2003 09:50:32 GMT (envelope-from matthew) Date: Thu, 18 Dec 2003 09:50:32 +0000 From: Matthew Seaman To: "Michael E. Mercer" Message-ID: <20031218095032.GA17098@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Michael E. Mercer" , FreeBSD questions References: <1071698821.415.8.camel@dual.mmercer.com> <1071699714.415.12.camel@dual.mmercer.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <1071699714.415.12.camel@dual.mmercer.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD questions Subject: Re: How do I have sendmail forward emails from root... 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: Thu, 18 Dec 2003 09:51:31 -0000 --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 17, 2003 at 05:21:55PM -0500, Michael E. Mercer wrote: > In /etc/mail, I ran: > make cf maps aliases install stop start >=20 > after every change... >=20 > More info, now that I think of it. The mail server is getting the > emails, but kicks it back because > the the "From:" header has an unknown host. > root@dual.mmercer.com >=20 > How do I remedy this? 'root' is by default a member of class E in the sendmail config -- that's "Exposed users" or users who are exempt from masquerading. Emails from that clas of UID will have the FQDN of the sending host as the RHS of the e-mail address. The answer is to add the names of all of the hosts that your smart host handles mail for to /etc/mail/local-host-names (one per line). Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/4XhodtESqEQa7a0RAmKTAJ4ooT1kehF9qs/rBk4quRl/YnIiJgCeObtm ubhg37jjd/STtso1naP90kI= =6Yq6 -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--