summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-27 19:00:26 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-27 19:00:26 -0400
commite66829d2eb4b3fe2c77d59f1c0bac27de0ff4281 (patch)
tree73d36f0a2426b52e5b57cb34a5c871641eb2872d
parentba03c7647c070125a76501dd746e047107e58049 (diff)
optional remove script
-rwxr-xr-xmailrm.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/mailrm.sh b/mailrm.sh
new file mode 100755
index 0000000..e109650
--- /dev/null
+++ b/mailrm.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Purge all configs from a previous attempt at a mail server.
+# Doesn't delete mail or anything like that.
+apt purge dovecot-core spamassassin postfix spamc opendkim
+
+# Some stragglers that often stay undeleted.
+rm -rf /etc/dovecot /var/lib/dovecot