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. I never thought I'd be here with an email question!

I never thought I'd be here with an email question!

Scheduled Pinned Locked Moved Solved Support
mailmail-queue
4 Posts 2 Posters 768 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.
  • scookeS Offline
    scookeS Offline
    scooke
    wrote on last edited by scooke
    #1

    Since Aug 23, I just noticed, my email has not been working on my Cloudron.

    Everything checks out green.

    When I send a test email, I get: connect ECONNREFUSED 172.18.0.2:2525

    Here is a sample of the logs... seems like there is a null file stopping things, but I don't know what to do.

    I've tried restarting the mail service.

    This all has started, in retrospect, since I reinstalled a new VPS on SSDNodes to move from Ubuntu 18 to 22, and then restored from my MINio backups. All that went seamlessly... except maybe for the email.

    p 06 22:02:02loaded TLD files:
    Sep 06 22:02:021=1470
    Sep 06 22:02:022=9768
    Sep 06 22:02:023=5119
    Sep 06 22:02:02loaded 9027 Public Suffixes
    Sep 06 22:02:03loglevel: INFO
    Sep 06 22:02:03log format: DEFAULT
    Sep 06 22:02:03Starting up Haraka version 3.0.2
    Sep 06 22:02:03[INFO] [-] [core] Loading plugins
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: delay_deny
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: dnsbl
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: helo.checks
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: headers
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: tls
    Sep 06 22:02:03[INFO] [-] [core] loading tls.ini
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: spf
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: cloudron
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: rcpt_to.in_host_list
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: dkim_sign
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: spamassassin
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: queue/smtp_forward
    Sep 06 22:02:03[INFO] [-] [core] Loading plugin: limit
    Sep 06 22:02:032023-09-06 20:02:03,288 INFO success: haraka entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    Sep 06 22:02:03[INFO] [-] [core] getting SocketOpts for SMTPS server
    Sep 06 22:02:03[NOTICE] [-] [core] Listening on [::0]:2525
    Sep 06 22:02:03[INFO] [-] [core] Creating TLS server on [::0]:2465
    Sep 06 22:02:03[NOTICE] [-] [core] Listening on [::0]:2465
    Sep 06 22:02:03[NOTICE] [-] [core] Listening on [::0]:2587
    Sep 06 22:02:03[INFO] [-] [cloudron] Initializing queue server on port 6000
    Sep 06 22:02:03[INFO] [-] [limit] connected to redis://127.0.0.1:6379/4
    Sep 06 22:02:03[INFO] [-] [core] [outbound] Loading outbound queue from /app/data/haraka-queue
    Sep 06 22:02:03[INFO] [-] [core] [outbound] Loading the queue...
    Sep 06 22:02:03[INFO] [-] [core] [outbound] [pid: undefined] 0 files in my delivery queue
    Sep 06 22:02:03[INFO] [-] [core] [outbound] [pid: undefined] 1 files in my load queue
    Sep 06 22:02:03[INFO] [-] [core] [outbound] [pid: undefined] 0 files in my temp fail queue
    Sep 06 22:02:03[INFO] [-] [core] loading tls.ini
    Sep 06 22:02:03[ERROR] [-] [outbound] Error reading queue file 1683327674148_1683327674148_0_61_UHaVbu_48_6f92c87cedc6: zero bytes
    Sep 06 22:02:03[CRIT] [-] [core] Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('Error reading queue file 1683327674148_1683327674148_0_61_UHaVbu_48_6f92c87cedc6: zero bytes')
    Sep 06 22:02:03[CRIT] [-] [core] at new NodeError (node:internal/errors:393:5)
    Sep 06 22:02:03[CRIT] [-] [core] at HMailItem.emit (node:events:502:17)
    Sep 06 22:02:03[CRIT] [-] [core] at /app/code/haraka/outbound/hmail.js:82:22
    Sep 06 22:02:03[CRIT] [-] [core] at FSReqCallback.oncomplete (node:fs:208:5)
    Sep 06 22:02:03[NOTICE] [-] [core] Shutting down
    Sep 06 22:02:032023-09-06 20:02:03,383 INFO exited: haraka (exit status 1; not expected)
    Sep 06 22:02:042023-09-06 20:02:04,388 INFO spawned: 'haraka' with pid 138
    

    A life lived in fear is a life half-lived

    1 Reply Last reply
    0
    • scookeS Offline
      scookeS Offline
      scooke
      wrote on last edited by
      #2

      FWIW, for now I've gone and deleted that zero byte file, 1683327674148_1683327674148_0_61_UHaVbu_48_6f92c87cedc6, and it seems I can send email (before, the Send Email test thing was giving me an error), and the email logs looks quite busy, but I can't seem to receive emails. I've gone now and restarted the whole kit and kaboodle. Let's see what happens.

      A life lived in fear is a life half-lived

      girishG 1 Reply Last reply
      1
      • scookeS scooke

        FWIW, for now I've gone and deleted that zero byte file, 1683327674148_1683327674148_0_61_UHaVbu_48_6f92c87cedc6, and it seems I can send email (before, the Send Email test thing was giving me an error), and the email logs looks quite busy, but I can't seem to receive emails. I've gone now and restarted the whole kit and kaboodle. Let's see what happens.

        girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #3

        @scooke ah yes, that's a haraka issue that it creates 0 length queue files at times. Your fix is correct.

        1 Reply Last reply
        0
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #4

          I have added a workaround in the next release to delete 0 length files on startup.

          1 Reply Last reply
          4
          • girishG girish marked this topic as a question on
          • girishG girish has marked this topic as solved on
          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