Sam Varshavchik schrieb:
> You will find that DNS servers will themselves randomize the order of IP
> address and MX records of the same priority, so the order of records
> that have the same priority is completely irrelevant here.

Yes, I know that and therefore your code is perfectly okay as long as a
mail server only uses IPv4 connections. But the order the server should
 process IPv6 and IPv4 addresses is NOT random.

See RFC 3974, section 3, point 5, the note there:

        NOTE: If one or more address records are found, an
        implementation may sort addresses based on the implementation's
        preference of A or AAAA records.  To encourage the transition
        from IPv4 SMTP to IPv6 SMTP, AAAA records should take
        precedence.  The sorting may only reorder addresses from MX
        records of the same preference.  RFC 2821 section 5 paragraph 4
        suggests randomization of destination addresses.  Randomization
        should only happen among A records, and among AAAA records (do
        not mix A and AAAA records).


Matthias

-- 
Matthias Wimmer      Fon +49-700 77 00 77 70
Züricher Str. 243    Fax +49-89 95 89 91 56
81476 München        http://ma.tthias.eu/

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to