summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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