Skip to main content

Global Email Filter Error

Answered

Comments

8 comments

  • cPRex Jurassic Moderator

    Hey there!  Don't include the whole URL in the text field.  Just choose a shorter portion of the message that is unique to what you want to block.

    1
  • cPRex Jurassic Moderator

    I'm wondering if there is another issue with your system then as URLs work fine in the global filter.

    Can you run this command while creating the email filter to see if there are additional details that may be helpful for this issue?

    tail -f /usr/local/cpanel/logs/error_log
    1
  • cPRex Jurassic Moderator

    That's correct - running that just before you start the test will show the log in real-time while you perform your work.

    1
  • cPRex Jurassic Moderator

    I'm glad you found a good solution!

    1
  • nootkan

    cPRex, thanks for the reply. I was hoping to be able to block url's also as sometimes the body text is made up of a lot of regular words instead of a foreign language, which would obviously block a  lot of legit emails. 

    Is there no way to use email filters to block urls?

    0
  • nootkan

    Just shortened the body content as you suggested and still got the same error. 

    When I create a filter with a subject as the filter it works fine. 

    However, that won't work in this case due to the subject line coming from the form which has the domain name included in it.

    0
  • nootkan

    cPRex, do you mean to run the command in putty while testing the filter in the cPanel user account with WHM?  I have gone over quite a few different logs shortly after doing the test but I'm not sure if the cPanel logs were among them.

    0
  • nootkan

    cPRex, thanks for your help.  I decided to take another approach which is working for now. 

    I created a url blocking function in my child theme functions file for the contact form7's on the site. Then I deleted all my global filters for the domain and created new ones with just subject lines and body text that is unique so I don't block any legit emails if possible.  I then have those filters sending the emails to a folder so I can check it periodically. 

    Never did try to create a url filter or try your ssh command (saved it though in case needed later) as when I tested all the new filters everything worked fine.  It could have just been an error with how I created my previous filters.  In any case, all seems to be good now.

    On a funny note, once everything was in place a spammer tried to fill out a form and found he/she couldn't add a url so they placed some russian in the subject line which I immediately created a filter for and tested. I imagine that is how it's going to be lol.

     

    0

Please sign in to leave a comment.