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. UI for email autoexpunge configuration

UI for email autoexpunge configuration

Scheduled Pinned Locked Moved Feature Requests
emailfeature-requestmail
14 Posts 6 Posters 2.7k Views 6 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.
  • imc67I imc67

    @jimcavoli said in UI for email autoexpunge configuration:

    I would like to be able to configure the autoexpunge option for certain special folders globally for all mailboxes, to allow the mail server to clean up after users who don't purge their Junk or Trash folders periodically. Ideally, this could be optionally configurable for any of the predefined folders so that a clear retention policy, to whatever degree the administrator desires, can be applied to all mailboxes.

    What’s the best way to do this manually in the meanwhile as I noticed users do have full trash folders which take a lot of space and backup time?

    d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by d19dotca
    #3

    @imc67 I've been pondering this myself. I believe the best way for now would be to run a cronjob on the server which truncates/deletes emails older than a set date (i.e. 60 days) for the file system level. The path for it to run on could be something like the following paths:
    /home/yellowtent/boxdata/mail/vmail/*/mail/.Spam/
    /home/yellowtent/boxdata/mail/vmail/*/mail/.Trash/

    PS - I added this to a collection post I created for all the mail improvements to better highlight them for people and for better discoverability.

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    1
    • fbartelsF Offline
      fbartelsF Offline
      fbartels
      App Dev
      wrote on last edited by
      #4

      This can directly be configured in dovecot. https://notes.sagredo.eu/en/qmail-notes-185/expunging-expired-junk-and-trash-emails-with-dovecot-124.html

      girishG 1 Reply Last reply
      3
      • fbartelsF fbartels

        This can directly be configured in dovecot. https://notes.sagredo.eu/en/qmail-notes-185/expunging-expired-junk-and-trash-emails-with-dovecot-124.html

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

        @fbartels thanks for sharing! that's an excellent setting.

        "Be aware that the messages saved to Inbox 60 days ago and moved to Junk today will not be deleted."

        I really like this. What this means is that a message has to be in Junk folder for 60 days before removal. So, it doesn't rely on when the mail was delivered.

        I am tempted to just make a 30d default clean up. I think this is the gmail default. Anyone opposes this? We can make it configurable later, but that's a lot more work.

        d19dotcaD imc67I 2 Replies Last reply
        5
        • girishG girish

          @fbartels thanks for sharing! that's an excellent setting.

          "Be aware that the messages saved to Inbox 60 days ago and moved to Junk today will not be deleted."

          I really like this. What this means is that a message has to be in Junk folder for 60 days before removal. So, it doesn't rely on when the mail was delivered.

          I am tempted to just make a 30d default clean up. I think this is the gmail default. Anyone opposes this? We can make it configurable later, but that's a lot more work.

          d19dotcaD Offline
          d19dotcaD Offline
          d19dotca
          wrote on last edited by d19dotca
          #6

          @girish I'd love to see this, but I am worried about it being on-by-default in all honesty. Unless you can set it to be a default on new installs only and not impact existing installs?

          My concern would be if it's on by default that it may run and purge a bunch of mail right after upgrading to a new version of Cloudron, and that may negatively impact our own clients for example if someone upgrades without realizing how that particular function will work ahead of time.

          Speaking for myself anyways, I'd prefer to give my clients advanced warning of such a new policy (because that's basically how they'd see it... as a "policy" that now restricts how long they can keep mail in their junk or trash folders). IMO, users should be given advanced notice of such an implementation, which kind of contradicts the on-by-default approach as I'd assume if it's on by default it'd basically start purging emails right after upgrading to the new Cloudron version. Users should be given as much notice as reasonable before anything gets purged. I'd also really like to customize the time-span (i.e. 30 days may be too soon for certain types of clients, I can see a use-case for mine when many of them are medical-oriented and need to be extra careful where I'd want it to be 60 days at least for them in my case for example).

          Ultimately, this seems like one of those features that should definitely be implemented but as off-by-default and with the ability to be customized too. And if customization has to come later, then released but still off-by-default.

          My two cents anyways. πŸ™‚

          --
          Dustin Dauncey
          www.d19.ca

          1 Reply Last reply
          2
          • girishG girish

            @fbartels thanks for sharing! that's an excellent setting.

            "Be aware that the messages saved to Inbox 60 days ago and moved to Junk today will not be deleted."

            I really like this. What this means is that a message has to be in Junk folder for 60 days before removal. So, it doesn't rely on when the mail was delivered.

            I am tempted to just make a 30d default clean up. I think this is the gmail default. Anyone opposes this? We can make it configurable later, but that's a lot more work.

            imc67I Offline
            imc67I Offline
            imc67
            translator
            wrote on last edited by
            #7

            @girish said in UI for email autoexpunge configuration:

            I am tempted to just make a 30d default clean up.

            very good idea, especially because its 30 days AFTER it's moved to the spam or trash folder

            Is there a way to do that now already (manually)?

            girishG 1 Reply Last reply
            1
            • imc67I imc67

              @girish said in UI for email autoexpunge configuration:

              I am tempted to just make a 30d default clean up.

              very good idea, especially because its 30 days AFTER it's moved to the spam or trash folder

              Is there a way to do that now already (manually)?

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

              @imc67 currently, there is no manual way to do it since it will get overwritten after restart.

              1 Reply Last reply
              0
              • d19dotcaD Offline
                d19dotcaD Offline
                d19dotca
                wrote on last edited by
                #9

                Thought I'd bump this one again... would love to see this added to Cloudron as part of the many Mail improvements needed in the near future. πŸ™‚ Possibly for 7.3?

                --
                Dustin Dauncey
                www.d19.ca

                girishG 1 Reply Last reply
                0
                • d19dotcaD d19dotca

                  Thought I'd bump this one again... would love to see this added to Cloudron as part of the many Mail improvements needed in the near future. πŸ™‚ Possibly for 7.3?

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

                  @d19dotca We already autoexpunge Spam after 60 days. Do you want something more? This was part of Cloudron 7.

                      mailbox Spam {
                          auto = subscribe
                          special_use = \Junk
                          autoexpunge = 60d
                      }
                  
                  d19dotcaD R 2 Replies Last reply
                  0
                  • girishG girish

                    @d19dotca We already autoexpunge Spam after 60 days. Do you want something more? This was part of Cloudron 7.

                        mailbox Spam {
                            auto = subscribe
                            special_use = \Junk
                            autoexpunge = 60d
                        }
                    
                    d19dotcaD Offline
                    d19dotcaD Offline
                    d19dotca
                    wrote on last edited by
                    #11

                    @girish I think it'd be good for admins to have control over that setting (I don't think it's configurable is it?), that is after-all the original intention of the OP, to have a GUI to set email autoexpunge configs. But for me personally, I'd like to do something similar on Trash folder.

                    --
                    Dustin Dauncey
                    www.d19.ca

                    1 Reply Last reply
                    2
                    • girishG girish

                      @d19dotca We already autoexpunge Spam after 60 days. Do you want something more? This was part of Cloudron 7.

                          mailbox Spam {
                              auto = subscribe
                              special_use = \Junk
                              autoexpunge = 60d
                          }
                      
                      R Offline
                      R Offline
                      rodsilva
                      wrote on last edited by
                      #12

                      @girish said in UI for email autoexpunge configuration:

                      @d19dotca We already autoexpunge Spam after 60 days. Do you want something more? This was part of Cloudron 7.

                          mailbox Spam {
                              auto = subscribe
                              special_use = \Junk
                              autoexpunge = 60d
                          }
                      

                      Where can I find this config? I couldn't find this in any file at /etc/dovecot/conf.d/ inside the mail container.

                      Is this configured only for "Spam" folder or also for "Trash" folder?

                      girishG 1 Reply Last reply
                      2
                      • R rodsilva

                        @girish said in UI for email autoexpunge configuration:

                        @d19dotca We already autoexpunge Spam after 60 days. Do you want something more? This was part of Cloudron 7.

                            mailbox Spam {
                                auto = subscribe
                                special_use = \Junk
                                autoexpunge = 60d
                            }
                        

                        Where can I find this config? I couldn't find this in any file at /etc/dovecot/conf.d/ inside the mail container.

                        Is this configured only for "Spam" folder or also for "Trash" folder?

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

                        @rodsilva This is only for the Spam folder. The configs are under /run/dovecot but you should not make any changes there since they are not persistent. Changes will get overwritten on mail container restart.

                        d19dotcaD 1 Reply Last reply
                        1
                        • girishG girish

                          @rodsilva This is only for the Spam folder. The configs are under /run/dovecot but you should not make any changes there since they are not persistent. Changes will get overwritten on mail container restart.

                          d19dotcaD Offline
                          d19dotcaD Offline
                          d19dotca
                          wrote on last edited by d19dotca
                          #14

                          @girish When will this be exposed in the GUI? Hopefully this can be planned for 7.4 perhaps, along with the many other mail improvements requested? πŸ˜‰

                          --
                          Dustin Dauncey
                          www.d19.ca

                          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