Completely Uninstall SmarterMail

This article applies to recent versions of SmarterMail. View articles for SmarterMail 15.x and earlier.

On occasion, a system administrator may need to completely uninstall SmarterMail. For example, this might occur if a server is no longer being used as a mail server and the system administrator wants to clean up the server and completely remove SmarterMail so the server can be re-provisioned for another purpose.


Windows Server

Follow these steps to completely uninstall SmarterMail, all configuration data (domains, users, etc.) and all settings files on Windows Server:

  1. Uninstall SmarterMail from Add/Remove Programs. This will remove all program files associated with SmarterMail.
  2. Remove the SmarterMail site from within IIS. 
  3. Delete the associated Application Pool that was used by SmarterMail.
  4. Next, delete the SmarterMail software folder. By default, this folder is located at C:\Program Files (x86)\SmarterTools\SmarterMail.
  5. Finally, delete the SmarterMail data folder. This typically contains the domains, logs, spool, POP3 retrieval, etc. By default, this folder is located at C:\SmarterMail.
Linux
  1. First, stop and uninstall SmarterMail using the following commands:
    sudo service smartermail stop && sudo ./smartermail uninstall --internal
  2. To remove the rest of the SmarterMail installation (domains and configuration data), use the following commands: 
    sudo rm -rf /opt/smartermail
    sudo rm -rf /etc/smartermail
    sudo rm -rf /var/lib/smartermail
    sudo rm /etc/systemd/system/smartermail.service -- Technically, this should already have been removed by the uninstall process, but this can be run to double check.
  3. Finally, you can remove all of the sub packages (ClamAV, etc.) that were installed alongside SmarterMail using the following command:
    sudo apt remove clamav-daemon curl gss-ntlmssp

All components of SmarterMail have been removed from the server.

 
Learn more about SmarterMail's enterprise email features and benefits.