Re: [exim] How to get the local MX? (And domain?)

Pàgina inicial
Delete this message
Reply to this message
Autor: Toralf Lund
Data:  
A: exim-users
Assumpte: Re: [exim] How to get the local MX? (And domain?)
Tony Finch wrote:

>On Wed, 16 Mar 2005, Toralf Lund wrote:
>
>
>>Is there a simple and direct way to obtain the MX for the local domain?
>>
>>
>
>No, because it is not well defined. What's the local domain?
>$primary_hostname? Some parent domain of $primary_hostname?
>$qualify_domain? +local_domains? These are all different on
>my machines, and they still fail to cover all the possibilities.
>
>

Maybe it's not that *well-defined,* but it in the Linux world it's at
least *defined*. See 'man dnsdomainname'.

>In fact the concept of "local domain" might not be explicitly
>defined in the configuration at all. What is more, each of the
>possible domains may have any number of MXs.
>
>

I shouldn't have said, "the local MX" of course, but rather the "local
MX list."

But there is always one *primary* MX, isn't there?

- Toralf