If amavisd process in your server is taking 100% CPU then try the following

Add this configuration in file /etc/mail/spamassassin/local.cf

use_bayes 0
bayes_auto_learn 0

then restart amavisd

systemctl restart amavisd