get local sendmail to use MX records
Mark Frank
mark at mark-and-erika.com
Wed Feb 23 18:17:24 GMT 2005
* 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 at 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 at 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
More information about the freebsd-questions
mailing list