Skip to main content
Version: 1.3

How to uninstall

Server module​

Follow these steps in order to fully remove the server module.

1. Detach the milter from Postfix

Clear the milter hooks so Postfix stops routing mail through the service:

sudo postconf -e smtpd_milters=
sudo postconf -e non_smtpd_milters=
warning

These commands clear the entire milter list. If you have other milters configured alongside MSH Postfix Milter, remove only the MSH entry from smtpd_milters and non_smtpd_milters in /etc/postfix/main.cf instead of blanking the value entirely.

2. Reload Postfix

Apply the configuration change:

sudo systemctl reload postfix

3. Stop the services

Halt both the milter and settings services:

sudo systemctl stop msh-pm-milter.service
sudo systemctl stop msh-pm-settings.service

4. Disable the services

Prevent the services from starting automatically on boot:

sudo systemctl disable msh-pm-milter.service
sudo systemctl disable msh-pm-settings.service

5. Reload the systemd daemon

Notify systemd that the unit files have been removed:

sudo systemctl daemon-reload

6. Remove the installation directory

Delete all application files:

sudo rm -rf /opt/msh-pm-milter

Administrator panel​

Remove the folder containing the Administrator Panel files.

Windows

In File Explorer, navigate to the folder and delete it, or run in PowerShell:

Remove-Item -Recurse -Force "C:\path\to\msh-pm-admin"

Linux

rm -rf /path/to/msh-pm-admin

macOS

rm -rf /path/to/msh-pm-admin

Replace the path with the actual location where you extracted the application.