Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 5, 2008 - Time to Submit Your Links for the August 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 21, 2008, 09:02:43 AM


Login with username, password and session length


Pages: 1 [2] 3   Go Down
  Print  
Author Topic: Spam prevention strategies  (Read 9582 times)
w98
Galactic Royalty
*****
Offline Offline

Posts: 438



WWW
« Reply #15 on: July 07, 2005, 12:44:19 PM »

I've found the best way to track spam and where it comes from, and who sells/rents your Email address from their customer lists is to turn on your catch-all address.

Thus, I can use lunarforums@w98.us and messages will find their way into my mailbox. That way, when I started getting spam at that address, I knew instantly that some spammer had spidered these forums and picked up my Email from my profile. So I can just set a filter in the cpanel to dump all messages to lunarforums@w98.us in the trash and set up a new Email address for the forums.

I do this for pretty much every site I register at ... I generally use theirdomain.com@mydomain.com so I know pretty quickly who is having security problems (like United airlines - I was the 3rd person to notify them within minutes of a security breach a number of months ago when my United Plus membership Email address started receicing spam), or who is just selling my Email address to "marketing partners" and set appropriate filters and more importantly: stop using those sites for any business whatsoever and telling my family and friends to do the same.

There's also a neat site out there at http://www.hostedscripts.com/scripts/antispam.html which will generate a huge list of dummy random useless Email addresses, as well as an href link back to itself ... this way, spammer harvest scripts will start collecting those useless addresses, and then spider to the next page (back to itself) which will then generate even more random Email accounts. I found another site that released a Perl script to do this same thing and generated numerous href links on the page back to itself to generate dozens of useless Email addresses. Quite fun since the harvesters out there are obviously not VRFY'ing the addresses they collect -- I stopped using my wild98.com domain for a few years, and recently linked it through my cpanel and IMMEDIATELY started getting spam at Email addresses that would have bounced back over the previous 2 years.

ian
Logged

TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11965



WWW
« Reply #16 on: July 07, 2005, 09:45:01 PM »

Yes, my suggestion is to use a catchall address but to contain it to a specific subdomain rather than to the root domain, which would then be vulnerable to dictionary attacks sent to sales, webmaster, etc.

Doing this also helps track down the source of infected messages.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
Arngautr
Jabba the Hutt
*****
Offline Offline

Posts: 622



WWW
« Reply #17 on: July 08, 2005, 04:30:46 AM »

It might be a bit excessive, but this, in addition to what others have said, works great for me.



