骨のダイスを転がそう
2010-09-05
_ [mail] net/pop で POP over SSL を使う
ruby のnet/pop は、pop over ssl に対応してなかったので。debian squeeze では、
aptitude install stunnel4 して
/etc/default/stunnel
ENABLED=1
/etc/stunnel/stunnel.conf
……略 client=yes [pop3s] accept=110 connect=server_name:995 TIMEOUTclose=0
server_name に、アクセスしたい POPサーバを指定
/usr/share/doc/stunnel4/README.Debian に従って証明書を作成。
/etc/init.d/stunnel start
こんな感じ。あとは、localhost:110 にアクセスすれば良し。
[ツッコミを入れる]