RegEx & Incredimail |
Post Reply ![]() |
Author | |
Keizersozay ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() Posted: 09 July 2003 at 12:20pm |
When using the magic RegEx (<[!--]+[a-zA-Z0-9]{11,}) expression even for a few minutes I notice that it it blocking a lot of people using incredimail. I remember reading a previous post about this somewhere... does anyone know of a way to exclude the incredimail comments so that it won't be blocked.?
Thanks. |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
Please post a sample message that was blocked including the header and I can take a look at it. No promises though. Dan S. |
|
![]() |
|
Keizersozay ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
This is an entire email message that was blocked. at the bottom there is a <!--IncrdiXMLRemarkStart> comment that I think is tripping the filter. along with a <IncrdiXMLRemarkEnd-->
Received: from 24.236.126.4 by 192.10.10.224 (LogSat Software SMTP Server - Unlicensed Evaluation Copy) Wed, 9 Jul 2003 10:39:59 -0500 This is a multi-part message in MIME format. ------=_NextPart_000_0180_01C34606.8AF27740
Gabriel came to the Lord and said, "I have to talk to you, I have some
Some folks are walking around with one wing. They have been late taking their turn in keeping the stairway to There are watermelon seeds all over the clouds. Some of them aren't even wearing their halos, saying it is messing The Lord said, "I made them special, as I did you, my angel. Heaven The Devil answered the phone, "Hello? Dang, hold on." The Devil returned to the phone and said, "Hello Lord, what can I do for The Lord replied, "Tell me what kind of problems you are having down there." The Devil said, "Wait one minute," and puts the Lord on hold. After 5 minutes he returned to the phone, and said "Okay, I'm back. The Lord said, "What kind of problems are you having down there?" The Devil said, "Man, I don't believe this..... hold on, Lord". This time the Devil was gone for 15 minutes. The Devil returned and said, "I'm sorry Lord, I can't talk right now. These
I want think about it today, I 'll think about it tomorrow. After all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
clouds.<BR><BR>Some of them aren't even wearing their halos, = |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
The following will work BUT it does leave a small hole. If this RegEx is reported back to a Spammer, and they take the time to see what it is, they could "break through" the filter. Not very probable, I don't think. (<[!--]+[a-hj-zA-HJ-Z0-9]{11,}) Try it and let me know please. If it works, great. If it stops doing it's intended job, not so great! Dan S.
|
|
![]() |
|
Keizersozay ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Thanks, I'll give it a shot and let you know.
Thanks for the help |
|
![]() |
|
Keizersozay ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
.. Nevermind, I see how it is different.
I'll let you know how it goes. |
|
![]() |
|
George ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
This is a problem that will require one of two things. In order for either one of these two ideas to work, SpamFilter will have to process things by priority, ie. Process White list items first then the Black list items. According to Roberto, "..but the setting for no rev DNS instead says "quarantined it". There is no way currently to tell SpamFilter which is the predominant quarantine yes/no rule. |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
For your own information, we have also found that some newsletters have tags that get nailed by that filter and we HAD further mods to help with them but took them out. The customers are simply going into the manager and sending them to themselves. The additional tag is as follows: <!--messageREACH-object-start--> Now ... George made a post that I am going to respond to ... not here but from his post. Dan S.
|
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
George, Our fix does, in fact seem to work for the incredimail problem (see my post) because we are not seeing no rdns issues, just the comment tags. Having said that, in our business model, we have made the decision that if there is no RDNS, it gets blocked ... period, no exceptions so for us, in a sense, that simplifies things. Also, my understanding is / was that white lists are processed first so I am not sure we have a problem there. If all my assumptions are correct, my big "WISH CHANGE" would be a very simple one (depending on how the RegEx engine works). "Simply" get Booleans to work in a single expression. Example: ( (This expression) AND !(That Expression) ). The "!" meaning "NOT". All the documents I see on Regular Expressions don't mention ANYTHING about Booleans. However, I use them all the time in Perl so Perl must have an extended set of valid directives. Bottom line ... AND , OR, NOT (!) would extend the capabilities of the Regular Expressions beyond belief! Dan S. |
|
![]() |
|
Keizersozay ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
the adjusted regex code you gave me seems to be working well. So far it seems to have only cought junk mail and not incredimail. Thanks again for your help.
Thanks. |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
OK ... I am continuing to "Refine" this but I am using the following 3 in this order. I am working on a way to make them more accurate and simpler but this is what I have for the moment: (<[!--]+[a-hj-zA-HJ-Z0-9]{11,}) Dan S.
|
|
![]() |
|
George ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Dan, The problem I ran into in the the way the Black/White lists work was even though an email address is in the black list that was set to not quarantine, it still got quarantined because it had keywords in the keyword list and that list is set to quarantine. This a problem when you get a flood of email to accounts that don't exist. I just wanted to block them out right and disconnect the sender with out having the emails quarantined. |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
George, I am still working on the RegEx ... I posted an iteration of the modified one earlier but I am still trying to simplify it. Now ... in response to "RegEx needs to be more logical" ... But then what would all the UNIX Geeks do in their spare time? On your last point. Ahh ... I understand completely. I have a nasty situation where we host a domain (from an old ISP acquisition) that only has 2 valid addresses. We want to "dump" the domain and kill any MX records pointing to us but the 2 users are not interested in changing to our default domain. That single domain (out of the 400 + domains that we host) is responsible for 30% of the messages in quarantine. I thought I had a "work around" but it ended up not having the desired effect. I really think that, for now anyway, we have to live with the quarantining (is that a word?) of non-existent addresses. In LogSat's defense, all of us (perhaps you and myself especially) could "Wish List" them to death. I hope you agree that LogSat has a real good product here. At the traffic / account level that even our smallish ISP is at, the closest WORKING products we looked at, and I spent months on looking, were priced anywhere from $18K to $120K. I don't know about your situation, but that wasn't going to fly for us. Even at that level, there were areas that were less than perfect. I have asked Roberto to give us a $$ quote for some specific mods the we really want. Everyone will benefit from the changes as we are not requesting a "special build" just for us. If we end up doing it, I think the major change I have requested will help both our situations ... not sure yet though. BTW ... We are in CT / USA. Where are you located? Dan S.
|
|
![]() |
|
George ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Dan, Yes "Quarantining" is a word when spelled this way. :) You are correct about LogSat's product. It is by far the best product out there for the $$$. The fact that it will work with just about any SMTP server is the biggest plus. Most of the other spam filtering products I looked at were way too expensive and were limited to certian SMTP servers. Too many companies are trying to take advantage/$$$ of this problem. The ones I have to laugh at are the ones that send out SPAM advertising thier products. I am located in Ca /USE. Roberto has my permission to give you my email address. Don't want to post it here since I am sure if I did I would end up getting Flamed by spammers. |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
George, I asked Roberto to pass my address to you also. I want to discuss RexEx's some more without "Clogging" up the forum. Once I get the bugs out of the expressions I am using, I may post them but I do not want to be responsible for causing a problem due to my stupidity. Some of the expressions I am working on make me want to go back and "fix" the first 1 or 2 I have done. I am also trying to get clear stats on how effective they are with respect to eachother and the VERY few actual keywords I do have. I have a grand total of 9 RegEx's and 8 actual words. I am truing for all Regular expressions and living with what else get by. Dan S.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.105 seconds.