Archive for May, 2007

Create a custom imapd.pem SSL certificate for Westhost IMAP

Tuesday, May 29th, 2007

This trick will let you get rid of the annoying Thunderbird dialog questioning you about the SSL certificate every time it checks for new mail. In the imap directory which holds the imap certificates (see this WH forum post), /usr/local/imap-server-1.0/openssl-0.9.8d/certs, execute this command:
../bin/openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem
which I found here during a google search. openssl will prompt your for a number of parameters; however, the reason I had to do this, and the most important part of the certificate generation is the Common Name (CN). The CN is the name that you set up in your IMAP client (such as Thunderbird) as your IMAP server. I use a sub-domain for my IMAP server (imap.mytld.org), but the Westhost manager website does not allow me to select that Common Name, it automatically selects mytld.org as the CN.

Compile rsync on Westhost 3

Wednesday, May 23rd, 2007

A little trick for compiling rsync. I didn’t think it would be just this easy, but all that is required is a simple change to the options.c file from
#include <popt.h>
to
#include "popt/popt.h"
I imagine this has something to do with the new version of gcc. This fixed the error I was getting on line 24 of options.c because popt.h was not found.

If you want rsync to work with a remote connection to your server, link or copy rsync to /usr/bin/rsync.
ln -s <your rsync path> /usr/bin/rsync