Print Page | Close Window

Wildcard question

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: http://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4987
Printed Date: 15 December 2017 at 5:11am


Topic: Wildcard question
Posted By: Guests
Subject: Wildcard question
Date Posted: 17 January 2005 at 7:46pm

Not sure of the usage of wildcards.  I have a list of blacklisted domains that I want to add wildcards to.  For example, if I want to block all e-mails from acme.com including things like ns1.acme.com, which would I use this: *acme.com?  Or do I need the @ like *@*acme.com?

Thanks




Replies:
Posted By: Desperado
Date Posted: 17 January 2005 at 11:50pm
Rauco,
 
OK ... you will hate me but I would actually use the following RegEx:
((?i).+?@(.+?\.){0,2}acme.com)
 
This means Don't test for case, then one or more chars, then 0 or more chars+dot 0-2 times and then acme.com ... OR
The following:
mailto:jack@acme.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - jack@acme.com
mailto:Jack@ns1.avme.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - Jack@ns1.avme.com
mailto:JACK@bounce.ns1.acme.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - JACK@bounce.ns1.acme.com
 
Regards,
 
Dan S.


Posted By: Guests
Date Posted: 18 January 2005 at 6:42pm

Nope.  I don't hate you at all - I just have to find a good reference for RegEx!  lol

Thanks.  I'll be tacking that on the front of all the blacklisted domains I have until I expand my RegEx knowledge.



Posted By: Desperado
Date Posted: 18 January 2005 at 7:09pm

Rauco,

Remember that that was not a "simple" entry but a Regular Expression and as such must hav the ( ) around the expression exactly as I show or it will break.

Dan S.



Posted By: Guests
Date Posted: 19 January 2005 at 8:37am

Dan -

With the little I know about RegEx it seemed that the ( ) were needed but thanks for the heads up.

It works great so far and I've installed Regex Coach to get me farther.  Thanks again!



Posted By: keizersozay
Date Posted: 24 January 2005 at 8:52am

Dan,
Do you put this in your keyword filter file, black list email address file, or black list domain file?

Thanks.



Posted By: Desperado
Date Posted: 24 January 2005 at 10:37am

This would be the BlockedFrom email blacklist.

Dan



Posted By: Guests
Date Posted: 24 January 2005 at 8:21pm
Wouldn't it also work in the blocked domains?


Posted By: Desperado
Date Posted: 24 January 2005 at 8:28pm

It will but only if (I believe) the actual IP resolves to those names.

Dan S.

 




Print Page | Close Window