Browse Source

add dovecot shenanigans

trunk
Shanti Chellaram 4 years ago
parent
commit
e8890c1e82
  1. 10
      regenerate-mail-cert.sh

10
regenerate-mail-cert.sh

@ -12,6 +12,7 @@ key_nopass_file="${domain}.nopass.key"
ca_key_file="${domain}.ca.key" ca_key_file="${domain}.ca.key"
ca_cert_file="${domain}.ca.crt" ca_cert_file="${domain}.ca.crt"
postfix_dir="/etc/postfix/${domain}" postfix_dir="/etc/postfix/${domain}"
dovecot_dir="/etc/ssl/dovecot"
head -c 36 /dev/urandom | base64 >"$passphrase_file" head -c 36 /dev/urandom | base64 >"$passphrase_file"
@ -51,3 +52,12 @@ postconf -e 'mydomain = shanti.im'
postconf -e 'myhostname = mail.shanti.im' postconf -e 'myhostname = mail.shanti.im'
rc-service postfix restart rc-service postfix restart
#dovecot config
mkdir "$dovecot_dir"
cp "$key_nopass_file" "${dovecot_dir}/$key_nopass_file"
cp "$cert_file" "${dovecot_dir}/$cert_file"
rc-service dovecot restart
Loading…
Cancel
Save