ipv6 PTR rDSN error

Discussion in 'Server Operation' started by Gerritdelange, Jul 30, 2024.

  1. Gerritdelange

    Gerritdelange New Member

    I was getting PTR errors on ipv6 from google mail.
    the rDNS for Ip4 works, but my registrar is not able to add the ipv6 ptr record for my mail server.
    I tried to disable ipv6 on Postfix by doing this:
    postfix master.cf
    imap -o inet_protocols = ipv4
    did not work.
    after I force in the main.cf file inet_protocol = ipv4 it seem to work when sending to mail addresses outside the server, but when I send to mails that is on the same server I get the following error:
    postfix/smtpd[2962994]: fatal: cannot handle socket type AF_INET6 with "inet_protocols = ipv4"
    Any suggestion
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Disable IPv6 completely on that host. My understanding is Postfix et al automatically use all interfaces they find, so if there are no IPv6 connections they are not used.
    That is very strange. Are you sure? Where did you get that IPv6 number? Your hoster should be able to set PTR for IPv6.
     
  3. Gerritdelange

    Gerritdelange New Member

    I got the IPv6 from the poster, they are investigating it?
    Where do I disbale IPV6 on the server?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Read instructions for your OS and OS version, there probably is a wiki or some other form of documentation.
     
  5. john-mcarthyyy

    john-mcarthyyy New Member

    That sounds really frustrating Since setting inet_protocols = ipv4 worked for external mail but not internal, it’s possible something is still trying to use IPv6. Double-check both master.cf and main.cf to make sure inet_protocols = ipv4 is set in both files, and don’t forget to restart Postfix after making the changes. If you're running Dovecot, it might also have IPv6 settings that need adjusting. Give that a shot and see if it helps.
     

Share This Page