Issue with postfix and ipv4 only server

  • I just found that postfix had problems to deliver email for domains that have ipv6 enabled in their mx (such as google ones)
    The issue seems to be due to postfix behaviour when having inet_protocols = ipv4, ipv6


    My configuration:

    • Debian squeeze
    • Imscp with ipv6 disabled
    • Ipv6 enabled on the system (as it's the default in debian) but without any adressing configured, so it doesn't have address/default gw, only the fe80:: autogenerated address
    • inet_protocols = ipv4, ipv6 set on postfix


    After changing the line to inet_protocols = ipv4, the delivery is back to normal.
    For the rest of the daemons everything is working as expected...


  • Hello ;


    Well, the logs please ;) I must see the error message you are receiving.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • There you go:

    Code
    1. Oct 4 12:52:34 server postfix/error[24957]: A7B45A4009: to=<[email protected]>, relay=none, delay=11086, delays=11085/0.37/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to ASPMX3.GOOGLEMAIL.COM[2a00:1450:4008:c01::1b]:25: Network is unreachable)Oct 4 12:52:34 server postfix/error[24956]: 5BF4E96755: to=<[email protected]>, relay=none, delay=248029, delays=248028/0.37/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to ASPMX3.GOOGLEMAIL.COM[2a00:1450:4008:c01::1b]:25: Network is unreachable)


    The message is quite clear, postfix is trying to deliver to a host that isn't reachable (by any means) on ipv6


    For example, with telnet it works normally, after seing that the AAAA ip is not enroutable it just uses the ipv4

    Code
    1. # telnet google.com 80
    2. Trying 173.194.34.201...
    3. Connected to google.com.