From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 21:40:57 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 DB1B716A4CE for ; Wed, 23 Feb 2005 21:40:56 +0000 (GMT) Received: from mail.adventuras.no (mail.adventuras.no [194.63.250.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD0F343D5D for ; Wed, 23 Feb 2005 21:40:55 +0000 (GMT) (envelope-from lars@adventuras.no) Received: from mail.adventuras.no (seven [127.0.0.1]) by mail.adventuras.no (8.12.10/8.12.10) with ESMTP id j1NLeQvH031335 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 23 Feb 2005 22:40:26 +0100 Received: (from apache@localhost) by mail.adventuras.no (8.12.10/8.12.10/Submit) id j1NLeQwg031333; Wed, 23 Feb 2005 22:40:26 +0100 Received: from 213.236.228.129 (SquirrelMail authenticated user lars) by mail.adventuras.no with HTTP; Wed, 23 Feb 2005 22:40:26 +0100 (CET) Message-ID: <58023.213.236.228.129.1109194826.squirrel@mail.adventuras.no> In-Reply-To: <0d7701c519d0$794cdea0$9600000a@guus> References: <0d6501c519cd$01466d70$9600000a@guus> <124566255.20050223183027@hexren.net> <0d7701c519d0$794cdea0$9600000a@guus> Date: Wed, 23 Feb 2005 22:40:26 +0100 (CET) From: "Lars Kristiansen" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.4-1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Adventuras: du kan filtrere etter AdvSpamScore over 5-10 X-Adventuras-SpamCheck: not spam, SpamAssassin (score=-3.758, required 7, autolearn=not spam, AWL -1.16, BAYES_00 -2.60) X-MailScanner-From: lars@adventuras.no 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 21:40:57 -0000 > 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. Do you mean that your /bin/hostname show "domain.com" and not "machine.domain.com"? Anyway, you may have the option to bury the problem by using smart_host and mail_hub: like this in sendmail.mc: define(`SMART_HOST',`serverA.domain.com.')dnl define(`MAIL_HUB',`serverA.domain.com.')dnl -- Hilsen Lars > > 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. > > ----- Original Message ----- > From: "Hexren" > To: "Gerard Meijer" > Cc: > Sent: Wednesday, February 23, 2005 6:30 PM > Subject: Re: get local sendmail to use MX records > > >> GM> Hi, >> >> GM> I have the following situation: >> >> GM> I have moved my mail services from my dedicated server to another >> server. The MX records were updated at the DNS host to point to the >> other >> server. Email from the outside is being routed >> GM> correctly to the new server, but now the local scripts on the >> dedicated server are still being routed to the local accounts and not >> actually sent to the other server. >> >> GM> So sendmail on the first server tries to use localhost as a relay, >> instead of looking up the MX records for the domain. >> >> GM> Anybody knows how to solve this? >> >> GM> Thanks! >> >> GM> Gerard >> GM> _______________________________________________ >> GM> freebsd-questions@freebsd.org mailing list >> GM> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> GM> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> --------------------------------------------- >> >> Quick and dirty: /etc/mail/aliases >> putting in something like "root: root@example.com" should do the >> trick. Or am I missing something ? >> >> Hexren >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >