FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > Email & Mailing List Management
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-22-2009, 02:15 AM   Postid: 176208
asjawebmaster
Site Owner

Forum Notability:
26 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2001
Location: Seattle
Posts: 45
Need help with .cn spam

We are getting flooded with html spam that contains the cn TLD in a link. Eg:

abcde.cn

Will this filter work?

if grep -iq '.cn'; then exit 99; fi

what I'm concerned about is the period before cn affecting the script in a manner that I don't understand and wiping out good emails.

Any thoughts?
asjawebmaster is offline   Reply With Quote
Old 10-22-2009, 09:51 AM   Postid: 176209
 Bruce
Developer
 
Bruce's Avatar
 
Join Date: Apr 2001
Location: Saskatoon, SK, Canada
Posts: 1,182
Re: Need help with .cn spam

Quote:
Originally Posted by asjawebmaster View Post
Will this filter work?

if grep -iq '.cn'; then exit 99; fi
That will block any message having the string "cn" in it not at the start of a line (the "." is interpreted as "any one character"). You probably want something like the following:
Code:
if grep -iq '\.cn["/]'; then exit 99; fi
This will match the literal strings '.cn"' (for things like '<a href="http://foo.cn">') and '.cn/' (for things like 'http://foo.cn/blah'). If those strings appear in an innocuous message, though, it will be silently dropped just the same as the Chinese spam.
__________________
Bruce Guenter, FutureQuest http://www.FutureQuest.net/ http://untroubled.org/
Bruce is offline   Reply With Quote
Old 10-22-2009, 11:11 AM   Postid: 176210
manfred
Site Owner
 
manfred's Avatar

Forum Notability:
122 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Nov 2000
Location: perg, austria
Posts: 198
Re: Need help with .cn spam

Hello Bruce,

I've tried your code suggestion but your filter is deleting all the informations from the email. If I send an email to the protected address, the mail was sent from "Unknown" with no subject.

-Manfred
manfred is offline   Reply With Quote
Old 10-22-2009, 12:01 PM   Postid: 176211
 Bruce
Developer
 
Bruce's Avatar
 
Join Date: Apr 2001
Location: Saskatoon, SK, Canada
Posts: 1,182
Re: Need help with .cn spam

The only way that recipe should be able to modify the content at all is if it was installed as a "processor" instead of a "simple filter". I see a similar custom filter recipe installed on one of your domains now but with a typo that will cause all mail to that mailbox be deferred (note the unbalanced quotes):
Code:
if grep -iq .cn'; then exit 99; fi
Am I looking at the right domain?
__________________
Bruce Guenter, FutureQuest http://www.FutureQuest.net/ http://untroubled.org/
Bruce is offline   Reply With Quote
Old 10-22-2009, 02:26 PM   Postid: 176212
asjawebmaster
Site Owner

Forum Notability:
26 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2001
Location: Seattle
Posts: 45
Re: Need help with .cn spam

I did try the simple filter as I posted on a test account and it was killing all incoming email.

I used Bruce Guenter's suggestion (thank you very much) and so far test emails are getting through. Will do a bit more testing.

And of course, the .cn spam has subsided for the moment . . .
asjawebmaster is offline   Reply With Quote
Old 10-23-2009, 02:34 AM   Postid: 176219
manfred
Site Owner
 
manfred's Avatar

Forum Notability:
122 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Nov 2000
Location: perg, austria
Posts: 198
Re: Need help with .cn spam

Ahhh, my mistake. I did install it as a "processor". Thank you Bruce
manfred is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:48 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.