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. Feature Requests
  3. Clear Email Queue in Bulk

Clear Email Queue in Bulk

Scheduled Pinned Locked Moved Feature Requests
6 Posts 3 Posters 740 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.
  • D Offline
    D Offline
    darsh_parsana
    wrote on last edited by
    #1

    So i have more than 1k emails stuck in the email queue and the server keeps on retrying it so is there any way to bulk delete all the emails which are stuck there in queue

    1 Reply Last reply
    0
    • D Offline
      D Offline
      darsh_parsana
      wrote on last edited by
      #2

      https://ibb.co/GdWW55c this is what the queue looks like and deleting them one by one is very time-consuming any way to delete all this in one go by ssh in the server?

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

        @darsh_parsana Just delete the files in /home/yellowtent/boxdata/mail/haraka-queue/ and then docker restart mail

        jdaviescoatesJ 1 Reply Last reply
        0
        • D Offline
          D Offline
          darsh_parsana
          wrote on last edited by
          #4

          I am a bit noob with docket can you tell me the docket command by which I can get into this?

          is this something like docker exec -ti mail /bin/bash

          girishG 1 Reply Last reply
          0
          • D darsh_parsana

            I am a bit noob with docket can you tell me the docket command by which I can get into this?

            is this something like docker exec -ti mail /bin/bash

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @darsh_parsana it's not inside docker. Just ssh into the server and delete the files in /home/yellowtent/boxdata/mail/haraka-queue/. The command is also run in the server itself.

            1 Reply Last reply
            0
            • girishG girish

              @darsh_parsana Just delete the files in /home/yellowtent/boxdata/mail/haraka-queue/ and then docker restart mail

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

              @girish said in Clear Email Queue in Bulk:

              @darsh_parsana Just delete the files in /home/yellowtent/boxdata/mail/haraka-queue/ and then docker restart mail

              I want to delete specific messages from my queue - how do I know/ how can I work out which message is which?

              In that folder I just see a load of:

              root@Ubuntu-2204-jammy-amd64-base /home/yellowtent/boxdata/mail/haraka-queue # ls -la
              total 2676
              drwxr-xr-x 2       1000       1000 49152 Feb  3 12:58 .
              drwxr-xr-x 9 yellowtent yellowtent  4096 Nov 10  2021 ..
              -rw-r--r-- 1       1000       1000 18534 Jan 31 13:02 1738328533512_1738590654199_12_65_gk72Xo_1810_70b22df2ed37
              -rw-r--r-- 1       1000       1000 18534 Jan 31 14:51 1738335078475_1738597197100_12_65_dXDG5B_1902_70b22df2ed37
              -rw-r--r-- 1       1000       1000 18534 Jan 31 14:51 1738335096003_1738597214022_12_65_Rbe0Ut_1903_70b22df2ed37
              etc
              

              But confusingly, #/emails-queue shows as empty:

              0e7b01c5-ffff-4bcb-a2e9-7c078ee79a7e-image.png

              I want to clear some out because the mailserver is constantly retrying to send out "🙌 Complete your sign up to…" emails it got passed from Ghost after spam sign-ups and they all just bounce so it tries again, and again...

              I use Cloudron with Gandi & Hetzner

              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