|
|
|
@ -12,6 +12,7 @@ key_nopass_file="${domain}.nopass.key" |
|
|
|
ca_key_file="${domain}.ca.key" |
|
|
|
ca_cert_file="${domain}.ca.crt" |
|
|
|
postfix_dir="/etc/postfix/${domain}" |
|
|
|
dovecot_dir="/etc/ssl/dovecot" |
|
|
|
|
|
|
|
head -c 36 /dev/urandom | base64 >"$passphrase_file" |
|
|
|
|
|
|
|
@ -51,3 +52,12 @@ postconf -e 'mydomain = shanti.im' |
|
|
|
postconf -e 'myhostname = mail.shanti.im' |
|
|
|
|
|
|
|
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 |