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. Support
  3. When using catch-all for email, how to „turn off“ one address?

When using catch-all for email, how to „turn off“ one address?

Scheduled Pinned Locked Moved Support
mailcatch-all
5 Posts 3 Posters 865 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.
    • necrevistonnezrN Offline
      necrevistonnezrN Offline
      necrevistonnezr
      wrote on last edited by girish
      #1

      I use catch-all in email settings basically for creating arbitrary addresses for certain websites (e.g. as supported in Bitwarden).

      One address under my domain (that I never created) receives like 90 % of all spam. Can I turn off such an address under these circumstances?

      I read into Spamassassin rules, but I believe when blacklisting (e.g. byblacklist_to foo@domain.com), it will only marked as spam. I would like to not even reach any inbox but just get rejected…

      timconsidineT 1 Reply Last reply
      0
      • necrevistonnezrN necrevistonnezr

        I use catch-all in email settings basically for creating arbitrary addresses for certain websites (e.g. as supported in Bitwarden).

        One address under my domain (that I never created) receives like 90 % of all spam. Can I turn off such an address under these circumstances?

        I read into Spamassassin rules, but I believe when blacklisting (e.g. byblacklist_to foo@domain.com), it will only marked as spam. I would like to not even reach any inbox but just get rejected…

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #2

        @necrevistonnezr make a sieve rule to reject incoming to that address ?

        necrevistonnezrN 1 Reply Last reply
        0
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #3

          I wonder if a reject all mailbox can be configured, which can then have added aliases.

          Conscious tech

          1 Reply Last reply
          0
          • timconsidineT timconsidine

            @necrevistonnezr make a sieve rule to reject incoming to that address ?

            necrevistonnezrN Offline
            necrevistonnezrN Offline
            necrevistonnezr
            wrote on last edited by
            #4

            @timconsidine
            Thanks. I don't see a "reject" rule in Roundcube, but a "discard with message" - I assume that's the same?
            And are those sieve rules processed before or after the spam filter?

            timconsidineT 1 Reply Last reply
            0
            • necrevistonnezrN necrevistonnezr

              @timconsidine
              Thanks. I don't see a "reject" rule in Roundcube, but a "discard with message" - I assume that's the same?
              And are those sieve rules processed before or after the spam filter?

              timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by timconsidine
              #5

              @necrevistonnezr not sure about Roundcube as I moved over to SnappyMail, but I think it is similar.
              Under Filters you can add a sieve script (maybe they call it 'custom')

              And yes I think discard with message is equivalent. But not an expert.

              Due to the excellent spamassassin rules posted here https://forum.cloudron.io/post/30512 by @d19dotca, I am not needing to use sieve in SnappyMail. But here is the script which I use in Protonmail. The from can be changed to to I guess.

              NB : I put the reject part of the rule before the spam test. Arguably I should have a return after the reject - not sure why I did not do that.

              require ["include", "environment", "variables", "relational", "comparator-i;ascii-numeric", "spamtest", "reject", "fileinto", "imap4flags"];
              
              if address :contains "from" ["spammer@blah.co.uk",  "spammer.com"]
              {
                reject "Spam";
              }
              
              if spamtest :value "ge" :comparator "i;ascii-numeric" "5" {
                  fileinto "spam";
              }
              
              if exists "list-unsubscribe"
              {
                  addflag "\\List";
              }
              
              # Generated: Do not run this script on spam messages
              if allof (environment :matches "vnd.proton.spam-threshold" "*",
              spamtest :value "ge" :comparator "i;ascii-numeric" "${1}")
              {
                  return;
              }
              
              
              1 Reply Last reply
              5
              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