summaryrefslogtreecommitdiff
path: root/mailrm.sh
blob: e109650a2b0ba6e7af6cd902986bc32224358229 (plain)
1
2
3
4
5
6
7
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