> =>> Does anyone know how to send mail to an IP address rather
> =>> than a domain name, for example, sending mail to
> =>>
> =>>  [EMAIL PROTECTED]
> =>>
> =>> I have put the IP address 1.2.3.4 in the 'local-host-names' file
> =>> and restarted sendmail. Even that did not work. I get
> =>> "Unrouteable mail domain 1.2.3.4" error messages.
> =>>
> =>>  Any ideas?
> =>>
> =>>  Thanks, Jason
>
> Just send it to [EMAIL PROTECTED]

That is correct, I believe.  The email RFC (I forget which one, and too busy
to look it up) says that when specifying an IP instead of a domain name, one
must put it in square brackets, as the previous contributor points out.  This
is to distinguish the IP 1.2.3.4 from the domain name "1.2.3.4" (to clarify a
bit, just imagine a domain called "1.2.3.org")

I think Sendmail was trying to look up the MX record of a domain named
"1.2.3.4" (and failing, of course).  That is the source of your error message.
When you put it in brackets, Sendmail should (theoretically) know it's an IP,
not a hostname, and therefore won't try to look up the MX record (I think).

By the way, an MX record returns a hostname, not an IP.  After retrieving the
MX hostname, the corresponding IP address of that MX host is looked up in the
DNS.  In the case of an IP being erroneously entered in an MX record, it will
trigger problems very like the one you already encountered, in which mailers
will insist the "domain is unrouteable."

Now, how to tell Sendmail that it should accept mail for [1.2.3.4] as local...
that's another story, and I do not know enough about Sendmail to advise you.
Perhaps it will work by default for the IP of the host that Sendmail is
running on.  Does anyone know?

Jim


_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/seawolf-list

Reply via email to