Skip to main content

how to filter out emails with no subject

Comments

5 comments

  • rpvw
    Use matching on the subject line against a regex of
    ^$
    which matches an empty string If you cant get it to work with spamassassin or horde, I do know they work if you set them up either as a cPanel email account filter, or as a domain global filter
    0
  • silverbytes
    I'm getting a lot of spam of emails with no subject. In webmail i see this subject [no subject] but in my email client the subject is empty. I created a rule where in subject not contains "a" and in sujcted not contains "b" and so on, but that filtered absolutely all email to trash (incluiding good email) How do I set up spam assasin or horde to avoid those spam with no subject?

    Thanks. Can you tell me step by step how to do that?
    0
  • rpvw
      ]
    • Log into the cPanel account that you want to apply the filter on
    • In the EMAIL section ether choose to make a filter for the all the accounts on the domain by clicking on the Global Email Filters, or by clicking on the Email Filters and selecting the email address you want to create a filter on.
    • Click on the Create a New Filter button
    • Fill in the Filter Name field (Must be a unique name)
    • In the Rules select Subject from the first dropdown and matches regex from the second
    • In the next field add the ^$
    • Now choose an action to apply to the mail when the regex matches eg Discard Message
    • Click the Create button
    • You can then test the filter using the Filter Test facility provided or send yourself mails with and without subjects
    Hope this helps
    0
  • silverbytes
    ^$

      ]
    • Log into the cPanel account that you want to apply the filter on
    • In the EMAIL section ether choose to make a filter for the all the accounts on the domain by clicking on the Global Email Filters, or by clicking on the Email Filters and selecting the email address you want to create a filter on.
    • Click on the Create a New Filter button
    • Fill in the Filter Name field (Must be a unique name)
    • In the Rules select Subject from the first dropdown and matches regex from the second
    • In the next field add the ^$
    • Now choose an action to apply to the mail when the regex matches eg Discard Message
    • Click the Create button
    • You can then test the filter using the Filter Test facility provided or send yourself mails with and without subjects
    Hope this helps

    Thanks!
    0
  • cPanelMichael
    Hello, I'm happy to see the solution offered was helpful. I'm marking this thread as solved. Thanks!
    0

Please sign in to leave a comment.