From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 18:11:55 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 0BE9316A4CE for ; Wed, 23 Feb 2005 18:11:55 +0000 (GMT) Received: from mail.scls.lib.wi.us (mail.scls.lib.wi.us [198.150.40.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71E2A43D58 for ; Wed, 23 Feb 2005 18:11:54 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from [172.26.2.238] ([172.26.2.238]) by mail.scls.lib.wi.us (8.12.9p2/8.12.9) with ESMTP id j1NIBrkA041194; Wed, 23 Feb 2005 12:11:53 -0600 (CST) (envelope-from nalists@scls.lib.wi.us) Message-ID: <421CC73F.7000805@scls.lib.wi.us> Date: Wed, 23 Feb 2005 12:11:11 -0600 From: Greg Barniskis User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gerard Meijer References: <0d6501c519cd$01466d70$9600000a@guus> <124566255.20050223183027@hexren.net> <0d7701c519d0$794cdea0$9600000a@guus> In-Reply-To: <0d7701c519d0$794cdea0$9600000a@guus> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: Hexren 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:11:55 -0000 Gerard Meijer wrote: > No, that is not the solution. It could be, but it's not what I want. > > 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. > > I agree with you, a solution would be to set in the alias file of server > B something like gerard: root@serverA.com . If this was about just one > e-mailaddress, it wouldn't be a problem, but I'm actually talking about > a little more then one address. > > So that's not a good solution for me. If I followed you correctly, "server B" *formerly* was the appropriate end point for mail for "domain.com". If that is true, then on server B, the sendmail config probably indicates that mail destined for domain.com is delivered locally. Remove that indicator and it should revert to MX lookup behavior to find the appropriate handler for the domain. There may be multiple places in the sendmail config where domain.com is named for different purposes. Hunt them all down and kill them. -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) , (608) 266-6348 A: Because it reverses the natural flow of a dialog. Q: Why is top posting undesirable when replying?