Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

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

    Support
    mail catch-all
    3
    5
    137
    Loading More Posts
    • 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.
    • necrevistonnezr
      necrevistonnezr last edited by girish

      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…

      timconsidine 1 Reply Last reply Reply Quote 0
      • timconsidine
        timconsidine @necrevistonnezr last edited by

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

        necrevistonnezr 1 Reply Last reply Reply Quote 0
        • robi
          robi last edited by

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

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 0
          • necrevistonnezr
            necrevistonnezr @timconsidine last edited by

            @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?

            timconsidine 1 Reply Last reply Reply Quote 0
            • timconsidine
              timconsidine @necrevistonnezr last edited by timconsidine

              @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 Reply Quote 4
              • First post
                Last post
              Powered by NodeBB