SEObox: Web Hosting Murah Unlimited Homeschooling Indonesia

Archive for March 13th, 2008

Old & tired:: Open Relay. New Hotness:: Brute-force SMTP AUTH

Bloody spammers.

Got complaints from my customers that their websites are going up & down like a yoyo. Checked, and that’s true enough. Although at first it seems okay, but when you hit reload, you got the error message.
Thank God for squid, so even when the server is having problems, it’s not instantly obvious to the visitors. Only to the admins. (hint: admin pages are usually set with no-cache header)

The error messages are related to mysql. So I checked it, and indeed MySQL was overloaded to the max. mysqladmin -h localhost -u root -p status showed that it’s handling crazy amount of queries per second.

I was a bit baffled. Normally, that will cause MySQL to fell straight away. But at that time, it’s “just” going up & down. So I looked for more clues using top.

I quickly noticed that there are huge numbers of smtpd processes. What’s going on ?
So I checked the mysql query log.

Turned out that the spammers are trying to brute force their way to my smtp server :(
They’re trying various combinations of username & password. They doesn’t seem to be anywhere successful, but they sure caused MySQL to act funny.
smtpd authenticate to a table in MySQL. The table is small, so it must be cached already by MySQL.

But even cached, when the requests are coming very rapidly, it’d still hurt.

Checked /etc/postfix/master.cf, and surprised to see that by default, max number of smtpd that will be spawned by Postfix is 100.
In normal situation, this won’t be a problem because it’s lightweight. But when there are 100 smtpd processes servicing brute-force attacks of spammer bots, the server will be disturbed.

So I changed this line in /etc/postfix/master.cf :

smtp inet n - - - - smtpd

Into this :

smtp inet n - - - 10 smtpd

Now postfix won’t spawn more than 10 processes at maximum, slowing down the spammer considerably.

Personally, I think old punishment styles such as, oh let’s say “hanged, drawn, quartered” should be reestablished again just for them, spammers.

No, I’m not joking.

OK, ok… but I think that’s the only punishment that would be able to effectively stop people from spamming. So sue me :)

Operasi Katarak Gratis

Kenalan saya, pak Geis Chalifah, barusan mengirimkan email terlampir di milis internal ISNET.
Saya publikasikan juga disini, mudah-mudahan ada yang bisa mendapatkan manfaatnya.

Ini merupakan amal yang luar biasa. Baru sadarnya ketika kemarin ini ayah saya perlu operasi katarak juga. Walaupun katarak beliau masih level ringan, namun biaya operasinya sudah mencapai sekitar Rp 6 juta.

Kini yang tidak mampu juga dapat menikmati kembali nikmat melihat, berkat kebaikan saudara-saudara kita ini. Terimakasih.

UPDATE : Saya mendapatkan informasi terlampir dari Bpk Faridz. Terimakasih untuk sharing nya !

Subject: Re: operasi katarak
Date: Mon, 6 Oct 2008
From: perdami @xxxxxxxxxx
To: faridz @xxxxxxxx

Yth. Bapak Faridz,

Perdami mempunyai program operasi katarak untuk pasien yang tidak mampu.

Bapak dapat menghubungi sekretariat Seksi Penanggulangan Buta karena Katarak di Perdami :

Bapak Ruswandi / Ibu Eva
Telpon : 021 - 3155377.

Mereka akan memberikan informasi mengenai tempat yang terdekat dengan tempat tinggal Anda.

Terima kasih.

Sekretariat PP.Perdami
Lily Mulyono

Terlampir adalah informasi operasi katarak dari Yayasan Rahmatan Lil Alamin.

Asww.
Yayasan Rahmatan Lil Alamin mengadakan operasi katarak tahap ke-10 secara gratis bagi kaum dhuafa penderita katarak akut. Bagi yang berminat silahkan datang ke Yayasan Rahmatan Lil Alamin pada:

Hari : Sabtu 15 Maret 2008.
Waktu : Pukul 8 pagi s/d Selesai
Tempat : Gedung Yayasan Rahmatan Lil Alamin (YRA) Jln Batu Merah no 71 Rt02/02
Pejaten Timur (msk Dari gg Arab Psr Minggu Raya) Telp 0217949301
Acara : Pendataan dan Pemeriksaan Mata oleh Team Dokter.

Operasi ini gratis untuk siapa saja baik Muslim, Kristen, Hindu Dll.
Dengan syarat hanya untuk kalangan tidak mampu (Dhuafa).

Mohon disebarkan informasi ini kepada kerabat atau tetangga yang membutuhkan.

Salam
Geis Chalifah
www.arrahmah.org