Skip to main content

Filter syntax

Comments

12 comments

  • Edward_
    What would result in an edit failure warning when one tries to edit a post? Even changing one period or letter causes this... - Removed - My content is Not spam-like nor does it contain inappropriate elements. Trying "later" did not help. Any advice appreciated.
    0
  • Infopro
    New users are limited in what they can do, best to update thread with a new post.
    0
  • Edward_
    The top syntax also fails. It sends TLDs ending in .Com to Spam also. 44183 Now testing com>. Suggestions?
    0
  • Edward_
    Edit: I could not have imagined this would be such an unknown by everyone. The com> test failed also. (still no edit privileged operating) Edit: For what period of time are messages held for moderation and Edit not available?
    0
  • Infopro
    You'll be able to edit posts after 5. What theme is that you're using for your cPanel?
    I could not have imagined this would be such an unknown by everyone.

    I'm unclear on what you're hoping to accomplish here.
    0
  • Edward_
    The control panel theme is: dark-theme What I'm trying to accomplish per my first post, is to declare any email not From a TLD of .com, .net, .org, .gov, me, care, etc. Spam, and handle it. Using the built-in 'From' and 'Does not end with' options. Maybe without using EXIM files directly.
    0
  • Infopro
    I set this one up and sent an email to the account from a domain using .info domain extension and the email was sent to spam.
    0
  • Edward_
    Thanks infopro Please test an incoming .com message to see if it goes to your Inbox also. When this filter fails for me, everything goes to the Spam directory. I just tested a From, Does not end with, .com, sent from a dot.com, from two different senders, both went to spam. I'm trying to use the Filter test in an an older CP version, but its Filter Trace Results are erratic and different each run, with many **** debug string too long - truncated ****, some filters are not shown. Once it indicated: 'Condition is true: $header_from: does not end .com
    0
  • Infopro
    Edit the rule to use: Does Not Contain, and see if that gets you what you want. For me, it seems to. Emails from .com goes to inbox, .net, .info. .host, all go to spam. That test tool shows:
    The Filter has matched the following condition(s): $header_from: does not contain .com Return-path copied from sender Sender = someusr@server.example.com Recipient = someusr@server.example.com Testing Exim filter file "/home/somecpusr/etc/example.com/someusr/filter" Deliver message to: "somecpusr+spam"@server.example.com Filtering set up at least one significant delivery or other action. No other deliveries will occur.
    0
  • Edward_
    Edit the rule to use: Does Not Contain, and see if that gets you what you want. For me, it seems to. Emails from .com goes to inbox, .net, .info. .host, all go to spam. That test tool shows:

    The Filter has matched the following condition(s): $header_from: does not contain .com
    Ok, I have been testing a TLD filter using From, Does not contain, .com, (or) .net, (or) .edu. First .com individually, then with multiple criteria. The .com by itself does work -> Inbox. But when I have multiples (in same filter) like .com (or) .net (or) .edu (or) .gov (or) etc., the .com froms go to -> Spam. As quickly as I delete the other TLDs (leaving only .com) the filter works -> Inbox again.
    0
  • Edward_
    This seems to have been an OR/AND issue. When I changed the OR to AND for each, the .com messages pass to the Inbox, using multiple criteria (.com, .net, .org, .edu, etc...). Tests with incoming .net senders also passed to Inbox. Strange that the 'Does not end with' wouldn't work, mission accomplished.
    0
  • Infopro
    Thanks for posting an update to the thread.
    0

Please sign in to leave a comment.