18 November 2011 ~ 0 Comments

Graphing SSH dictionary attacks with HighCharts

TweetAfter my 10-year-old basement Linux server died this week from a power outage, I took the sad step of giving up on it. It’s died before and I’ve patched it back together with a new power supply here or an addon PCI SATA card there, but I finally decided to throw in the towel since [...]

Continue Reading

08 August 2011 ~ 1 Comment

Logging RT username in Apache access_log

TweetRT has its own internal accounting & tracking system for logging activity, but I was interested in even more granular stuff, like seeing who looked at which tickets. I figured it wouldn’t be that hard to log this in Apache. Well, I was kind of right, in that it wasn’t “hard,” but it took me [...]

Continue Reading

02 August 2011 ~ 2 Comments

Amazon SES: “illegal headers” with ses-send-email.pl (followup)

TweetA few people have emailed me asking me to integrate the perl code snippet into I wrote to strip illegal headers when sending email via Amazon SES into something actually usable. I’ve done so! I haven’t really tested this beyond sending some test emails, but here it is. Use this at your own risk, I [...]

Continue Reading

16 May 2011 ~ 1 Comment

Amazon SES – “Illegal Header” errors

My thoughts on the “illegal header” error some people are encountering when relaying mail through postfix/SES. Plus some perl code that should help fix it.

Continue Reading

28 April 2011 ~ 8 Comments

Integrating Amazon Simple Email Service with postfix for SMTP smarthost relaying.

How I configured an EC2 instance to relay mail through Amazon’s SES, and some of the bumps I encountered along the way.

Continue Reading

13 December 2010 ~ 0 Comments

More fun parsing BIND query logs

Tweet“But wouldn’t it be cool if it also…” That phrase usually triggers a lot of wasted cycles in my brain, though it sometimes comes up with something neat. I added a super lame graph to the DNS QPS parser. Makes it really easy to see peaks & troughs in usage:

Continue Reading

07 December 2010 ~ 0 Comments

Perl script to calculate DNS queries per second in BIND (named)

TweetI’m pricing out DNS providers and was asked what our current queries-per-second currently are. Sadly I had no idea. After lots of Googling I decided there was really no good way to get this information so I decided to parse the logfile myself.

Continue Reading

13 August 2010 ~ 0 Comments

Blocking comment spammers by IP

TweetI use Akismet to block comment spam, but it still annoys me that it even exists. Last night I put a simple IP ban into my httpd config. But who to block? I used a grep & Perl to get a rough guess of which IPs were submitting the most comments (working on the assumption [...]

Continue Reading