SPAM (bad email)
sent to me

circa 2010


Home > RefInfo menu >

Computer Topics menu (Security section) >

This Spam eMail Samples MENU page
(revealing source IP addresses)

! Note !
This was intended to be an on-going project.
Namely: Collect spam that I receive and file the headers
under the apparent source IP address. Then add 'whois' info.

Around 2012, my email/ISP provider (or someone)
seemed to start doing a much better job of
filtering spam out of email. So this project
has gone into a dormant state.
(But it may be revived.)

< Go to Table of Contents, below. >
(Skip the Intro)


I hate spam and spammers. Not only because dealing with spam is a waste of my time and a frustrating nuisance --- but also because some of the spammers are trying to gather personal information and cause damage to my computer or my financial well-being.

    I have given a fairly detailed description of a trojan horse infection of Microsoft Windows in a blog post. It happened during web browsing, but it could just as easily have happened by clicking on a web link in an email.

On Spammers and their Congressional facilitators :

The spammers' motives may be simply anti-social or they may be trying to get rich --- often both. (Many apparently get perverse pleasure out of screwing around with other people while trying to take their hard-earned money.)

Whatever their motives, I believe that public punishments like stoning and tar-and-feathering should be brought back and applied to these abominable, despicable, shameful protoplasmic life forms --- these poor excuses for human beings.

I believe they should be given a bottle of water and a blanket and a parachute and pushed out of a plane flying over one of the Aleutian islands. There they could compete with each other to survive. They are resourceful. Perhaps they will survive and start another Australia, like convicts from England did over a century ago.

    It is just as despicable that the U.S. Congress has been avoiding (for about 20 years and counting) passing laws with real teeth, that the Executive branch could use to clamp down on these creatures.

    (The Executive branch --- FTC or FBI or FCC or whoever --- also needs sufficient funding, from Congress, to be effective.)

    There are plenty of Republicans (almost all of them, as a matter of fact), and many Democrats, who mouth platitudes like "not wanting to discourage innovation by entrepreneurs" as excuses (absolutely ridiculous ones) for not doing what any socially-responsible legislator in government should be doing.

    Finding new ways to spam people (to get their hard-earned money and/or to mess up their computers) is NOT the kind of innovation that we need --- and I am sure our forefathers would not approve of using obviously contrived Constitution-based arguments to justify allowing these low-life life-forms to 'innovate' in that way.

    Many of those legislators deserve stoning and tar-and-feathering, just as much as the spammers.

Left to our own devices
--- mostly, poor devices :

Since there is not going to be any meaningful crackdown on spammers (and their host providers) in the forseeable future, it is left to the individual computer user to come up with a strategy for dealing with spam.

    Many 'home' users have found a reasonably pain-free solution by opening a Gmail account with Google. Google seems to have very aggressive spam filtering routines in place. But there are those of us who do not trust a 'third-party' provider to adequately protect our email, 'in the cloud', from deletion, abandonment, or misuse.

There are filters (in email 'client' software and in mail server software) based on

  • 'Received from' email addresses and host domain names

  • text strings in Subject lines or in the body of an email, including automated 'Bayesian' filtering of such text built into some email clients

But spammers have worked around these kinds of filters --- using phony email addresses, constantly shifting (or using 'spoofed') host names, and using graphics files or 'doctored' keyword text strings to get around Bayesian (statistical) filters based on text strings.

Example 'camouflaged' Subject line of a spam mail:

Get t5e m3ds yo8 n8ed with us a4d save


Get the meds you need with us and save

Another example of a 'camouflaged' Subject line:

V"i"#'agra on Sal_e today

It is amazing to me that anyone would trust someone who would send 'doctored' emails like this to provide them with trustworthy medicines. But apparently people actually respond to these ads with their money.

Types of spam :

In the 2005 to 2008 time frame, I was receiving spam of several different types:

  • Rolex ads
  • mortgage offerings
  • make-money-at-home ads
  • male enhancement ads
  • Viagra ads
  • cheap meds (all types of medications) ads

In 2009 and 2010, all the spam I receive is the latter type, cheap medications ads --- with scrambled titles in the Subject line --- and usually with a link to a web site --- often with a or or or domain name in the address.

    It amazes me that these spammers can expect anyone to respond to emails with scrambled Subject lines and phony return email addresses. There truly must be a sucker born every minute --- or there are a lot of desperate, sick people out there who believe that drugs can solve their health problems.

    Most of these 'target' people do not realize that most of them do not need to ADD something new to their ingestion patterns --- like one OR MORE drugs.

    Rather they need to REMOVE something from their life. Typically, they need to remove something in their diet (way too much sugarS and starches) or they need to cease smoking. They are too late, perhaps, if their kidneys, pancreas, lungs, cartilage, liver, or whatever is extremely damaged.

    But they should cease (REMOVE), in any case, to help a miracle to occur, if any is coming. In such a dire situation, it is too late for simplistic drugs to restore their complex organs to their former selves.

    If the 'target' people are intent on going the pharmaceuticals route, they should be aware that they probably cannot depend on getting good quality drugs from spammers like these. In fact, they may not receive delivery at all.

Blocking Bad Mail or Allowing Good Mail
--- or Both? That is the question.

Back to dealing with spam:
I feel that the only real way to avoid the spam is to block bad (or allow good) mail by IP address.

I would not mind blocking mail by source-country.

