1#!/bin/sh
2#
3# You can use the certificate, which you obtain for your webmail application,
4# for your mail server and POP3S / IMAPS server as well. This script copies
5# the certificate and restarts the mail daemons.
6
7# Postfix
8#
9cp /etc/hiawatha/tls/mail.example.org.pem /etc/postfix/tls/mail.example.org.pem
10/etc/init.d/postfix restart
11
12# Dovecot
13#
14openssl rsa -in /etc/hiawatha/tls/mail.example.org.pem -out /etc/dovecot/private/dovecot.pem
15openssl x509 -in /etc/hiawatha/tls/mail.example.org.pem -out /etc/dovecot/dovecot.pem
16/etc/init.d/dovecot restart
17