Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2020-10-03 01:35:44 +0300
committerGitHub <noreply@github.com>2020-10-03 01:35:44 +0300
commit7e40d30664ad90bc53ac34ce02d53630aabfdf58 (patch)
tree7d580f016ef646ded463bc52bdfc8a2d70701719
parent55c11f6887fc2eee54dc57070238e8984e870edd (diff)
final touch!
-rw-r--r--addons/smtp-mail.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/addons/smtp-mail.sh b/addons/smtp-mail.sh
index 5e5b39e9..76e47f21 100644
--- a/addons/smtp-mail.sh
+++ b/addons/smtp-mail.sh
@@ -155,7 +155,6 @@ cat << MSMTP_CONF > /etc/msmtprc
defaults
auth off
aliases /etc/aliases
-# recipient=$RECIPIENT
$MSMTP_ENCRYPTION1
$MSMTP_ENCRYPTION2
@@ -169,6 +168,9 @@ port $SMTP_PORT
from $MAIL_USERNAME
account default : $MAIL_SERVER
+
+### DO NOT REMOVE THIS LINE (it's used in one of the functions in on the Nextcloud Server)
+# recipient=$RECIPIENT
MSMTP_CONF
else
# With AUTH (Username and Password)
@@ -177,7 +179,6 @@ cat << MSMTP_CONF > /etc/msmtprc
defaults
auth on
aliases /etc/aliases
-# recipient=$RECIPIENT
$MSMTP_ENCRYPTION1
$MSMTP_ENCRYPTION2
@@ -193,6 +194,10 @@ user $MAIL_USERNAME
password $MAIL_PASSWORD
account default : $MAIL_SERVER
+
+### DO NOT REMOVE THIS LINE (it's used in one of the functions in on the Nextcloud Server)
+# recipient=$RECIPIENT
+
MSMTP_CONF
fi
@@ -219,7 +224,7 @@ set sendmail="/usr/bin/msmtp -t"
DEFINE_MAIL
# Test sending of mails
-if ! echo -e "Congratulations! Since this email reached you, it seems like everything is working properly. :)" | mail -s "Test email from your NcVM" "$RECIPIENT" &>/dev/null
+if ! echo -e "Congratulations! Since this email reached you, it seems like everything is working properly. :) To change the settings please check /etc/msmtp on your server, or simply just run the setup script again." | mail -s "Test email from your NcVM" "$RECIPIENT" &>/dev/null
then
# Fail message
msg_box "It seems like something has failed.