Skip to main content

How to remove exim mail server from VestaCP on Ubuntu ?

Of all MTAs we’re reviewing, Postfix has the strongest emphasis on security. The likely reason is that it was created by Wietse Zweitze Venema, a prolific freeware security specialist. Sendmail cannot be considered a secure MTA. Moreover, Postfix was originally designed to mitigate the vulnerabilities associated with Sendmail. Exim is quite secure for most cases but loses to Postfix. A proper configuration of your Postfix MTA provides improved defenses against spam, abuse, and leakage of sensitive data. So i don't want to use EXIM as a MTA with VestaCP on Ubuntu. I want to remove exim  completely from my VestaCP control panel. I want to use Postfix/Dovecot RSPAMD as a AntiSPAM solutions . I will publish details in next tutorials 

Check Exim Status
# systemctl status exim
# systemctl status exim4 
Remove Frozen mail
# exim -bp
# exim -bpc
# exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash 
Remove Completely 
# sudo apt remove --auto-remove exim4
# sudo apt purge --auto-remove exim4

# sudo apt remove --auto-remove exim4 exim4-base exim4-config exim4-daemon-light
# sudo apt purge --auto-remove exim4 exim4-base exim4-config exim4-daemon-light
Remove Log and systemd
# rm -rf /var/log/exim4
# rm -rf /var/spool/exim4
# rm -rf /etc/init.d/exim4