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
  • Brite
  • 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. outgoing mail issue and unbound?

outgoing mail issue and unbound?

Scheduled Pinned Locked Moved Solved Support
mail
5 Posts 3 Posters 116 Views 3 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.
  • K Offline
    K Offline
    kyleholster
    wrote last edited by
    #1

    Hello, so i run my cloudron server in my house, now i have done this before and had no issue with using an external smpt service for email delivery, i used mailgun and have never had an issue.

    i used cloudflare for the domain (my dashboard is the only one that is proxyed)
    mailgun for the smpt server

    So, tested day i setup my SMPT outbound part and nothing seemed to be working. after sending 3 test emails mailgun says they sent. i check my inbox and they in fact send. so, a few hours later i send another test email and nothing........ i went into cloudflare removed all my TXT files ect and re did it , still nothing. i noticed after looking that unbound was yellow and not working might be the problem???

    i also have the logs of my email that do have the 3 that confirmed and the rest that were rejected

    1 Reply Last reply
    1
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @kyleholster
      Please connect to your cloudron server via ssh and run:

      cloudron-support --troubleshoot
      

      See if anything is not working.

      Since you are using mailgun, maybe there was an issue with them?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kyleholster
        wrote last edited by james
        #3

        Unbound is not resolving, maybe try forwarding all DNS requests. You can do this by running 'cloudron-support --unbound-use-external-dns' option
        Using domain server:
        Name: 127.0.0.150
        Address: 127.0.0.150#53
        Aliases:

        i get this when i run the command and the i run the suggested command this pops up for me

        /usr/bin/cloudron-support: line 803: unbound_use_external_dns: command not found

        for further context, heres what the unbound logs say

        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: generate keytag query _ta-4f66. NULL IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: failed to prime trust anchor -- could not fetch DNSKEY rrset . DNSKEY IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: generate keytag query _ta-4f66. NULL IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: failed to prime trust anchor -- could not fetch DNSKEY rrset . DNSKEY IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: generate keytag query _ta-4f66. NULL IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: failed to prime trust anchor -- could not fetch DNSKEY rrset . DNSKEY IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: generate keytag query _ta-4f66. NULL IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: failed to prime trust anchor -- could not fetch DNSKEY rrset . DNSKEY IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: generate keytag query _ta-4f66. NULL IN
        Aug 03 16:51:18 bigd unbound[883]: [883:0] info: failed to prime trust anchor -- could not fetch DNSKEY rrset . DNSKEY IN
        Aug 03 17:18:36 bigd unbound[883]: [883:0] info: generate keytag query _ta-4f66. NULL IN
        Aug 03 17:24:50 bigd systemd[1]: Stopping unbound.service - Unbound DNS Resolver...
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: service stopped (unbound 1.19.2).
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: server stats for thread 0: 515 queries, 13 answers from cache, 502 recursions, 0 prefetch, 0 rejected by ip ratelimiting
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: server stats for thread 0: requestlist max 5 avg 0.727092 exceeded 0 jostled 0
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: average recursion processing time 0.037127 sec
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: histogram of recursion processing times
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: [25%]=0.000719698 median[50%]=0.00137284 [75%]=0.0316995
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: lower(secs) upper(secs) recursions
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.000032 0.000064 1
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.000064 0.000128 1
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.000128 0.000256 1
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.000256 0.000512 58
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.000512 0.001024 159
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.001024 0.002048 91
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.002048 0.004096 22
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.004096 0.008192 2
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.008192 0.016384 20
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.016384 0.032768 23
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.032768 0.065536 25
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.065536 0.131072 49
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.131072 0.262144 35
        Aug 03 17:24:50 bigd unbound[883]: [883:0] info: 0.262144 0.524288 15
        Aug 03 17:24:50 bigd systemd[1]: unbound.service: Deactivated successfully.
        Aug 03 17:24:50 bigd systemd[1]: Stopped unbound.service - Unbound DNS Resolver.
        Aug 03 17:24:50 bigd systemd[1]: Starting unbound.service - Unbound DNS Resolver...
        Aug 03 17:24:50 bigd unbound[48589]: [48589:0] notice: init module 0: subnetcache
        Aug 03 17:24:50 bigd unbound[48589]: [48589:0] notice: init module 1: validator
        Aug 03 17:24:50 bigd unbound[48589]: [48589:0] notice: init module 2: iterator
        Aug 03 17:24:50 bigd unbound[48589]: [48589:0] info: start of service (unbound 1.19.2).
        Aug 03 17:24:50 bigd systemd[1]: Started unbound.service - Unbound DNS Resolver.
        Aug 03 17:24:54 bigd unbound[48589]: [48589:0] info: generate keytag query _ta-4f66. NULL IN
        
        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote last edited by
          #4

          @kyleholster this is a bug in the script. You can do this manually though (see https://git.cloudron.io/platform/box/-/blob/master/scripts/cloudron-support?ref_type=heads#L576).

          Add this into /etc/unbound/unbound.conf.d/forward-everything.conf :

          forward-zone:
              name: "."
              forward-addr: 1.1.1.1
              forward-addr: 8.8.8.8
          

          And then, systemctl restart unbound

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kyleholster
            wrote last edited by
            #5

            Thank you all! the issue was the unbound service not working and also my email delivery issue too.

            1 Reply Last reply
            1
            • jamesJ james has marked this topic as solved
            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