Full text search with solr and Dovecot on Ubuntu 10.04

It has been just some days that Dovecot 2.1 was released. When upgrading from 2.0 I started digging into a new and interesting chapter: full text search (FTS).

With Apache solr you can use an external service in Dovecot to do FTS. Solr and Dovecot itself is described on the official website http://wiki2.dovecot.org/Plugins/FTS/Solr, so this is just a short version that focuses more on how to achieve the installation process for Ubuntu Lucid Lynx.

I have built dovecot-2.1 packages on my PPA: https://launchpad.net/~christian-roessner-net/+archive/dovecot
Read more »

Backup your website with wget

Just a short tip. If you need to backup your website – just to have any kind of backup – then you might like the following command:

wget -E -k -K -r -p http://www.example.com/

This also modifies all internal links to make that site really offline capable. Enjoy…

How to remove Debian packages with help of vi magic

Okay, the headline is not really the full truth, but with the help of vi you can do some cool things.

I had installed “graphviz” on one of my servers, because I thought I could create a dot file. For some reason [...] that did not work and so I decided to remove this package again. I wanted it really clean.

Normally someone would just do something like

apt-get autoremove –purge graphviz
Read more »

Compiling PHP 5.2 on Ubuntu Lucid 10.04

If you provide ISP services for customers that run PHP application on your servers, you might need to run several sides with PHP 5.2 and not with the distributed version from Ubuntu, version 5.3. Searching around the internet, you might find several information on how to install a separate instance. For me, none of the howtos really were suitable. So this little document might help you in installing a cgi version. Here we go…

First of all, you need to install several packages from the Ubuntu repository.

apt-get install build-essential

We build a static PHP version, not using extensions.
Read more »

Vim Postfix syntax files

I have modified the Vi(mproved) syntax highlighting files for Postfix 2.8.x series. Also added a syntax file for the master.cf file. It is not perfect, but it does a good job on my mail servers. So hopefully you enjoy it.

Vim syntax files download

DNSWL – A Postfix policy delegation service

Started a new open source project.

dnswl.py can deal with a list of DNS whitelist services and give postfix an OK result, while it prepares SQL tables for amavisd-new, which will immediately make use of soft scored whitelisted entires (sender and recipient dependent).

See here: Project page

KVM tweaks

Hi, this time I post only some little teaks for Linux’ Kernel based Virtual Machine (KVM). If you followed my Installer article, then you might use little code snippets that hold the kvm binary call to start a single virtual machine. You can modify it this way that it is started in a “screen” and detaches itself.
Read more »

proxy65 component in jabberd2

Installing a proxy65 service for jabberd2 is quiet easy.

Download the source from http://code.google.com/p/proxy65/ and uncompress it in a directory of your choice. My stuff is under /usr/local/src

Installing is done by issuing python setup.py install, as described in the docs. Now that you installed and hopefully followed the documentation from proxy65, you need a component script for jabberd2 to start automatically, when the server starts up.
Read more »

Ubuntu Dev-Branch with KVM and XDMCP

If you are using kvm on Linux, i.e. Ubuntu, you might be interested in the development process for the next upcoming release. Often you have to desire, if you like to upgrade a current stable release to an snapshot or not.

With kvm you have the ability to setup a guest with a development branch. Normally you would have to use vnc or similar to work with the graphical surface (if not only using ssh).

But Linux does have xdmcp support and with gdm as login manager it is very easy to setup gdm locally and in the guest OS to run the guests desktop on the local X11 screen.
Read more »

Sticky: Secondary MX – SysCP

The following article describes how to setup a secondary Postfix mail exchanger in a syscp environment. All customer data is stored in a MySQL database and therefor the setup focuses on how to replicate the database.

In the future I possible might post my complete mail setup and all components around Postfix, so stay tuned and come back from time to time.

I assume, there is a full configured syscp instance on the master server, from which you want to sync to slave servers. I also assume that your master mailserver uses SSL certs for smtps and submission. If not, please fix this and come back later on.

This setup is tested on Ubuntu dapper drake
Read more »

mail-notification SSL/TLS

This text explains a simple workaround for mail-notification in Debian/Ubuntu distributions, where the package has been built without SSL-support. In the web, you can find two workarounds: The first is a documentaion, where you are told to recompile the package with the missing libssl-support.

The second is trying to work with unmodified packages. This has the advantage that you won´t lose changes, when you are upgrading your distribution to a newer version.
Read more »