summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-01-06 21:51:41 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-01-06 21:51:41 -0500
commit4c468aac9c5ba2dc4724b85f69053193b208f470 (patch)
tree6c74dd675731ca226acbb792a7d516f428fe8143
parent7371fb0d071ba8209f75a29c37bb84a4315c0322 (diff)
add color so people stop missing it
-rwxr-xr-xemailwiz.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 08f8199..400fafa 100755
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -214,7 +214,7 @@ if header :contains \"X-Spam-Flag\" \"YES\"
fileinto \"Junk\";
}" > /var/lib/dovecot/sieve/default.sieve
-cut -d: -f1 /etc/passwd | grep -q "^vmail" || useradd vmail
+grep -q "^vmail:" /etc/passwd || useradd vmail
chown -R vmail:vmail /var/lib/dovecot
sievec /var/lib/dovecot/sieve/default.sieve
@@ -296,26 +296,26 @@ echo "$dkimentry
$dmarcentry
$spfentry" > "$HOME/dns_emailwizard"
-echo "
+printf "\033[31m
_ _
| \ | | _____ ___
| \| |/ _ \ \ /\ / (_)
| |\ | (_) \ V V / _
-|_| \_|\___/ \_/\_/ (_)
+|_| \_|\___/ \_/\_/ (_)\033[0m
Add these three records to your DNS TXT records on either your registrar's site
or your DNS server:
-
+\033[32m
$dkimentry
$dmarcentry
$spfentry
-
+\033[0m
NOTE: You may need to omit the \`.$domain\` portion at the beginning if
inputting them in a registrar's web interface.
-Also saving these to ~/dns_emailwizard in case you want them in a file.
+Also, these are now saved to \033[34m~/dns_emailwizard\033[0m in case you want them in a file.
Once you do that, you're done! Check the README for how to add users/accounts
and how to log in."