For example, it is known that a lot of spam comes from Korea. I know that I will probably never need to receive an email from anyone in Korea. I am quite willing to block mail from all Korean IP addresses --- that is, shunt such emails into a Suspected-Spam folder.

    Unfortunately, the Internet Administration people who assign IP addresses did not have the foresight to allocate large blocks of IP addresses to each country, in proportion to their population.

    Instead, they assign small ranges of IP addresses to applicants, with little regard for keeping address ranges for each country contiguous.

    On this web site, there is a page of 'External Links' to information related to SPAM. The IP lookups section of that Spam Links page can give examples of the 'scattered' nature of the IP address assignments.

    If that page is not helpful enough, you could try a WEB SEARCH on keywords such as 'ip address ranges for countries' to find sites that provide information on all the IP address blocks assigned to a specific country.

    In Jan 2019, there was nice country-IP-blocks information at

    Instead of being able to block all Korean addresses by specifying a single block of IP addresses --- for example, all addresses whose IP address 'prefix' is

    • 60, OR
    • 60.30 through 60.115, OR
    • 60, 61, and 62

    there are literally hundreds (if not thousands) of address ranges that need to be specified to block South Korean IP addresses. (And North Korea seems to be a 'black hole' of IP addresses.)

A better way to go, instead of blocking ('black-listing'), may be to allow certain ranges of addresses (a 'white list') and block everything else.

Then whenever you find an IP address, in an 'acceptable country' range of addresses, that you need to block (such as an IP address within a range assigned to Comcast or Yahoo, say), you could remove that address (or a 'containing' address range) from the group of 'white-listed' addresses and address ranges.

To gain an understanding of the 'black-list' address types and ranges, this page provides access to IP addresses that have sent me spam in the past --- around 2009 to 2010.

    I intend to start a page that lists 'good IP addresses', to gain an understanding of the 'white-list' address types and ranges.

    This is all intended to lead to a way to filter mail (and to filter network traffic) that is suited to my needs --- and probably suited to the needs of many others.

The spam files collection process :

As I go through my email, I put the spam that gets past the filters (if any) of my ISP provider into a 'Spam_NOTfiltered' folder. This folder is really a file with all the emails concatenated together in the file, but with a 'From - ' line that indicates the start of each email.

    I use Thunderbird for mail and the folder files are in a 'Local Folders' directory. The full path is of the form

    /home/[userid]/.mozilla-thunderbird/[scrambled-alphanumeric-chars].default/Mail/Local Folders

    I have created some utility scripts to occassionally scan this Spam 'folder file', separating the individual SPAM emails into separate files, and naming the files with the apparent source IP address.

    Also I concatenate 'whois' information for the IP address, to the bottom of each mail file.

    The 'Table of Contents' menu below provides access to those spam emails, essentially in order by (apparent) source IP address.

    Network traffic filtering,
    as well as email filtering :

    Eventually, I would like to use a whitelist-blacklist utility (based on the 'iptables' filtering system of Linux) --- such as ufw (Ubuntu's Uncomplicated FireWall), iplist, or moblock --- to block IP address access to the network card on my computer. At that time, this info on black-list candidates (and white-list candidates) will be useful.

    In order to allow access to international web sites, however, I may have to allow more IP address ranges access to my network card. In other words, the 'allowed' IP address ranges for email receipt will probably be more restrictive than the access requirements for web browsing.

Table of Contents:

(link to a page-of-links
to spam e-mail samples)

Spam-samples links, all on one page
(links in order by apparent 'source' IP addresses)

The following may be implemented someday:

If I ever collect many more spam email files, I may

  • extract just the header lines from each email into a text file (assuming some of the emails are rather lengthy or may include links to dangerous web sites)

  • determine the apparent 'source' IP address

  • make directories --- '000' to '255' --- and put each header file into the directory corresponding to the 'first octet' of the source IP address

  • make a links web page in each directory --- example: 000/spam_000.htm --- with links to the header text files in that directory

Then I would turn the following web page names into links, by which one could see examples of spam email headers corresponding to any given first-octet of an IP address.

    Unfortunately, the IANA organizations did not dole out a CONTIGUOUS IP address block to each country. So the first-octet of an IP address does not clearly indicate which country (or group of countries) an email came from.

    But SOME octets are pretty much assigned to about one to 5 countries. So this partitioning of the spam headers can provide some semblance of organization of spam emails according to country source.

































If this organization by 'first-octet' does not prove to be helpful, I could try making about 240 country '.htm' pages and collecting the links to spam-header text files on those pages.

Some SEARCH engines
(to use to get more info on spam and IP addresses)

End of Table of Contents.

Naming convention used for the spam files :

After I separate the emails from a 'folder-file' of concatenated emails, I rename the files (via a script) to names of the form mail_from_[IPaddress]_[date].txt.

A specific example:


I may provide links here someday to a web page providing the scripts I used to process the spam emails into separate, meaningfully named files.

Bottom of this
SPAM eMail Samples MENU page.

To return to a previously visited web page, click on the Back button of your web browser, a sufficient number of times. OR, use the History-list option of your web browser.
OR ...

< Go to Table of Contents, above. >

< Go to Top of this page, above. >

Page was created 2010 May 25.

Page was changed 2019 Jan 09.
(Added css and javascript to try to handle text-size for smartphones, esp. in portrait orientation.)