This entry was posted on Wednesday, December 19th, 2007 at 10:19 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
12.19.07
How to Fight a Joe Job Spam Attack
After receiving spam complaints and lawsuit threats at regular intervals for over a year and after many arduous hours of research, I finally found some methods to help combat what has become known as a “JoeJob” spam attack.
If you are the victim of a “Joe Job Spam Attack”, let me save you some time and tell you how to configure a few items to help thwart the spammers:
Before we setup the SPF record, let’s modify the default email (catch-all) address to :fail: or discard. Log in to cpanel for the domain and click on ‘Default Address’, configure it so that it looks like the following (substitute your domain and put whatever message you want):

Now let’s setup SPF.
First, go to the SPF setup wizard (open site in new window)
Then, Connect via SSH and perform the following steps manually:
> pico /etc/named.conf
*if pico doesn’t work, try edit
Find the line containing your domain and note the location of the zone file. Edit the zone file and add a line such as (last line in screenshot above):
domain.tld. 14400 IN SPF “v=spf1 a mx -all”
*Notice the period after the domain and tld. Here’s a screenshot of what my record looks like after adding the TXT record:

Command to check SPF record from SSH:
> dig -t TXT domain.tld +short
If you don’t have SSH or if you feel more comfortable using WHM/cPanel, here’s how it should go:
Log into WHM, click on ‘Edit DNS Zone’ and choose your zone. Click ‘Edit’
You should add an entry that looks like this:

Restart BIND and you should be all set!
Restart BIND via SSH with:
> service named restart
Alternatively, you can use WHM’s restart BIND option.
I sure hope this helps you and me. I just configured this tonight, but from what I’ve read in my research, I am very hopeful. I guess we will see once the spammer launch their next attack. Or, if it works really well, the spammers will have a hell of a headache on their hands when they are discovered and I guess I won’t know after all. Lol.







December 19th, 2007 at 10:29 pm
[...] Read how to combat a Joe Job Spam Attack. [...]
January 13th, 2008 at 2:11 am
[...] will be adding SPF records to my most important [...]