|
|
@@ -58,13 +58,15 @@ if [ "$MAIL_SYSTEM" == "exim4" ]; then
|
|
|
echo '[ * ] Enabling SMTP relay support...'
|
|
|
if grep -q "driver = plaintext" /etc/exim4/exim4.conf.template; then
|
|
|
disable_smtp_relay=true
|
|
|
- echo '[ ! ] ERROR: Manual intervention required to enable SMTP Relay:'
|
|
|
+ echo '[ ! ] ERROR: SMTP Relay upgrade failed:'
|
|
|
echo ''
|
|
|
- echo ' Exim only supports one plaintext authenticator.'
|
|
|
- echo ' If you want to use the Hestia smtp relay feature,'
|
|
|
- echo ' please review the /etc/exim4/exim4.conf.template'
|
|
|
- echo ' file and resolve any conflicts.'
|
|
|
- $HESTIA/bin/v-add-user-notification admin 'Manual intervention required to enable SMTP Relay' 'ERROR: Manual intervention required to enable SMTP Relay: <br />Exim only supports one plaintext authenticator. If you want to use the Hestia smtp relay feature, please review the /etc/exim4/exim4.conf.template file and resolve any conflicts.'
|
|
|
+ echo 'Because of the complexity of the SMTP Relay upgrade,'
|
|
|
+ echo 'we were unable to safely modify your existing exim config file.'
|
|
|
+ echo 'If you would like to use the new SMTP Relay features,'
|
|
|
+ echo 'you will have to replace or modify your config with the one found'
|
|
|
+ echo 'on GitHub at https://github.com/hestiacp/hestiacp/blob/release/install/deb/exim/exim4.conf.template.'
|
|
|
+ echo 'Your exim config file will be found here: /etc/exim4/exim4.conf.template'
|
|
|
+ $HESTIA/bin/v-add-user-notification admin 'SMTP Relay upgrade failed' 'Because of the complexity of the SMTP Relay upgrade, we were unable to safely modify your existing exim config file.<br><br>If you would like to use the new SMTP Relay features, you will have to replace or modify your config with the one found on <a href="https://github.com/hestiacp/hestiacp/blob/release/install/deb/exim/exim4.conf.template" target="_new"><i class="fab fa-github"></i> GitHub</a>.<br><br>Your exim config file will be found here:<br><br><code>/etc/exim4/exim4.conf.template</code>'
|
|
|
else
|
|
|
disable_smtp_relay=false
|
|
|
fi
|