diff --git a/src/freedombone-base-email b/src/freedombone-base-email index 662f9eb0..51a4fa16 100755 --- a/src/freedombone-base-email +++ b/src/freedombone-base-email @@ -1285,24 +1285,11 @@ function configure_imap { exit 48 fi - if [[ $ONION_ONLY == 'no' ]]; then - # obtain a cert for the default domain - if [[ "$(cert_exists ${DEFAULT_DOMAIN_NAME} pem)" == "0" ]]; then - echo $'Obtaining certificate for the main domain' - create_site_certificate ${DEFAULT_DOMAIN_NAME} 'yes' - fi - else + if [[ "$(cert_exists dovecot)" == "0" ]]; then ${PROJECT_NAME}-addcert -h dovecot --dhkey $DH_KEYLENGTH check_certificates dovecot fi - if [[ "$(cert_exists ${DEFAULT_DOMAIN_NAME} pem)" == "0" ]]; then - if [[ "$(cert_exists dovecot)" == "0" ]]; then - ${PROJECT_NAME}-addcert -h dovecot --dhkey $DH_KEYLENGTH - check_certificates dovecot - fi - fi - chmod 600 /etc/shadow chmod 600 /etc/gshadow groupadd default @@ -1321,25 +1308,11 @@ function configure_imap { fi sed -i 's|#ssl =.*|ssl = required|g' /etc/dovecot/conf.d/10-ssl.conf sed -i 's|ssl =.*|ssl = required|g' /etc/dovecot/conf.d/10-ssl.conf - if [[ $ONION_ONLY == 'no' ]]; then - if [[ "$(cert_exists ${DEFAULT_DOMAIN_NAME} pem)" == "1" ]]; then - sed -i "s|#ssl_cert =.*|ssl_cert =