Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Gmail - ipv6. Anyone else with this experience?

Gmail - ipv6. Anyone else with this experience?

Scheduled Pinned Locked Moved Solved Support
22 Posts 5 Posters 3.9k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • luckowL Offline
    luckowL Offline
    luckow
    translator
    wrote on last edited by
    #1

    I have a Cloudron instance with netcup. The instance is not configured with ipv6.
    Today i got a Message delivery failure notice with this content:

    I'm afraid I wasn't able to deliver your message
        "Your daily summary"
    to the following addresses.
    
    This is a permanent error; I've given up. Sorry it didn't work out.
    
    Intended Recipients: <firstname.lastname@gmail.com>
    Failure Reason: Error: 550 5.7.25 [2a03:xxx:xxx:xxxxxx:xxx:xxx:xxx] The IP address sending this 5.7.25 message does not have a PTR record setup, or the corresponding 5.7.25 forward DNS entry does not match the sending IP. As a policy, Gmail 5.7.25 does not accept messages from IPs with missing PTR records. For more 5.7.25 information, go to 5.7.25  https://support.google.com/a?p=sender-guidelines-ip  5.7.25 To learn more about Gmail requirements for bulk senders, visit 5.7.25  https://support.google.com/a?p=sender-guidelines.
    

    To me it feels like: Your hosting provider has attached an ipv6 address to your VPS that you are not using. Sorry, we (Gmail) did a reverse lookup and you (dump administrator) did not create a PTR record for your IPv6 address. Sorry: you are a spammer.

    IMHO lesson learned: no more vps without configuring for ipv6. Anyone else with a different mindset?

    Pronouns: he/him | Primary language: German

    andreasduerenA 1 Reply Last reply
    3
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      The PTR records of IPv6 and IPv4 are set separately. Cloudron only check for IPv4 (in the status tab). I have a TODO to check the IPv6 PTR record as well . Will do it next release!

      1 Reply Last reply
      3
      • luckowL luckow

        I have a Cloudron instance with netcup. The instance is not configured with ipv6.
        Today i got a Message delivery failure notice with this content:

        I'm afraid I wasn't able to deliver your message
            "Your daily summary"
        to the following addresses.
        
        This is a permanent error; I've given up. Sorry it didn't work out.
        
        Intended Recipients: <firstname.lastname@gmail.com>
        Failure Reason: Error: 550 5.7.25 [2a03:xxx:xxx:xxxxxx:xxx:xxx:xxx] The IP address sending this 5.7.25 message does not have a PTR record setup, or the corresponding 5.7.25 forward DNS entry does not match the sending IP. As a policy, Gmail 5.7.25 does not accept messages from IPs with missing PTR records. For more 5.7.25 information, go to 5.7.25  https://support.google.com/a?p=sender-guidelines-ip  5.7.25 To learn more about Gmail requirements for bulk senders, visit 5.7.25  https://support.google.com/a?p=sender-guidelines.
        

        To me it feels like: Your hosting provider has attached an ipv6 address to your VPS that you are not using. Sorry, we (Gmail) did a reverse lookup and you (dump administrator) did not create a PTR record for your IPv6 address. Sorry: you are a spammer.

        IMHO lesson learned: no more vps without configuring for ipv6. Anyone else with a different mindset?

        andreasduerenA Offline
        andreasduerenA Offline
        andreasdueren
        wrote on last edited by
        #3

        @luckow I've been having similar issues. After the latest cloudron update and me manually setting the PTR record for both, the correct and incorrect IPv6 seems to have fixed it.

        1 Reply Last reply
        1
        • avatar1024A Offline
          avatar1024A Offline
          avatar1024
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • avatar1024A Offline
            avatar1024A Offline
            avatar1024
            wrote on last edited by
            #5

            I've also hit this on three of my servers! I've set-up the PTR record for the IPv6 (hopefully correctly) and waiting for it to propagate...let's hope it works.

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              You don't have to configure anything in Cloudron as such. The PTR setup is completely in your VPS provider. Set it to the mail server name (just like IPv4). I have added the IPv6 RDNS check now for next release.

              1 Reply Last reply
              2
              • avatar1024A Offline
                avatar1024A Offline
                avatar1024
                wrote on last edited by
                #7

                For one of my domain, even though the DNS has propagated and checks all fine on https://www.whatsmydns.net/#PTR and https://toolbox.googleapps.com/apps/dig/#PTR/ I'm still getting the bounce error....damn google!

                On two other domains it now works well 🤷

                andreasduerenA 1 Reply Last reply
                1
                • avatar1024A avatar1024

                  For one of my domain, even though the DNS has propagated and checks all fine on https://www.whatsmydns.net/#PTR and https://toolbox.googleapps.com/apps/dig/#PTR/ I'm still getting the bounce error....damn google!

                  On two other domains it now works well 🤷

                  andreasduerenA Offline
                  andreasduerenA Offline
                  andreasdueren
                  wrote on last edited by
                  #8

                  @avatar1024 Are the IPv6 reported by google and the one issued by your provider the same?

                  avatar1024A 1 Reply Last reply
                  1
                  • andreasduerenA andreasdueren

                    @avatar1024 Are the IPv6 reported by google and the one issued by your provider the same?

                    avatar1024A Offline
                    avatar1024A Offline
                    avatar1024
                    wrote on last edited by
                    #9

                    @andreasdueren As far as I can tell yes.

                    1 Reply Last reply
                    0
                    • avatar1024A Offline
                      avatar1024A Offline
                      avatar1024
                      wrote on last edited by
                      #10

                      Also I spoke a bit too quickly I'm actually getting delivery issues on all domains, just on two of them, the emails do end up delivering after a couple of retry by the mail server (the retries are still because of the PTR record), whereas on the third one it's just a straight bounce.

                      andreasduerenA avatar1024A 2 Replies Last reply
                      0
                      • avatar1024A avatar1024

                        Also I spoke a bit too quickly I'm actually getting delivery issues on all domains, just on two of them, the emails do end up delivering after a couple of retry by the mail server (the retries are still because of the PTR record), whereas on the third one it's just a straight bounce.

                        andreasduerenA Offline
                        andreasduerenA Offline
                        andreasdueren
                        wrote on last edited by
                        #11

                        @avatar1024 I'd encourage you to double check. The IP without the 2 at the end is my actual IPv6. But google kept complaining that the one with the two didn't match. So I set a PTR record for it as well and now things seem to be fine.

                        Screenshot 2025-01-09 at 12.38.02.png

                        1 Reply Last reply
                        1
                        • avatar1024A Offline
                          avatar1024A Offline
                          avatar1024
                          wrote on last edited by
                          #12

                          What I did is take the IPv6 google wrote in the bounce error message and added the mail serve name against that.

                          1 Reply Last reply
                          0
                          • avatar1024A Offline
                            avatar1024A Offline
                            avatar1024
                            wrote on last edited by avatar1024
                            #13

                            So the IP is much longer than yours:
                            image.png

                            As you can tell, I probably do not understand IPv6 very well...

                            From my provider my server IPv6 seem to be:
                            c6996231-3682-4f5f-95a3-4c0b1b643eab-image.png

                            So a bit like yours and something much shorter that what Google write in the bounce error message. Bur I thought this was normal as elsewhere in the provider settings page for my server it says:
                            e0f205c5-b891-4fa5-9fca-d4f4728c8dbc-image.png

                            So putting top and bottom address together I get the long IP google is writing in the error message.

                            1 Reply Last reply
                            0
                            • andreasduerenA Offline
                              andreasduerenA Offline
                              andreasdueren
                              wrote on last edited by
                              #14

                              Just to clarify: take the IPv6 that is written in the google mail and compare it to the PTR record. Are they identical?

                              avatar1024A 1 Reply Last reply
                              0
                              • andreasduerenA andreasdueren

                                Just to clarify: take the IPv6 that is written in the google mail and compare it to the PTR record. Are they identical?

                                avatar1024A Offline
                                avatar1024A Offline
                                avatar1024
                                wrote on last edited by
                                #15

                                @andreasdueren said in Gmail - ipv6. Anyone else with this experience?:

                                Just to clarify: take the IPv6 that is written in the google mail and compare it to the PTR record. Are they identical?

                                Yes they are!

                                1 Reply Last reply
                                0
                                • avatar1024A Offline
                                  avatar1024A Offline
                                  avatar1024
                                  wrote on last edited by
                                  #16

                                  I've now also set a PTR record against the short IPv6, it has propagated but I'm still getting the straight bounce.

                                  1 Reply Last reply
                                  0
                                  • avatar1024A avatar1024

                                    Also I spoke a bit too quickly I'm actually getting delivery issues on all domains, just on two of them, the emails do end up delivering after a couple of retry by the mail server (the retries are still because of the PTR record), whereas on the third one it's just a straight bounce.

                                    avatar1024A Offline
                                    avatar1024A Offline
                                    avatar1024
                                    wrote on last edited by
                                    #17

                                    @avatar1024 said in Gmail - ipv6. Anyone else with this experience?:

                                    on two of them, the emails do end up delivering after a couple of retry by the mail server (the retries are still because of the PTR record)

                                    Actually in some rare case, the server retries indefinitely and emails are never delivered. From the email event log:

                                    Delivery failure. Will retry in Xs. Upstream error: 421 4.7.23 [2a03:xxxx:xx:xxx:xxxx:7fff:fe49:51af] The IP address sending this 4.7.23 message does not have a PTR record, or the corresponding forward DNS 4.7.23 entry does not match the sending IP. To protect our users from spam, 4.7.23 mail has been temporarily rate limited. To learn more about IP 4.7.23 address requirements for sending to Gmail, visit 4.7.23 https://support.google.com/a?p=sender-guidelines-ip 4.7.23 To learn more about Gmail requirements for bulk senders, visit 4.7.23 https://support.google.com/a?p=sender-guidelines. 4fb4d7f45d1cf-5d807030e25si25472762a12.537 - gsmtp",

                                    Using the exact IPv6 in the error message on https://toolbox.googleapps.com/apps/dig/#PTR/ gives the correct PTR.

                                    1 Reply Last reply
                                    1
                                    • avatar1024A Offline
                                      avatar1024A Offline
                                      avatar1024
                                      wrote on last edited by
                                      #18

                                      Until this is solved, is it possible to disable IPv6 completely from the mail service? This is affecting basically all of my servers.

                                      1 Reply Last reply
                                      0
                                      • J Offline
                                        J Offline
                                        joseph
                                        Staff
                                        wrote on last edited by
                                        #19

                                        You can just disable ipv6 on the server. It's the OS that decides IPv4/IPv6 for outbound connections. For example, sysctl -w net.ipv6.conf.ens18.disable_ipv6=1 (replace ens18) for specific interface.

                                        1 Reply Last reply
                                        1
                                        • avatar1024A Offline
                                          avatar1024A Offline
                                          avatar1024
                                          wrote on last edited by
                                          #20

                                          @joseph Brill, that works, thank you!! All messages are now going through 🙂

                                          Is there any big drawbacks in disabling IPv6? Also since it only happens with Gmail, is there a way to tell the system with IPv6 to only use IPv4 for google MX?

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search