• # Config DNS

    Posté par (site web personnel) . En réponse au message Soucis avec un seul domaine de destination sur postfix. Évalué à 1.

    Vérifie les choses suivantes :
    - la valeur du record MX du domaine (par ex pour linuxfr.org)

    % host -t MX linuxfr.org

    linuxfr.org mail is handled by 5 main.linuxfr.org.

    • la valeur du record A et AAAA pointé par le MX (du coup ici main.linuxfr.org, je fais pour le A)

    % host -v -t A main.linuxfr.org

    Trying "main.linuxfr.org"
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50054
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;main.linuxfr.org. IN A

    ;; ANSWER SECTION:
    main.linuxfr.org. 671 IN A 213.36.253.175

    Ici on voit qu'il y a un type A.
    Vérifie que dans ton cas c'est bien un record de type A et pas CNAME.

    La RFC 2181 est très claire :
    10.3. MX and NS records

    The domain name used as the value of a NS resource record, or part of
    the value of a MX resource record must not be an alias. Not only is
    the specification clear on this point, but using an alias in either
    of these positions neither works as well as might be hoped, nor well
    fulfills the ambition that may have led to this approach. This
    domain name must have as its value one or more address records.
    Currently those will be A records, however in the future other record
    types giving addressing information may be acceptable. It can also
    have other RRs, but never a CNAME RR.

    Un MX ne peut pas pointer vers un record CNAME. Seulement A et AAAA.

    Si c'est un CNAME qui est retourné, c'est que le domaine que tu essaye de joindre est mal configuré, il ne respecte pas la RFC. Ne t'attends pas à ce que ça marche avec Postfix. Si ça marche avec gmail c'est qu'ils ne respectent pas la RFC non plus.