How to uninstall or remove the Imunify Email extension configured with Imunify360?
- Any control panel.
- Any OS.
- Imunify Email.
To remove Imunify Email from the system, first, disable ImunifyEmail:
- The above command removes all services and restores the Exim config by removing the spam filter configuration.
- Then, it is possible to remove associated packages:
# yum remove imunifyemail imunifyemail-cli imunifyemail-dec-node imunifyemail-quarantine imunifyemail-rspamd
- In case of uninstallation fails or ImunifyEmail wasn't disabled, the system daemons can be stopped and removed:
# rm -rf /usr/lib/systemd/system/ie-* && systemctl daemon-reload && systemctl stop ie-quarantine; systemctl stop ie-dec-node
- As well ImunifyEmail settings under /etc can be removed:
# rm -rf /etc/imunifyemail;
Is it safe to remove this folder once we uninstall it?
12G /var/imunifyemail 11G /var/imunifyemail/dec-node/storage/data
It is safe to remove mentioned directories.
A small note here:
/var/imunifyemail stores messages that have been quarantined. Hence, if those directories are removed those messages will be lost.
Keep in mind that the command ie-config disable will not work if you have uninstalled Imunify360 first. In that case, you would need to reinstall it, run the command, and then uninstall Imunify360.
Upon installation, Imunify Email is integrated with Imunify360 and is expected to be disabled. Manual removal is required instead. Also, ImunifyEmail will be removed if Imunify360 is uninstalled.