Date: Wed, 23 Feb 2005 13:17:22 -0500 From: Mark Frank <mark@mark-and-erika.com> To: freebsd-questions@freebsd.org Subject: Re: get local sendmail to use MX records Message-ID: <20050223181722.GD3123@guinness.local.mark-and-erika.com> In-Reply-To: <0d7701c519d0$794cdea0$9600000a@guus> References: <0d6501c519cd$01466d70$9600000a@guus> <124566255.20050223183027@hexren.net> <0d7701c519d0$794cdea0$9600000a@guus>
next in thread | previous in thread | raw e-mail | index | archive | help
* 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/<HOSTNAME>.mc, then edit /etc/mail/<HOSTNAME>.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050223181722.GD3123>
