Spamfoo wild cards
Problem reported by Brian - 8/19/2026 at 8:07 AM
Known
When I have a rule that has example.com all emails are flagged in spamfoo from example.com

When emails arrive from bounce.example.com they are not flagged as spam but goes through.

So I have to make two rules to flag the entire domain. One is example.com and the 2nd is *.example.com

I cant get both to work in a single rule. And that is quite annoying.....
Derek Curtis Replied
Employee Post
Hey, Brian

I brought this up to the SpamFoo guys and this is designed behavior. That said, they are looking at alternatives -- it's just a matter of finding one that appeals to all situations and everyone's understanding of what "*.example.com" actually covers. Some think a wildcard is just for subdomains while others feel the root should be covered as well when a wildcard is used. 
Derek Curtis
CCO
SmarterTools Inc.
Brian Replied
it would be great if one rule could handle both so you could define both like: "example.com, *.example.com"

That way we could eliminate 50% of the administrative tasks handling rules in Spamfoo.
Gabriele Maoret - SERSIS Replied
Brian, did you try "*example.com" instead of "*.example.com"?

Without the "." between the "*" and "example"...


Of course, this will also include all the "somethingexample.com" domains...
Gabriele Maoret - Head of SysAdmins and CISO at SERSIS
Currently manages 7 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 6 on-premise for customers who prefer to have their mail server in-house)
Brian Replied
No i didnt... I will try that.

EDIT. You cant do that. It wont accept the syntax in the rule.

Reply to Thread

Enter the verification text