The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I block words in the subject line?

Discussion in 'E-mail Discussions' started by nootkan, Jul 22, 2016.

Tags:
  1. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    I've found this thread: https://forums.cpanel.net/threads/block-email-with-certain-subject.13417/ and tried to implement the solution but it didn't work for me. Here is what I want to block: (andy) but the bots keep coming through. Is it because the subject name is in parenthesis? If so, how do I make it work?

    Here is what I tried inside antivirus.exim:
    if
    $header_subject: contains "(andy)"
    then
    fail text "Begone"
    seen finish
    endif
     
  2. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you tried using email filtering instead?
    cpanel -> Global Email Filters or cPanel -> Email Filters

    This will work there

    you may also want to try

    $header_subject: contains "\(andy\)"

    I wouldn't really look to filtering something like this though, too many problems with it. Instead, you might give Grscripts assp deluxe a try. A reasonable product at a reasonable cost, honestly, which can setup spamboxes so you can review spam from time to time
     
  3. conhantaonguyengia

    conhantaonguyengia Registered

    Joined:
    Jul 23, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Vietnam
    cPanel Access Level:
    Website Owner
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    Thanks for the replies but nothing I am trying will work. I don't have the email filters under home/email/global email filters so I guess my version (56.28) of whm doesn't have this feature.

    Any other ideas?

    Here are some of the email subject lines: (andy) Say hi to Victoria, (andy) Need more women in your life?, (andy) Your old friend Ashley is here, (andy) Ready to bang older women?

    The common word seems to be (andy) and it seems the ip keeps changing as well as the domain names.

    I do use Mailwatch/Mailscanner but it isn't catching them although it is awesome for almost everything else.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Check to ensure the Paper Lantern theme is assigned to the account using the "WHM >> Modify an Account" feature:

    Modify an Account - Version 56 Documentation - cPanel Documentation

    Thank you.
     
  7. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    Well the email filter isn't working either. Is there not another way to block this type of spam?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you let us know the specific filter rule you added, and how you added it?

    Thank you.
     
  9. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    Sorry for the delay in replying. Mailscanner seems to have caught up with most of these subject lines but one or two still get through. Here are some screenshots of what I tried with the Global Email Filters and Email Filters in the clients CPanel account as there seems to be no way to do this for the whole server in WHM that I can find.
    ScreenHunter_02 Sep. 01 11.45.jpg ScreenHunter_01 Sep. 01 11.44.jpg
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You may also find the following thread helpful when researching different methods of implementing filter rules:

    Reject emails with ZIP files containing EXE files

    It's different than the specific rule you are seeking, but offers some information you may find helpful.

    Thank you.
     
  11. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    Thanks Michael, but I presently am not having zip file issues just subject line issues so I'm not sure that this will help me any. Also my limited skill set doesn't allow me to understand a lot of the steps in the post. I'll keep pluggin away until I figure something out. ;)
     
Loading...

Share This Page