At a little under .5 KiB this image takes next to no time to download.  Downside- it is not so good for blind folks (sorry skeetley, et al) or text based browsers, though the image name indicates it is an email address mitigating that to some extent, (and one could add something less visible (as far as visual browsers are concerned) in the annoying "JohnDoe then the at symb0l followed by mysite dot com etc.. etc.." style, maybe I'll add that to my site as I fix her up), also prevents copy & paste.  Wouldn't recommend this for a business site for those reasons, but it might be ok for a low traffic personal site.  And takes about a minute to make w/ Photoshop or The GIMP.

(maybe should be in a different font, also looks better on a black bg, well, I'll change it when my URL changes I guess. What I'd really like is a little antialiasing ...Dang MS)
Logged
spatters1000
Newbie
*
Offline Offline

Posts: 5



« Reply #18 on: October 30, 2005, 05:40:03 PM »

JavaScript To Hide Your Email Address

Here's an easy way to hide an email address on a web page. Use JavaScript to dynamically build the mailto link. Doing it this way breaks up the email address into variables and "hides" it so that it's not displayed in its entirety on the web page or in the page code. This prevents the harvesting spiders from seeing it as an email address -- if they can't find it, they can't harvest it. Some may say a drawback to this strategy is the email address isn't spelled out on the page, but then that's the whole idea behind doing it this way. Hey, it ain't the be-all, end-all to email harvesters, but it'll certainly slow 'em down.  Ner Ner

Just put the JavaScript code (see below) into your html page where you want your email link to appear and customize it with your email address info.

In the JavaScript sample below, replace "myemail" with your email account name, and replace "somedomain.com" with your domain name. The subjecttext variable can be used to automatically fill in the email's subject line if you want. Or, if you'd rather leave the subject line blank and let the user fill it in, just don't put anything in that variable. (More about this a bit later.)

Here's the script:

<script language="javascript">
<!-- hide from older browsers
  var username = "myemail";
  var hostname = "somedomain.com";
  var subjecttext = "Subject%20Text%20Here";
  var linktext = "Email Me";
  document.write("<a href=" + "mail" + "to:" + username +
     "@" + hostname + "?subject=" + subjecttext + ">" + linktext + "</a>")
//-->
</script>


Here's an example:

Let's say your email address is susanjones@susansgreatwebsite.com.
Also, let's say when someone sends you an email by clicking the link on your web page you'd like for the subject line to read "A Message To Susan From The Web Site".

In the script below let's change the variables -- those parts in quotes -- and customize it to Susan's email address:

  • Change "myemail" to "susanjones" -- Yes, you must use the quote marks, and you must leave the semi-colon at the end of each line.
  • Change "somedomain.com" to "susansgreatwebsite.com"
  • Change "Subject%20Text%20Here" to "A%20Message%20To%20Susan%20From%20The%20Web%20Site" -- We'll come back to those %20 things . . just hang on.
  • Finally, change "Email Me" to "Email Susan" -- or leave it as Email Me if that works for you. This is the text for the clickable link that will appear on the web page.
  • Don't mess with the document.write part. That's the part that takes all the variables and puts them together when someone clicks the 'Email Me' link.

Now, about those %20 things in the subject line -- they will be converted to spaces when that line of text is put into the subject line of the email message. So, if your subject line has spaces in it -- which most will -- be sure to put %20 every place you want a space to appear. (It's a JavaScript thing.) And, be sure you don't accidentally enter a real space (don't hit that spacebar!) when you're typing the subject line. If you have actual spaces in the line it won't work.

As mentioned above, if you don't want to specify a subject line just delete the text inside the quote marks, which will effectively put nothing in the subject line. Don't delete the subjecttext line out of the code. Deleting it will "break" the script. Just do it this way:  var subjecttext = "";

Finally, what you'll see on your web page is a clickable link -- a hyperlink -- that says:  Email Susan.  When a visitor to your web site clicks the link it will open an email window addressed to susanjones@susansgreatwebsite.com, with a subject of A Message To Susan From The Web Site.

And, the best part is those nasty email harvesting spiders won't be able to figure it out!  Applause
« Last Edit: October 30, 2005, 05:57:56 PM by spatters1000 » Logged
wirelessguru
Newbie
*
Offline Offline

Posts: 5


« Reply #19 on: March 12, 2006, 05:24:02 PM »

^^ If you're not good at javascript, I've always used the form on this website to create my mailto: link on my websites http://automaticlabs.com/products/enkoderform/

Also, tell your friends if they are sending mail to more than one person - use Blind Carbon Copy (BCC:)
Logged
H3
Newbie
*
Offline Offline

Posts: 1


« Reply #20 on: May 22, 2006, 10:01:17 PM »

I have just moved my domain to Lunarpages. I have enabled Spam Box, but I am unsure how to proceed in setting it up. I use Outlook 2000. Advice would be most appreciated.

H3
Logged
SteveW
Master Jedi
*****
Offline Offline

Posts: 1394


WWW
« Reply #21 on: May 23, 2006, 12:42:54 AM »

I have enabled Spam Box, but I am unsure how to proceed in setting it up. I use Outlook 2000.
You probably also enabled SpamAssassin, correct?  My advice would be to leave SpamAssassin enabled, but don't use its Spam Box because it is not very flexible in how it handles spam; it can't forward, for example.  Instead, create an email address just to hold spam, and have SpamAssassin send your spam there for your review.  If you do this, you can treat your spam email account just like any other of your email addresses, which with Spam Box you cannot do. I'm not even sure you can download your email from Spam Box using Outlook and POP3; Spam Box is not a real email address.

If you search these forums on: Spam Assassin (use 2 words, to catch both SpamAssassin and Spam Assassin), you'll find a lot of information about it, but simply by enabling it you have already done everything you need to do.  You might run across a thread about "training" it, and you definitely don't have to do any of that. 

If your question also had to do with configuring Outlook, if you go the LP FAQ page, (LP home page, then click the FAQ link), you'll find instructions on setting it up in the Email section.  There are also threads here in the forum, if you do a search on: Outlook email set up. If you limit the search to the past 120 days or so, you should find plenty of posts without seeing ones from years ago (not that they're bad; I just know there are ones from 2006 you can use).
Logged





Mt. Shasta
photo gallery.


Don't forget Lunarpages 24/7/365 support documentation:
Flash Tutorials, Knowledge Base FAQ Articles, cPanel Manual, Glossary/Dictionary, Support Tickets,
and
Forum Search.

GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7553



WWW
« Reply #22 on: May 23, 2006, 09:18:05 AM »

I have SpamAssassin setup to add [**SPAM**] to the subject of emails then deliver them as usual. Then in the email client I have a filter setup to automatically move emails with that in the subject to a junk mail folder. I can then go through and review them (basically looking at who they are from and the subject) to make sure nothing got flagged incorrectly. So far, I haven't had any problems... except an email newsletter which has a score around 120, which I added to my whitelist to avoid having it flagged... just another option...
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
kwdavids
Galactic Royalty
*****
Offline Offline

Posts: 324



WWW
« Reply #23 on: December 14, 2006, 02:40:08 PM »

Stickied. Smile

And please add to this if anyone knows more tips.

I didn't see "don't use catch-all addresses".

While TranzNDance's suggestions are undoubtedly effective, they're sort of like changing your name if you find someone with your name is on the "no fly list".

No matter what you do, your trusted email address will leak out eventually. So I suggest that the answer is filtering.
Logged

Kevin
stephen.c
The A Team
Galactic Royalty
*****
Offline Offline

Posts: 351


When the going gets weird, the weird turn pro


« Reply #24 on: December 14, 2006, 06:59:46 PM »

what i do is setup a forwarder to my main address for each time i do business with whoever. then, if i start getting spamed on one of those forwarded addys i just delete it. sounds simple (and it is) but it works for me.  oh bye the way. the setting on the default address should be set to :fail: not :blackhole: blackhole can cause problems. jmho  Confused
Logged

TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11965



WWW
« Reply #25 on: December 14, 2006, 09:19:43 PM »

The new solution is moving my mail to another provider with much better spam filters. Smile
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
DDSPoster
Newbie
*
Offline Offline

Posts: 3

Why make personal text public?


« Reply #26 on: January 30, 2007, 12:48:36 PM »

This may be a bit lengthy, but please bear with me.

I started to have a flood of “bounced” emails appear on catch-all email account a few weeks ago. They were all returned to non-existent addresses on my domain. When I carefully opened at a few of the original messages, they were obviously spam sent to what appeared to be legitimate addresses from what appeared to be non-existent addresses on my domain. The non-existent addresses were 3-6 random characters long.

I immediately changed all of the passwords on my domain and email accounts, but the bounces continued.

Digging deeper, I reviewed the prior email in my catch-all account. I found a pattern of emails from about a week before the flood of bounces. I had received about 10 emails to the non-existent account thisisjusttestmessageatall@<my domain>.com over a 12 hour period. Each one claimed to be from a different, seemingly legitimate email addresses. Each message was received and no responses or bounce notices were sent. When I carefully opened them, each one contained 3 short lines of random phrases.

A few weeks before that, I transferred my stealthed domain account from another registrar to LP (still stealthed ). I do not mean imply any link, but I do not rule it out either and I include the info in case it’s useful to anybody else.

I use a combination of methods to avoid spam and track who has which of my email addresses and the catch-all account helped. Having the continuous flood of bounced emails is not acceptable.

Perhaps worse, it appears that someone is claiming to be originating spam from my domain. That is not acceptable either.

What happened? (fact mixed with theory)
1) My registrar change got logged someplace public. I don’t know where.
2) A spammer harvested the domain name from the public place.
3) The spammer probed the domain looking for a catch-all account using: thisisjusttestmessageatall@<my domain>.com.
4) When the emails did not bounce after about 5 days (the probe requires the delay due to the way mailers work), the spammer had a domain with a catch-all account.
5) Spam was generated with doctored headers to appear to come from my domain.

