Posts Tagged ‘guide’

How to fix “sslserver: fatal: unable to load certificate” Qmail error on GNU / Linux

Friday, October 14th, 2011

Reading Time: 2minutes
After setupping a brand new Qmail installation following the QmailRocks Thibs Qmail Debian install guide , I’ve come across unexpected re-occuring error message in /var/log/qmail/qmail-smtpdssl/ , here is the message:

@400000004e9807b10d8bdb7c command-line: exec sslserver -e -vR -l -c 30 -u 89 -g 89
-x /etc/tcp.smtp.cdb 0 465 rblsmtpd -r -r -r -r qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 2>&1
@400000004e9807b10dae2ca4 sslserver: fatal: unable to load certificate

I was completely puzzled initially by the error as the sertificate file /var/qmail/control/servercert.pem was an existing and properly self generated one. Besides that qmail daemontools init script /service/qmail-smtpd/run was loading the file just fine, where the same file failed to get loaded when sslserver command with the cert argument was invoked via /service/qmail-smtpdssl/run

It took me quite a while to thoroughfully investigate on what’s wrong with the new qmail install. Thanksfully after almost an hour of puzzling I found it out and I was feeling as a complete moron to find that the all issues was caused by incorrect permissions of the /var/qmail/control/servercert.pem file.
Here are the incorrect permissions the file possessed:

linux:~# ls -al /var/qmail/control/servercert.pem
-rw------- 1 qmaild qmail 2311 2011-10-12 13:21 /var/qmail/control/servercert.pem

To fix up the error I had to allow all users to have reading permissions over servercert.pem , e.g.:

linux:~# chmod a+r /var/qmail/control/servercert.pem

After adding all users readable bit on servercert.pem the file permissions are like so:

linux:~# ls -al /var/qmail/control/servercert.pem
-rw-r--r-- 1 qmaild qmail 2311 2011-10-12 13:21 /var/qmail/control/servercert.pem

Consequently I did a qmail restart to make sure the new readable servercert.pem will get loaded from the respective init script:

linux:~# qmailctl restart
* Stopping qmail-smtpdssl.
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
* Restarting qmail-smtpdssl.

Now the annoying sslserver: fatal: unable to load certificate message is no more and all works fine, Hooray! 😉

How to add Apache 301 redirect to VirtualHost in Apache

Sunday, September 25th, 2011

Reading Time: < 1minute
I’ve had two domain names which were pointing to the same website content.
As one can read in any SEO guide around this is a really bad practice as search engines things automatically there is a duplicate site content and this has automatically a negative effect on the site pagerank.
To deal with situation where multiple domains are pointing to the same websites its suggested by many SEO specialists that a 301 redirect is created from all the domain websites to a single website domain which will open the actual website.

Making the 301 direct domain from the sample domain to can be done with a virtualhost dfefinition in either httpd.conf or with the respective file containing the domain virtualhost definitions:
Here is the exact VirtualHost code I use to make a 301 redirect.

<VirtualHost *>  ServerAdmin ServerName
RewriteEngine on RewriteRule ^/(.*)$1 [L,R=301]

After placing the VirtualHost redirect, an apache redirect is required.
Further on when a Gooogle or Yahoo Bot visits the website and does any request to or , they will be redirected with a 301 reuturned code to

This kind of redirect however can have a negative impact on the Apache CPU use (performance), especially if the is high traffic domain. This is because the redirect is done with mod_rewrite.

Therefore it might be better on high traffic domains to create the mod_rewrite redirect by using a vhost like:

<VirtualHost *>
Redirect 301 /

The downside of using the Apache 301 redirect capabilities like in the above example is that any passed domain urls like let’s say would not be 301 redirected to but instead the redirect will be done straight to

Download scanned electronic version of The way of the Rat: A Survival Guide to Office Politics by Joep P. M. Schrijvers

Monday, February 8th, 2010

Reading Time: < 1minute
The way of the rat cover

We were obliged in Arnhem Business School to read the book, The way of the rat: A Survival Guide to Office Politics
I looked for the book everywhere online in Torrents, all kind of download areas etc. and I couldn’t find the book
anywhere. I finally surrendered and decided to purchase the book via ebay
It took it a month or so to come to my address, anyways in the meantime I met a friend, who borrowed the book
from a friend and scanned the entire book.
I asked if I can own the copy so he was generous and shared it, so I thought many other students like me
would be looking for the book in a desperate attempt to save some approximately $10 EUR (that’s the book costs).

That is why I copied the scanned version of the Way of the Rat to my personal apache web server and decided to
share it here.

Follow the link below to download:
Download here The way of the Rat: A Survival Guide to OfficePolitics
I have to warn you the scanning quality is terrible, though the text is readable.
Hope the book would be of use to some students out there who are studying business management.

Complete guide to fix PulseAudio and video/audio VLC Media Player issues (F11_VLC_and_PulseAudio_Guide.pdf)

Tuesday, February 9th, 2010

Reading Time: < 1minute
I’ve found a nice guide discussing some major common problem with pulseaudio and VLC,
sound and video streaming annoyances.
The guide was available only through
and in order to fetch it the user needs account in fedoraforum, that is incredibly annoying.
Originally the guide targetted Fedora and other RedHat based distributions, however most
of the information in the tutorial is pretty accurate on other distributions as well.
For instance I use Debian and almost everything described in the tutor is equivalent;
So, Here is download link to the F11_VLC_and_PulseAudio_Guide.pdf
I hope this mirror of F11_VLC_and_PulseAudio_Guide.pdf
would save some time and nerves needed for registration in in order to download the file