Hotmail just sucks

This night I did a minor update on my mail server, I updated the dkim-milter to a newer version and removed the dk-milter filter from the server.

With the update some bonuses came along, gmail.com and yahoo.com now looks at my mails as “in-good-stand” mails, and this is a major bonus.

However Hotmail still look at my mails as Junk, and I don’t understand why, I am using their rather out-dated Sender-ID protocol which is perfectly working (tested with sa-test sendmail). The headers which is received by hotmail is quite as useful as a lollipop with cock flavour, god damnit Microsoft fix your systems !

Getting the power of sftp chroot in debian

Background

As many people might know, I am a bit security paranoid when it comes to my servers and sending stuff over the Internet in plain text. Therefore have I been using SFTP and SSH when I needed something sent over the Internet to my servers.

SFTP does however have a downside, in order to get the security of data encryption using sftp you will have to create an user account on the server with a valid shell, and therefore would every user have access to the whole system in read mode, which is a security risk.

One of the solutions would be to make a chroot for each user on the server, but this is both time consuming and a complete waste of space.

I finally found a good solution, there is a patched version of OpenSSH which gives a chroot feature of making sftp only connections, this however does not allowed the user to use a shell also, it’s either sftp or ssh, not both, if you need this, you will have to create a chroot for every user.

http://www.minstrel.org.uk/papers/sftp/

There is however a problem with the new patch, the author only give guiding for a source installation or using OpenBSD, but my servers are running Debian Etch and Ubuntu (7.04 and 7.10), so there is some new steps in order to get it working the debian-way.

Læs videre “Getting the power of sftp chroot in debian”

Screen: Tips & Tricks

In this article I will describe a very useful program: GNU Screen. Usually this program is used by people who have a shell account on a Unix server. But it can be also helpful to people who haven
’t yet started to use a terminal or even Linux/Unix at all.

read more | digg story

Skiftet til lighttpd

Så skete det, jeg har udskiftet Apache2 med den lille lighttpd, det var ikke smertefrit, da den ikke understøtter .htaccess, så det blev til en masse legende rundt med url.rewrite og url.redirect. Men det viste sig så at det eneste det krævede var:

$HTTP[“host”] == “www.zephid.dk” {
url.redirect = ( “^/(.*)” => “http://www.zephid.dk/$1” )
}
$HTTP[“host”] == “zephid.dk” {
server.error-handler-404 = “/index.php?error=404”
}

Flash 9 er buggy på Linux

Mens jeg var ved at kode http://oldstudents.dk kom jeg forbi projektet swfupload som bruger Flash og Ajax (XHR) til at håndtere uploads, så det kommer til at se nice ud.

Men da jeg skulle bruge det mens jeg sad og udviklede virker det ikke, den kalde aldrig upload.php som skulle behandle uploadet. Hvad jeg senere fandt ud af var at det fungerede uden problemer i Windows med FF, men det var da samme version af FF installeret i Linux .. Det viste sig så at Flash 9 under Linux er så bugged at swfupload ikke kunne give de kald til upload.php som var nødvendige.

Skal lige siges at Ajax ikke virker i Opera (sry Ken, brug en rigtig browser ;D), så disse folk vil ikke kunne bruge oldstudents.dk optimalt, og en del funktioner vil være slået fra, når den kommer op her inden længe 🙂

Optimize PHP and Accelerate Apache

As the load on an application increases, the bottlenecks in the underlying infrastructure become more apparent in the form of slow response to user requests. This article discusses many of the server configuration items that can make or break an application’s performance and focuses on steps you can take to optimize Apache and PHP.

read more | digg story

tail -f <=> tailf

Jeg har været inhabil gentoo bruger, der havde de et wrapper script til at håndtere tail -f så man blot skulle skrive tailf i stedet, jeg har derfor valgt at skrive et.

Husk at smide det ind i et dir der er i din PATH, f.eks. /usr/bin, samt at chmod +x den.

#!/bin/sh
#
# This is a wrapper around the -f functionality.
#
# Written by Mads Madsen < zephid at bsdguru.dk >
# Licensed under GNU GPL.
if [ -z “$1” ]; then
echo “Usage: tailf file […]”
exit 1
fi
tail -f “$@”

rsync backup

Efter lidt tid med servere rundt omkring i verden, har jeg tænkt lidt over at jeg rent faktisk ville være pænt fucked hvis de gik ned, jeg begyndte derfor at undersøge muligheden for backup til serveren herhjemme, jeg fandt frem til rsync + shh, det skulle være sikkert og fungere, så det ville jeg da prøve 😉

Læs videre “rsync backup”