What did I do?
1) I changed my catch-all account to :fail: to deny future probes and to end the bounce flood.
2) I changed part of my email strategy to include forwarders.
3) I started using SpamAssassin (probably won't  help in this case)

Is this chance or did I cause an issue for LP? A couple days after I made my changes, I get a notice from LP that they are moving my account to another server.

Kudos to:
I didn't see "don't use catch-all addresses".
I theorize that catch-all accounts are valuable to spammers because it is more difficult to verify if an email account exists or not. This allows spammers to evade filter services that check for the validity of the return address (Comments? Is this premise reasonable?).

Kudos to:
oh bye the way. the setting on the default address should be set to :fail: not :blackhole: blackhole can cause problems. jmho  Confused
(I assume “default” was intended to be “catch-all”)
and lemons to
One more word of advice.  If you have set your Default Address to :fail: change it to :blackhole:
 
From the probe’s point of view, a catch-all blackhole is the same as email received.

Does any of this make sense?
Logged
leighsww
* The Tough Love Cuddly One *
Berserker Poster
*****
Offline Offline

Posts: 14072


WWW
« Reply #27 on: January 30, 2007, 01:47:39 PM »

and lemons to
One more word of advice.  If you have set your Default Address to :fail: change it to :blackhole:
 
From the probe’s point of view, a catch-all blackhole is the same as email received.

In all fairness to Priest, his post was made in 2004 which back then LP had a different email system in which :blackhole: was indeed the better method to use so that bounce-backs didn't clog up the system.

However, recently (in 2006), LP changed their email system (or probably more to do with using now a version of cPanel running Exim or something of that nature Smile), thus we were told to now use :fail: and NOT :blackhole:, because NOW :blackhole: clogs up the system.

Again, to clarify and to be fair to Priest ... his post that you quoted is old, thus outdated and should be disregarded, but he was not wrong at the date he posted that 3 years ago  Big Wink Smile

P.S. Here's the thread when I found out that the email system was changed (you will see that we mention the whole :blackhole: changing incident) Smile:

http://www.lunarforums.com/forum/index.php?topic=33594
« Last Edit: January 30, 2007, 02:13:40 PM by leighsww » Logged
SteveW
Master Jedi
*****
Offline Offline

Posts: 1394


WWW
« Reply #28 on: January 30, 2007, 07:52:08 PM »

I'm not sure what the intent of the test probes would have been. Maybe to try to locate a valid email address at your domain in order to make the spoofs look more real.

However it looks like your basic problem is that someone is sending spam to others using a forged return address that appears to be from your domain. This is easy to do, and there is nothing you can do to stop them. They didn't have to do the probes to accomplish this, and you weren't hacked, if that was a concern. They're just making up xxx yyy zzz addresses @yourdomain.com and using those as the From: lines. When the intended recipients of the spam also turn out to be nonexistent addresses, or if the emails are refused by the servers, the bounce notices get sent back to you. There is nothing you can do about this, and nothing Lunarpages can do about it, either.

Although you track who has each of your legitimate email addresses, remember that people can send spam to any made-up addressee at your domain. Just because you receive spam doesn't mean that your address has leaked out. You could only infer a leak if you got mail to a non-obvious legitimate email account that wasn't publicly known.

Search these forums for "SPF record". (It's "sender policy framework".) That would at least allow you to publicly state who is authorized to send mail on behalf of your domain. However, not many mail servers check SPF records, so it might not help much. It would show that you're aware of the problem and trying to do something about it, though.

The necessity for a change of server was probably due to some other cause, which you should investigate thoroughly. The email mods you described wouldn't cause a problem, but if your site is causing other issues, take the change of server as a serious warning that there is something you must fix quickly.
Logged





Mt. Shasta
photo gallery.


Don't forget Lunarpages 24/7/365 support documentation:
Flash Tutorials, Knowledge Base FAQ Articles, cPanel Manual, Glossary/Dictionary, Support Tickets,
and
Forum Search.

DDSPoster
Newbie
*
Offline Offline

Posts: 3

Why make personal text public?


« Reply #29 on: January 31, 2007, 08:00:07 AM »

RE:
Again, to clarify and to be fair to Priest ... his post that you quoted is old, thus outdated and should be disregarded, but he was not wrong at the date he posted that 3 years ago  Big Wink Smile
My apologies to Priest. I did not intend to be rude.

RE:
I'm not sure what the intent of the test probes would have been. Maybe to try to locate a valid email address at your domain in order to make the spoofs look more real.
That's what I was thinking. I know that email headers are easy to creatively construct.

I used to be very well informed about protocols, RFC's, etc., but its been a long time since I was active in that arena and I do not know current policy or practices. Having said that...

I know that some email systems only accept emails to valid addresses (via RCPT). I think this is the source of the 550 error referenced by some bounced emails. I suspect there are anti-spam filters that use that feature to verify the return address before accepting an email. If I'm correct, having a valid address is useful to a spammer.  I do not know how RCPT reacts to a catch-all.

I will look at SPF records, but I think I prefer the Vardan Kushnir Solution.
Logged
Pages: 1 [2] 3   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