メールサーバーとの通信をSSL化する


昨日、今日と体調が悪い。
それは関係ないのですが、なにやらAPOPがどうのこうの(http://jvn.jp/jp/JVN%2319445002/)ということで、SSL化することにする。


とりあえずは、tcpserverSSL化すれば実現できるのか?
参考:http://fedorasrv.com/qmail-ucspi-tcp-ssl.shtml


まずは、既にあるucspi-tcp-0.88をssl用にコピー

cp -R ucspi-tcp-0.88 ucspi-tcp-0.88-ssl


続いて、ssl用パッチを当てる

cd ucspi-tcp-0.88-ssl
wet http://www.nrg4u.com/qmail/ucspi-tcp-ssl-20050405.patch.gz
gunzip ucspi-tcp-ssl-20050405.patch.gz
patch < ucspi-tcp-ssl-20050405.patch

※既にucspi-tcp-0.88.errno.patchを当てている場合は、
Reversed (or previously applied) patch detected! Assume -R? [n]
とメッセージが出るが無視。


そして、

make
cp -r tcpserver /usr/local/bin/tcpserver-ssl
make cert

とした。


あとは、
/usr/local/bin/tcpserver-ssl
で起動させて完了。