Skip to main content
giovinco_06
New Member
Nov 22, 2010 12:08 PM UTC
Question

How to make email filter using wildcard

Anybody can help how to make filter email for spam *@ms15.spam.net. I already tried make some rules, but it didn' t work. pls see the attachment.. thanks a lot for your help

    5 replies

    ede_pfau
    SuperUser
    SuperUser
    Nov 22, 2010 12:15 PM UTC
    Wildcards do not use the backslash, only Regex do. Do none of the patterns fit?
    Translate
    rwpatterson
    New Member
    Nov 22, 2010 2:19 PM UTC
    ORIGINAL: giovinco_06 Anybody can help how to make filter email for spam *@ms15.spam.net.
    Try (.*\@ms15\.spam\.net) as a regex
    Translate
    giovinco_06
    New Member
    Nov 25, 2010 3:03 AM UTC
    thanks rwpatterson, Nowadays, in my mail server, the traffic is reduce after I also add some DNSBL configuration besides of Email filter.
    Translate
    ede_pfau
    SuperUser
    SuperUser
    Nov 25, 2010 8:50 AM UTC
    IMHO there is no need to escape the ' @' in the regex as it is not a special character. That said I' d guess ' .*\@someserver.com' would never match any email address. edit: nope, it doesn' t HURT but is not necessary either.
    Translate
    uthgra
    New Member
    May 23, 2023 12:31 PM UTC

    Good morning, as far as I can see they can't give you a more concrete answer. It is difficult to find information on how the parameters should be loaded.
    As far as I could find, when you use "Wildcards" you must load the value *@domain.com and if you use "Regular Expressions" you must enter the domain name, without @, for example domain\.com$ or domain\.com\.uk$
    Also if you use a word in the "regular expression" that word will be filtered.
    If someone had another experience that has been satisfactory, I would appreciate it if you could comment it.
    Thank you very much.

     

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024