In this masterclass, we dive deep into securing your mail servers. Exim and Dovecot are standard in cPanel environments, but their default configurations leave room for improvement. You will learn how to mitigate spam, prevent relay attacks, and enforce strong authentication protocols to protect your reputation.
Below are the SSH commands used in the video to update Exim configurations safely via the command line.
# Backup existing exim configuration
cp -a /etc/exim.conf /etc/exim.conf.backup-`date +%F`
# Rebuild Exim configuration from WHM templates
/scripts/buildeximconf
# Restart the mail server services
systemctl restart exim
systemctl restart dovecot
24 Comments
David ServerAdmin • 2 days ago
Great video! I ran into an issue where rebuilding the exim conf caused a temporary queue delay. Did anyone else experience this?
Alex (Author) Admin • 1 day ago
Hi David, yes that's perfectly normal if you have a large active queue. The delay shouldn't last more than 30-60 seconds while the daemon restarts.