Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 10:54:08 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: SPAM and other issues, Regex ?!  (Read 205 times)
wtjr1632
Space Explorer
***
Offline Offline

Posts: 8


« on: April 30, 2008, 10:20:04 AM »

Hello I just started getting all kinds of spam.
S.A> is turned on at a level of 2.5
I have about 30 filters I set up in email. Every thing from man to nights
I removed all email addresses from webpage and make them use a form.

Is the lunarpages email secure? where are they getting my addresses? From the server?

Should I now set SA to 1.0?

I use to be on a diffirent host, at the other hosting company and never got a spam attack like this...
is something diffirent? No offence

Thanks,
JW

also how do I filter any email above 4 meg?
Is there a way to filter every email with 2 words or less in subject?
Is there a way to filter every email that has a double dot in sent from like test@dz.az.com
Is there a way to filter all email outside US ?


I found this in a search:
" I have quite effectively been using the filtering/blocking for email in cpanel for my own two domains and two other domains that I totally manage for two other people (including sending and receiving of their email communication).

A few of the filters that I successfully use are for the To portion

One or two Subject filters where I use regex format with an example here of "free|gift|pay|surprise" that's just an example, the real like is unique and selective, and seems to be effective.

I also filter/block using any header and regex specifying specific IP number or ranges, and as such have blocked Most of APNIC (Asia Pacific) as lots of spam I found originated from there and I "normally" would not ever get email from same. That has also been quite effective."
http://www.regular-expressions.info/    that explains something?Huh ):


The question is how to regex?
« Last Edit: April 30, 2008, 11:54:06 AM by wtjr1632 » Logged
wtjr1632
Space Explorer
***
Offline Offline

Posts: 8


« Reply #1 on: May 01, 2008, 12:19:48 PM »

Well while after a lot of work here is a regex filter that appears to work to block IP from country

57\..*\..*\..*       france

select any header
regex
discard

in email filters
$message_headers contains "61\..*\..*\..*"     Discard      
$message_headers contains "dating"    Discard     
$message_headers matches "122\..*\..*\..*"    Discard     
$message_headers matches "190\..*\..*\..*"    Discard     
$message_headers matches "193\..*\..*\..*"    Discard     
$message_headers matches "201\..*\..*\..*"    Discard     
$message_headers matches "203\..*\..*\..*"    Discard     
$message_headers matches "222\..*\..*\..*"    Discard     
$message_headers matches "57\..*\..*\..*"    Discard     
$message_headers matches "58\..*\..*\..*"    Discard     
$message_headers matches "62\..*\..*\..*"    Discard     
$message_headers matches "79\..*\..*\..*"    Discard     
$message_headers matches "80\..*\..*\..*"    Discard     
$message_headers matches "83\..*\..*\..*"    Discard     
$message_headers matches "85\..*\..*\..*"    Discard     
$message_headers matches "87\..*\..*\..*"    Discard     
$message_headers matches "89\..*\..*\..*"    Discard     
$message_headers matches "92\..*\..*\..*"    Discard       
« Last Edit: May 01, 2008, 04:58:50 PM by wtjr1632 » Logged
wtjr1632
Space Explorer
***
Offline Offline

Posts: 8


« Reply #2 on: May 02, 2008, 08:03:26 PM »

Those filters do not work right as they filter that number anywhere in headers.
ie 61 will filter all 61's even inside other numbers containing 61's

so for now I am not using regex instead I say match any header that contians

[122.

That will block all from that ip

in black list I added this
 *@*.??            This takes care of ALL mail from two letter country domains
« Last Edit: May 02, 2008, 10:31:50 PM by wtjr1632 » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM