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. Automatically Clean Emails

Automatically Clean Emails

Scheduled Pinned Locked Moved Feature Requests
email
7 Posts 3 Posters 1.0k 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.
  • T Offline
    T Offline
    tgatellier
    wrote on last edited by girish
    #1

    Hello

    I would like to empty my mailboxes.

    Is there a way to automatically remove old emails ? If not is there a way to manually remove all the emails easily ?

    I have 100+ mailboxes so complicated to connect to each one to empty every month

    Thanks

    Tristan

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

      @tgatellier Empty as in delete all the emails which are older than say 3 months or something like that?

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

        @tgatellier You can use doveadm expunge . There is no UI for this, so you have to SSH and run this like so:

        docker exec -ti mail doveadm -D expunge  -u mail@domain.com mailbox Sent savedbefore 1w
        

        The above deletes all mails in the Sent folder that were saved more than 1 week ago.

        See https://doc.dovecot.org/3.0/man/doveadm-expunge.1/ and https://doc.dovecot.org/3.0/man/doveadm-search-query.7/#man-7-doveadm-search-query

        1 Reply Last reply
        2
        • P Offline
          P Offline
          p44
          translator
          wrote on last edited by p44
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • P Offline
            P Offline
            p44
            translator
            wrote on last edited by
            #5

            @tgatellier totally agree, I discussed in a previous post: need some UI to cleanup all trashed email from ALL mailboxes, or have feature like Gmail or similars 30 days delete after trash

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tgatellier
              wrote on last edited by
              #6

              Thanks for command line will use it and tell you, but an UI feature will be better for my non tech team 😉

              1 Reply Last reply
              1
              • girishG girish

                @tgatellier Empty as in delete all the emails which are older than say 3 months or something like that?

                T Offline
                T Offline
                tgatellier
                wrote on last edited by
                #7

                @girish Would be amazing to have this feature yes

                1 Reply Last reply
                3
                • girishG girish moved this topic from Support 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