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. Email sending broken after updating to 8.2.x (due to IPv6 issues)

Email sending broken after updating to 8.2.x (due to IPv6 issues)

Scheduled Pinned Locked Moved Solved Support
ipv6emailupdate8.2.3
74 Posts 13 Posters 7.6k Views 13 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.
  • nebulonN nebulon

    If you use wildcard DNS then you also have to setup the AAAA (ipv6) wildcard DNS record on your own

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

    @nebulon thank you, I thought so but wasn't sure. I've done that and it first glance it seems to have solved both the app install and email bounce issue!

    I'll reactivate IPv6 and try those settings on the two other servers and see if all email delivery problem also disappear.

    Do I need to also create a AAAA record for the bare domain?

    1 Reply Last reply
    1
    • jdaviescoatesJ jdaviescoates referenced this topic on
    • BrutalBirdieB BrutalBirdie referenced this topic on
    • girishG girish

      To summarize the situation:

      • starting 8.2, it seems the mail server has started to prefer using IPv6 for gmail. This wasn't a change in Cloudron consciously at least. I have looked into the Haraka changes and cannot find anything specific there either. I do see that gmail has IPv6 mail servers now, not sure if they were there before or not.

      • To fix the situation, you simply have to set IPv6 PTR record . Cloudron has not implemented a IPv6 PTR check in 8.2 but a check is implemented for next release. The PTR record is set in the VPS provider. Usually, IPv6 is allocated a block of addresses and not a single address like IPv4.

      • If you run curl https://ipv6.api.cloudron.io/api/v1/helper/public_ip, this will give you the specific IPv6 address that Cloudron is using to connect to gmail. You have to set the PTR for this specific IPv6 address.

      • If your VPS provider does not allow you to set IPv6 PTR , then just disable IPv6 in the interfaces. sysctl -w net.ipv6.conf.ens18.disable_ipv6=1 for example . You have to put net.ipv6.conf.ens18.disable_ipv6=1 in your /etc/sysctl.conf for this to persist reboots. After you do this, also disable IPv6 in Cloudron, Network -> IPv6 -> Disable.

      jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #12

      @girish said in Email sending broken after updating to 8.2.x (due to IPv6 issues):

      To fix the situation, you simply have to set IPv6 PTR record .

      And enable IPv6 in Network settings, and then (for good measure) Sync DNS in Domains

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      1
      • J joseph marked this topic as a question on
      • J joseph has marked this topic as solved on
      • P Offline
        P Offline
        privsec
        wrote on last edited by
        #13

        Sooo.... Assume that someone doesn't do this every day.

        What does one have to do to get email sending to work again?
        I'm using netcup and this is the IPV6 screen

        image.png

        jdaviescoatesJ avatar1024A 2 Replies Last reply
        0
        • P privsec

          Sooo.... Assume that someone doesn't do this every day.

          What does one have to do to get email sending to work again?
          I'm using netcup and this is the IPV6 screen

          image.png

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by jdaviescoates
          #14

          @privsec could be wrong, but it doesn't look like there is anywhere for you to and rDNS/ PTR/ reverse dns record for your IPv6. I'd contact netcup support.

          ah, seems you should be able to do so but they've just got a crappy unclear UI

          https://helpcenter.netcup.com/en/wiki/server/network-server

          I'd try whacking your mail url (my
          cloudron.domain unless you've changed it) into that empty field with the disk image to the right and then clicking the disk

          Then check if it worked with

          dig -x <your ipv6 address> +short

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          1
          • P privsec

            Sooo.... Assume that someone doesn't do this every day.

            What does one have to do to get email sending to work again?
            I'm using netcup and this is the IPV6 screen

            image.png

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

            @privsec you can do it. In the bottom section (i.e the IPv6 section), enter the full IPv6 address in the field on the left and the PTR record (my.yourdomain.xx) on the right, press save.

            You get the full IPv6 address with the command Girish gave above (or by activating IPv6 in Cloudron settings it will show the IPv6 address automatically detected).

            1 Reply Last reply
            2
            • P Offline
              P Offline
              privsec
              wrote on last edited by
              #16

              OK, I grabbed the IPv6 addy from cloudron and pasted it in netcup and used the same rDNS name addy for IPv4.

              Nwtcup now says to wait 48 hrs

              avatar1024A 1 Reply Last reply
              2
              • P privsec

                OK, I grabbed the IPv6 addy from cloudron and pasted it in netcup and used the same rDNS name addy for IPv4.

                Nwtcup now says to wait 48 hrs

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

                @privsec yeah netcup says that but it may only takes a few minutes. You can check your PTR record propagated in various ways, for example:

                • https://toolbox.googleapps.com/apps/dig/#PTR/
                • https://www.whatsmydns.net/#PTR
                1 Reply Last reply
                2
                • avatar1024A avatar1024 referenced this topic on
                • potemkin_aiP Offline
                  potemkin_aiP Offline
                  potemkin_ai
                  wrote on last edited by
                  #18

                  Got the same issue again, with Outlook servers again. IPv6 is disabled on Cloudron settings and on OS level.

                  potemkin_aiP 1 Reply Last reply
                  0
                  • potemkin_aiP potemkin_ai

                    Got the same issue again, with Outlook servers again. IPv6 is disabled on Cloudron settings and on OS level.

                    potemkin_aiP Offline
                    potemkin_aiP Offline
                    potemkin_ai
                    wrote on last edited by
                    #19

                    fixed by removing IPv6 IP address from Hetzner completely and cleaning up old AAA entries from DNS - they seems like confused Outlook servers.

                    1 Reply Last reply
                    3
                    • P Offline
                      P Offline
                      privsec
                      wrote on last edited by
                      #20

                      I set this up and it worked on netcup for about a week.

                      It’s giving me Al the error again about gmails ipv6 not being set up correctly.

                      Is there an in-depth how to guide to correcting this on netcup?

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

                        @privsec if you update to 8.2.4, the ipv6 check is already in place. Check the status tab after update. What does it say?

                        1 Reply Last reply
                        0
                        • P privsec

                          I set this up and it worked on netcup for about a week.

                          It’s giving me Al the error again about gmails ipv6 not being set up correctly.

                          Is there an in-depth how to guide to correcting this on netcup?

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by
                          #22

                          @privsec not netcup specific but the most in depth guide is this post by @avatar1024 :

                          https://forum.cloudron.io/topic/13072/gmail-ipv6-anyone-else-with-this-experience/22?_=1738857946551

                          I use Cloudron with Gandi & Hetzner

                          1 Reply Last reply
                          1
                          • sponchS Offline
                            sponchS Offline
                            sponch
                            wrote on last edited by
                            #23

                            Also got massive problems sending mails for 2 days now. Possible that 8.2.4 was released that day?

                            jdaviescoatesJ 1 Reply Last reply
                            0
                            • sponchS sponch

                              Also got massive problems sending mails for 2 days now. Possible that 8.2.4 was released that day?

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by
                              #24

                              @sponch have you sorted out your IPv6 stuff?

                              I use Cloudron with Gandi & Hetzner

                              1 Reply Last reply
                              0
                              • sponchS Offline
                                sponchS Offline
                                sponch
                                wrote on last edited by sponch
                                #25

                                Yes. Worked well after doing so for some days. Then „out of the blue“ sending not possible anymore on both of my instances.
                                „Email not configured properly“ errors in notifications when I go to email-overview page it takes 30-40 seconds until the domains get green. All values are set correctly for every single domain…
                                Log says: Delivery failure, will retry in 65536s.. DNS lookup failure: Error: queryMx ESERVFAIL

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

                                  @sponch they might be old emails. You can just delete the old mail queue (to check if these are fresh failures) from /home/yellowtent/boxdata/mail/haraka-queue/ (files inside it). Restart mail container after deleting files.

                                  sponchS 1 Reply Last reply
                                  0
                                  • sponchS Offline
                                    sponchS Offline
                                    sponch
                                    wrote on last edited by
                                    #27

                                    will try that.
                                    Just found that issue on Hetzner: can that be the reason??
                                    Due to a missing DKIM signature (DomainKey), external mail servers reject your e-mails as spam. For this reason, we have activated DKIM for your domains.

                                    If you use our DNS servers for these domains, the DKIM record has been automatically set in the DNS. If you use external DNS servers for these domains, you must also store the displayed DNS record there accordingly. To do this, open the ‘Products’ tab, select the domain in question and click on ‘Advanced settings’ under the menu items ‘E-Mail; DKIM / SPF / DMARC’.

                                    jdaviescoatesJ 1 Reply Last reply
                                    0
                                    • J joseph

                                      @sponch they might be old emails. You can just delete the old mail queue (to check if these are fresh failures) from /home/yellowtent/boxdata/mail/haraka-queue/ (files inside it). Restart mail container after deleting files.

                                      sponchS Offline
                                      sponchS Offline
                                      sponch
                                      wrote on last edited by
                                      #28

                                      @Joseph did that an deleted 15 Mails (these were all test mails I tried to send) an restarted mail. No difference still have the same problems..

                                      1 Reply Last reply
                                      0
                                      • sponchS sponch

                                        will try that.
                                        Just found that issue on Hetzner: can that be the reason??
                                        Due to a missing DKIM signature (DomainKey), external mail servers reject your e-mails as spam. For this reason, we have activated DKIM for your domains.

                                        If you use our DNS servers for these domains, the DKIM record has been automatically set in the DNS. If you use external DNS servers for these domains, you must also store the displayed DNS record there accordingly. To do this, open the ‘Products’ tab, select the domain in question and click on ‘Advanced settings’ under the menu items ‘E-Mail; DKIM / SPF / DMARC’.

                                        jdaviescoatesJ Offline
                                        jdaviescoatesJ Offline
                                        jdaviescoates
                                        wrote on last edited by
                                        #29

                                        @sponch said in Email sending broken after updating to 8.2.x (due to IPv6 issues):

                                        Just found that issue on Hetzner: can that be the reason??

                                        Could be. Have you hit resync dns after enabling and doing all the ipv6 stuff? I think that should auto generate this stuff for you (presuming you're using a supported DNS provider)

                                        I use Cloudron with Gandi & Hetzner

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

                                          I've started to have this issue again randomly (emails only sometimes bounce...helpful I know) despite having IPv6 is disabled on both Cloudron and on the Network interface for that server.

                                          jdaviescoatesJ avatar1024A 2 Replies Last reply
                                          0
                                          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