How to filter/sieve email based on display name of sender

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0














I have a problem with a persistent piece of spam. I keep getting emails from varying source addresses with useless news garbage. I can't block on either address or subject, as they change with every message. The only thing that stays consistent is the friendly name of the sender. ("Breaking News")



Now, I have spamassassin running, and update the filters daily. I've tried writing some rudimentary rules for both spamassassin and the dovecot sieve, with no success. Both of these applications seem to have very obtuse documentation. Despite spending the better part of last week working on this, I still have absolutely zero idea of how to make SA or the sieve actually work on a complex level. I'm not even entirely sure my syntax is correct, or that I'm trying to do something that is possible.



The only thing I've tried putting into production is a simple SA rule, shown below. It's all I could manage with the documentation I could find. It doesn't work.



# .spamassassin/user_prefs
header PERSONAL_BLACKLIST From =~ /breaking.news/i
score PERSONAL_BLACKLIST 10


I was unable to find sufficient documentation on how to check this particular piece of info in dovecot. I suspect I need to check something using envelope but the documentation linked from the wiki is literally just the RFC.



How can I stop this spam from coming through? Should I be using something other than SA?










share|improve this question




























    0














    I have a problem with a persistent piece of spam. I keep getting emails from varying source addresses with useless news garbage. I can't block on either address or subject, as they change with every message. The only thing that stays consistent is the friendly name of the sender. ("Breaking News")



    Now, I have spamassassin running, and update the filters daily. I've tried writing some rudimentary rules for both spamassassin and the dovecot sieve, with no success. Both of these applications seem to have very obtuse documentation. Despite spending the better part of last week working on this, I still have absolutely zero idea of how to make SA or the sieve actually work on a complex level. I'm not even entirely sure my syntax is correct, or that I'm trying to do something that is possible.



    The only thing I've tried putting into production is a simple SA rule, shown below. It's all I could manage with the documentation I could find. It doesn't work.



    # .spamassassin/user_prefs
    header PERSONAL_BLACKLIST From =~ /breaking.news/i
    score PERSONAL_BLACKLIST 10


    I was unable to find sufficient documentation on how to check this particular piece of info in dovecot. I suspect I need to check something using envelope but the documentation linked from the wiki is literally just the RFC.



    How can I stop this spam from coming through? Should I be using something other than SA?










    share|improve this question


























      0












      0








      0







      I have a problem with a persistent piece of spam. I keep getting emails from varying source addresses with useless news garbage. I can't block on either address or subject, as they change with every message. The only thing that stays consistent is the friendly name of the sender. ("Breaking News")



      Now, I have spamassassin running, and update the filters daily. I've tried writing some rudimentary rules for both spamassassin and the dovecot sieve, with no success. Both of these applications seem to have very obtuse documentation. Despite spending the better part of last week working on this, I still have absolutely zero idea of how to make SA or the sieve actually work on a complex level. I'm not even entirely sure my syntax is correct, or that I'm trying to do something that is possible.



      The only thing I've tried putting into production is a simple SA rule, shown below. It's all I could manage with the documentation I could find. It doesn't work.



      # .spamassassin/user_prefs
      header PERSONAL_BLACKLIST From =~ /breaking.news/i
      score PERSONAL_BLACKLIST 10


      I was unable to find sufficient documentation on how to check this particular piece of info in dovecot. I suspect I need to check something using envelope but the documentation linked from the wiki is literally just the RFC.



      How can I stop this spam from coming through? Should I be using something other than SA?










      share|improve this question















      I have a problem with a persistent piece of spam. I keep getting emails from varying source addresses with useless news garbage. I can't block on either address or subject, as they change with every message. The only thing that stays consistent is the friendly name of the sender. ("Breaking News")



      Now, I have spamassassin running, and update the filters daily. I've tried writing some rudimentary rules for both spamassassin and the dovecot sieve, with no success. Both of these applications seem to have very obtuse documentation. Despite spending the better part of last week working on this, I still have absolutely zero idea of how to make SA or the sieve actually work on a complex level. I'm not even entirely sure my syntax is correct, or that I'm trying to do something that is possible.



      The only thing I've tried putting into production is a simple SA rule, shown below. It's all I could manage with the documentation I could find. It doesn't work.



      # .spamassassin/user_prefs
      header PERSONAL_BLACKLIST From =~ /breaking.news/i
      score PERSONAL_BLACKLIST 10


      I was unable to find sufficient documentation on how to check this particular piece of info in dovecot. I suspect I need to check something using envelope but the documentation linked from the wiki is literally just the RFC.



      How can I stop this spam from coming through? Should I be using something other than SA?







      dovecot spamassasin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 18 at 18:42

























      asked Dec 18 at 0:46









      Chris

      279212




      279212

























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489598%2fhow-to-filter-sieve-email-based-on-display-name-of-sender%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489598%2fhow-to-filter-sieve-email-based-on-display-name-of-sender%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?