Postscreen in Werking

Vanaf v2.8 is postscreen beschikbaar, de nieuwe zombie blocker tool van postfix in de strijd tegen spam. Postscreen houdt zich bezig met mail zombies en botnets zodat de echte mail processen zich kunnen bezighouden met waar ze voor bedoeld zijn, namelijk met het mail proces!

Postscreen kan in het kort gezegd een aantal checks doen vóór de 220 SMTP Greeting en een aantal NA de Greeting. De checks vóór de Greeting kunnen zelfs live overhandigd worden aan het postfix SMTP proces. De tests NA de Greeting (mits passed) ketst hij af met een 4XX status, de afgeketste server kan dan onmiddelijk weer contact maken om mail af te leveren. Read the rest of this entry »

PostgreSQL Autobackup and Autoremove Script

Here’s a little script I wrote to automate PostgreSQL database backups. The nice thing about this script is that it also deletes old backups after some (configurable) time. That way it prevents your hard disk getting full with old backups and no need to delete them manually.

Output format will be: “<databasename><Year-Month-Day.Hour:Minute>.pgsql
Example backup file “pgdatabase-2011-09-18.15:10.pgsql

pg_backup.sh Read the rest of this entry »

Jail update with freebsd-update

Ezjail is really a great tool for managing your FreeBSD jails. V3.0 introduced a nice feature to update your base jail using binary updates. This means you can update your jails invoking the freebsd-update utility. Assuming you allready installed and configured your jails with the ezjail-admin tool.

First update host with freebsd-update
# freebsd-update fetch
# freebsd-update install

Use option -u to update base jail with freebsd-update
# ezjail-admin update -u

You will see something like this:
Read the rest of this entry »

arp moved from to on bge0

Seeing annoying messages like this filling up your logs ?
+arp: 192.168.x.x moved from 00:0c:29:3d:xx:xx to 00:0c:29:3d:xx:xx on bge0
+arp: 192.168.x.x moved from 00:0c:29:3d:xx:xx to 00:0c:29:3d:xx:xx on bge0
+arp: 192.168.x.x moved from 00:0c:29:3d:xx:xx to 00:0c:29:3d:xx:xx on bge0
+arp: 192.168.x.x moved from 00:0c:29:3d:xx:xx to 00:0c:29:3d:xx:xx on bge0

So howto get rid of this annoying messages ? Read the rest of this entry »

SLiM Simple login manager on FreeBSD

fbsd Couple of days ago I decided to throw away GDM as login manager for my laptop and to install SLiM, a simple and nice independent graphical login manager for X11. Installing was easy as always thanks to the great job of the port maintainers.

Enabling SLiM in FreeBSD is as easy as appending slim_enable=”YES” to your /etc/rc.conf file.
Read the rest of this entry »

Howto install and make a nice ZSH command prompt on FreeBSD Mac OSX and Linux

So you want to start enjoying arguable worlds best shell zsh (Z shell).
Well, I will show you how to install zsh on FreeBSD, Mac and Linux and how to customize the zsh prompt to get a nice coloured and informative command prompt which will update your current working path.
Also I will show you how to use editor vi with coloured syntax highlighting Read the rest of this entry »