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

    Spam Filtering - Block List Not Working

    Support
    spam email
    3
    7
    361
    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.
    • humptydumpty
      humptydumpty last edited by girish

      I added a few annoying email addresses that keep bypassing the spam filters in my CR dashboard --> Email --> Spam Filtering --> Blocklist. I'm still getting emails from them in my inbox.

      The email addresses are listed as wildcards for their entire domain and each email is on a separate line. Am I doing it wrong?

      *@spamdomain1.com
      *@spamdomain2.com
      *@spamdomain3.com
      

      I even created a filter in Roundcube to delete all emails containing @spamdomain.com but that also isn't working.

      Also, if someone could please explain the difference between (*) and (?).

      Thanks!

      d19dotca girish 2 Replies Last reply Reply Quote 0
      • d19dotca
        d19dotca @humptydumpty last edited by d19dotca

        @humptydumpty

        It looks like you used * for the username portion of the email, not the domain at all. If the domains used are legitimately something like example1 example2 example3, then you can use something instead like this: *@example*.* that will also make the TLD a wildcard too in case they re-use but just move to another TLD.

        If it's possible to share the actual email addresses you are seeing, I can come up with the proper value to use in the block list.

        Speaking of block list, make sure you added it to the correct section on the Spam settings popup. 😉 Should be the top box.

        --
        Dustin Dauncey
        www.d19.ca

        humptydumpty 1 Reply Last reply Reply Quote 1
        • girish
          girish Staff @humptydumpty last edited by

          @humptydumpty That should work. If you see the raw email headers, you will also see:

          X-Spam-Report: 
          	*  100 USER_IN_BLACKLIST From: address is in the user's black-list
          

          One thing I can think of is that maybe the email address that you are looking at is wrong. If you see the raw email headers, do you see that the email addresses match Return-Path and X-Envelope-From ?

          1 Reply Last reply Reply Quote 1
          • girish
            girish Staff last edited by

            BTW, I did a quick check to see if there was some regression and it does seem to work fine on my mail server.

            1 Reply Last reply Reply Quote 0
            • humptydumpty
              humptydumpty @d19dotca last edited by

              @d19dotca I don't mind sharing the email addresses but I didn't want to help them with their "marketing" efforts. The domains don't appear to change. It's the username that is unique. I've received so many emails from them that I have their domain etched into my brain now. Spam DOES work lol.

              I have the code below entered in the top box and in the bottom I have the custom spam settings that you have kindly shared with us on this forum.

              5271dce4-d8e0-4568-9bfe-445a4c64c288-image.png

              @girish Yes, both addresses match what is shown in return-path and x-envelope-from. I'm not seeing USER_IN_BLACKLIST in the headers though. I'm guessing maybe because I have the mail forwarded from one Cloudron user/domain to another Cloudron user/domain on the same server and it's showing my own server info instead?

              If it makes any difference, I'm still on Ubuntu 18.04 but on the latest Cloudron v6.2.8.

              d19dotca 1 Reply Last reply Reply Quote 0
              • d19dotca
                d19dotca @humptydumpty last edited by

                @humptydumpty Ah okay, interesting. Sorry I thought it was literally the same domain but with a different digit at the end, haha.

                So yeah in your case then, wha you have in there looks fine. That should work. If it's not working for you, then I wonder if it's possible the emails you entered don't match the <mailFrom> value from the logs? I just wonder if what you added was a spoofed address and not the original address. I see nothing wrong in your setup, it looks totally fine, so only other thing I can think of at the moment.

                Btw, nice to see you using the custom rules list 😉

                --
                Dustin Dauncey
                www.d19.ca

                humptydumpty 1 Reply Last reply Reply Quote 0
                • humptydumpty
                  humptydumpty @d19dotca last edited by

                  @d19dotca Sadly, they do match. I'm guessing it's something with my current setup that's acting funny. I'll ignore it for now since I plan on migrating either to the new Contabo server that I got or upgrading my current one at DO to Ubuntu 20.04. I just thought it was a wrong setting on my part.

                  Thank you for looking into this and for sharing the custom spam rules! I know you've put a lot of time into that 👍

                  2443c4d7-ec13-4149-add3-28e1e7ad48ed-image.png

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Powered by NodeBB