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. SpamAssassin Rule for some Catch-all users in my domain

SpamAssassin Rule for some Catch-all users in my domain

Scheduled Pinned Locked Moved Solved Support
mailspamassassin
14 Posts 4 Posters 2.9k Views 4 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.
  • fbartelsF fbartels

    I also like using catch-all addresses to direct the incoming flow of emails and have some addresses that get a good amount of spam (because they were in a data leak). The workaround I found for myself is the following:

    • create a mailbox dev-null@my-domain.com
    • through curl I have set a mailbox quota of 1kb (through the ui the smallest size is 500mb)
    • when I want one address to no longer be received I am assigning this as an alias to my dev-null mailbox

    Now whenever something is sent to one of these aliases the sender gets a "permanent delivery error". The only downside is that for the bounce message the "real address" of the mailbox is shown and not the alias that was used for sending.

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

    @fbartels would a discard rule work better for your set up? In sieve, you can just drop that email altogether and sender also gets no bounce. The screenshot below is from roundcube.

    315256ab-b34d-40fc-8b78-0fff8fc597ec-image.png

    You can also "Discard with message" but this exposes the translated email address though.

    fbartelsF 1 Reply Last reply
    0
    • fbartelsF fbartels

      I also like using catch-all addresses to direct the incoming flow of emails and have some addresses that get a good amount of spam (because they were in a data leak). The workaround I found for myself is the following:

      • create a mailbox dev-null@my-domain.com
      • through curl I have set a mailbox quota of 1kb (through the ui the smallest size is 500mb)
      • when I want one address to no longer be received I am assigning this as an alias to my dev-null mailbox

      Now whenever something is sent to one of these aliases the sender gets a "permanent delivery error". The only downside is that for the bounce message the "real address" of the mailbox is shown and not the alias that was used for sending.

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

      @fbartels said in Custom SpamAssassin Rule for some Catch-all users in my domain:

      The only downside is that for the bounce message the "real address" of the mailbox is shown and not the alias that was used for sending.

      Right... mmm.. The mail comes from dovecot and dovecot has no idea about aliases. This information gets lost in the email delivery flow 😕

      1 Reply Last reply
      0
      • girishG girish

        @fbartels would a discard rule work better for your set up? In sieve, you can just drop that email altogether and sender also gets no bounce. The screenshot below is from roundcube.

        315256ab-b34d-40fc-8b78-0fff8fc597ec-image.png

        You can also "Discard with message" but this exposes the translated email address though.

        fbartelsF Offline
        fbartelsF Offline
        fbartels
        App Dev
        wrote on last edited by
        #7

        @girish said in Custom SpamAssassin Rule for some Catch-all users in my domain:

        would a discard rule work better for your set up?

        Yes, that was what I have been using before. But that still makes the mta first accept the mail, my goal was to produce a bounce message for the sender in the hope that at some point they realise it does not exist anymore.

        If you want to claim to have never received something it is better to reject than to silently delete.

        1 Reply Last reply
        1
        • dsp76D Offline
          dsp76D Offline
          dsp76
          wrote on last edited by
          #8

          @girish looks like the rule is now for me working too. May have to do with a restart of the server / service? Also probably missed one user name or two initially 😉

          (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

          1 Reply Last reply
          0
          • dsp76D Offline
            dsp76D Offline
            dsp76
            wrote on last edited by dsp76
            #9

            Having said that, a bit later it stopped working, @girish - could it be, that with maybe regularly rebuilding the spam rules, the custom ones get forgotten? I still have the rule set up, checked its syntax several times (also with help of KI ;)) ... but it's not adding that custom rule right now.

            (I can still verify it was working yesterday afternoon, as the type of spam had the correct rule added to X-SPAM-STATUS - while later not anymore.)

            Solution in the initial post.

            (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

            1 Reply Last reply
            0
            • dsp76D Offline
              dsp76D Offline
              dsp76
              wrote on last edited by
              #10

              I added the solution in my initial post. Turns out, that with the custom rule, one would need to consider the many different ways of how an email address is build up, as it takes the whole string and applies your rules. So that why it worked sometimes (like when it was written as "user@example.com", but had no match with ""user example" user@example.com").

              (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

              1 Reply Last reply
              1
              • dsp76D dsp76 has marked this topic as solved on
              • necrevistonnezrN Offline
                necrevistonnezrN Offline
                necrevistonnezr
                wrote on last edited by
                #11

                Depending on your use case it might be worthwhile checking if just a simple "wildcard alias" (instead of catch-all) is sufficient (as described in the docs).
                See an example here: https://forum.cloudron.io/post/74184

                1 Reply Last reply
                1
                • dsp76D Offline
                  dsp76D Offline
                  dsp76
                  wrote on last edited by
                  #12

                  Hi @necrevistonnezr ... right, that is also a good approach. I just didn't want to setup the alias before I start using it. I deactivate reactively now. Seems to work pretty good right now.

                  (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                  1 Reply Last reply
                  1
                  • necrevistonnezrN Offline
                    necrevistonnezrN Offline
                    necrevistonnezr
                    wrote on last edited by necrevistonnezr
                    #13

                    Sorry, I forgot in my last Reply: i’ve seen many companies checking for catch-all addresses, possibly flagging you as spam or of low reputation.
                    https://forum.cloudron.io/post/74173

                    1 Reply Last reply
                    1
                    • dsp76D Offline
                      dsp76D Offline
                      dsp76
                      wrote on last edited by
                      #14

                      Thanks - that sounds interesting. Didn't know that - but this is a reason to rethink my approach.

                      (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                      1 Reply Last reply
                      0
                      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