vanutsteen.nl => nerds only A blog on rails, php, computing, my bass guitar and stuff

Courier/postfix certificates

on in Linux

The certificates of the courier imapd-ssl and pop3d-ssl were expired. After some searching I found how to renew them:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo aptitude install courier-pop-ssl

nano /etc/courier/imapd.cnf #edit the CN
nano /etc/courier/pop3d.cnf #edit the CN

mv /usr/lib/courier/pop3d.pem /usr/lib/courier/pop3d.pem.old
mv /usr/lib/courier/imapd3d.pem /usr/lib/courier/imapd.pem.old

/usr/lib/courier/mkimapdcert
/usrlib/courier/mkpop3dcert

cp /usr/lib/courier/pop3d.pem /etc/courier/
cp /usr/lib/courier/imapd.pem /etc/courier/

/etc/init.d/courier-authdaemon restart
/etc/init.d/courier-imap restart
/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop restart
/etc/init.d/courier-pop-ssl restart

With thanks to this post.

If first thought that /usr/lib/courier/mkimapdcert generates the certificates in the wrong path. But on another server the cp command complained that the two files were identical. So it looks like they are hard-linked or something…

Comments