25. November 2010 - 08:13 Uhr
(As the tutorials I am refering to are in english language, I provide a translation of my remark into english below)
Die Tutorials von Falko Timme “Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail” waren mir schon oft eine wertvolle Hilfe beim Aufbau eines Servers, sowohl die Version für Ubuntu, als auch jene für Debian.
Als ich jetzt (Ende 2010) einen Server unter Debian Lenny aufbauen wollte zeigten sich jedoch einige Haken und Ösen. Inzwischen enthält das “stable”-Repository von Debian nämlich einige Pakete, die so nicht installieren oder laufen. Hier gibt es die Workarounds.
Geht man nach dem Tutorial vor, so würde man unter Punkt 2 mit einem apt-get install in einem Rutsch eine ganze reihe von Paketen installieren. Es empfiehlt sich jedes Paket einzeln zu installieren und auf Fehlermeldungen zu achten.
courier-imap
So bemerkt man, wenn die Installation von courier-imap mit dem Fehler:
xrealloc: ../bash/subst.c:514: cannot reallocate 512 bytes
auf die Nase fällt. Man kann das Problem aus dem Weg räumen indem man in der Datei /etc/courier/imapd
den Wert:
IMAP_ULIMITD=131072
setzt. Danach:
dpkg –configure -a
ausführen, um das Paket vollständig zu installieren.
amavisd-new
Das Paket amavisd-new findet sich nicht vollstandig. Die Installation bricht ab mit:
http://cdn.debian.net lenny/main libio-compress-base-perl 2.012-1
403 Forbidden [IP: 132.180.15.2 80]
Abhilfe schafft hier in /etc/apt/sources.list die Zeile:
deb http://volatile.debian.org/debian-volatile stable/volatile main contrib non-free
einzufügen. Anschliessend “apt-get update” ausführen. Mit dem volatile repository installiert amavis einwandfrei.
ClamAV
Seit April 2010 sind alle Versionen von ClamAV unter 0.95 deaktiviert. Würde man aus dem stable-Repository installieren, so würde sich die darin enthaltene 0.94 Version deaktivieren und als Folge die Verarbeitungskette von Postfix anhalten.
Abhilfe schafft auch hier in /etc/apt/sources.list die Zeile:
deb http://volatile.debian.org/debian-volatile stable/volatile main contrib non-free
einzufügen. Anschliessend “apt-get update” ausführen. Mit dem volatile repository installiert ClamAV 0.96.
English translation
The tutorials posted by Falko Timme under the title “Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail” have always been extremely helpful to me when building a server. This holds for the version for Ubuntuas well as the version for Debian.
When I started out to built a server on Debian Lenny in November 2010 I found out that the pakets from the debian stable repository don’t quit do the trick.
Here are my workarounds:
The tutorial (section 2) suggests to install a long list of pakets with a single “apt-get install”. I recommend to install paket by paket and watch for error messages.
courier-imap
The installation of courier-imap possibly terminates with error:
xrealloc: ../bash/subst.c:514: cannot reallocate 512 bytes
To work around the problem edit /etc/courier/imapd
and set:
IMAP_ULIMITD=131072
Then run:
dpkg –configure -a
to complete the installation of courier-imap.
amavisd-new
The installation of amavisd-new terminates with:
http://cdn.debian.net lenny/main libio-compress-base-perl 2.012-1
403 Forbidden [IP: 132.180.15.2 80]
Edit /etc/apt/sources.list and add the line:
deb http://volatile.debian.org/debian-volatile stable/volatile main contrib non-free
The run “apt-get update” and install amavid-new
ClamAV
In April 2010 all version of ClamAV0.95 and lower were deactivated. Installing ClamAV from the stable repository would give you version 0.94 and thus break the postscript chain.
In this case as well you can install from the volatile repository by adding withinin /etc/apt/sources.list the line:
deb http://volatile.debian.org/debian-volatile stable/volatile main contrib non-free
Then run “apt-get update” and install clamav