sendmail and /etc/hosts

Nathan Vidican nathan at
Thu Dec 9 20:41:59 UTC 2010

On Thu, Dec 9, 2010 at 3:08 PM, Gabor Illo <stageline at> wrote:

> Hello
> My problem: sendmail skipping /etc/host and use MX record. Somebody
> have any ide how use sendmail /etc/host file?
> Dec  9 20:58:23 www sm-mta[29438]: oB9Fxmx0027174:
> to=<sdghhg at>, delay=03:58:35, xdelay=00:00:00, mailer=esmtp,
> pri=1313137,, dsn=4.0.0, stat=Deferred:
> Connection refused by
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at"

Could you clarify in regards to what you want sendmail to actually use
/etc/host for?

If your intent is to re-map where mail destined for a given host/domain goes
- (ie override DNS MX records) - then /etc/hosts is not going to do what you
want. Depending on where you intend to redirect to, you'll need either
mailer table, access table entries or to configure your local sendmail to
receive for that domain to accomplish that. You might try reading further

Specifically in regards to email and DNS relationships.

Nathan Vidican
nathan at

More information about the freebsd-questions mailing list