From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 18:17:24 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 C634216A4CE for ; Wed, 23 Feb 2005 18:17:24 +0000 (GMT) Received: from dc1.ihostsxode.net (dc1.ihostsxode.net [208.254.27.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF9CF43D1D for ; Wed, 23 Feb 2005 18:17:23 +0000 (GMT) (envelope-from mark@mark-and-erika.com) Received: from guinness.local.mark-and-erika.com ([151.205.245.38]) by dc1.ihostsxode.net (8.12.11/8.12.11) with ESMTP id j1NIBoMZ008913 for ; Wed, 23 Feb 2005 13:11:50 -0500 Received: from guinness.local.mark-and-erika.com (localhost [127.0.0.1]) j1NIHMRb019060 for ; Wed, 23 Feb 2005 13:17:22 -0500 (EST) (envelope-from mark@mark-and-erika.com) Received: (from mfrank@localhost)j1NIHMol019059 for freebsd-questions@freebsd.org; Wed, 23 Feb 2005 13:17:22 -0500 (EST) (envelope-from mark@mark-and-erika.com) Date: Wed, 23 Feb 2005 13:17:22 -0500 From: Mark Frank To: freebsd-questions@freebsd.org Message-ID: <20050223181722.GD3123@guinness.local.mark-and-erika.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <0d6501c519cd$01466d70$9600000a@guus> <124566255.20050223183027@hexren.net> <0d7701c519d0$794cdea0$9600000a@guus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d7701c519d0$794cdea0$9600000a@guus> X-Certified: Outgoing email is certified Windows Free. X-Unexpected-Header: The Spanish Inquisition X-System: FreeBSD 5.3-RELEASE-p5 User-Agent: Mutt/1.5.8i Subject: Re: get local sendmail to use MX records 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: Wed, 23 Feb 2005 18:17:24 -0000 * On Wed, Feb 23, 2005 at 06:52:37PM +0100 Gerard Meijer wrote: > An example: > > domain: domain.com > domain.com is hosted on server B. The MX record for domain.com says that > server A handles the mail of domain.com. So anyname@domain.com should be > handled by server A. > > This works, but now on server B there runs a script that sends an e-mail to > gerard@domain.com . What SHOULD happen is that sendmail on server B looks > up the MX record for domain.com, sees that server A handles the mail for > domain.com and sends the mail to server A. What happens is that sendmail > recognizes the domain as hosted on that machine and uses localhost to > deliver the mail. It looks for user gerard (in this example), which doesn't > exist. Somewhere, probably in /etc/mail/local-host-names, you told sendmail that domain.com should be delivered locally. Remove that entry and restart sendmail. If if was defined in /etc/mail/.mc, then edit /etc/mail/.mc and restart sendmail with a "make all install restart". You can probably find the entry with a "grep domain.com /etc/mail/*". Mark -- "The fix is only temporary...unless it works." - Red Green