rpm -qa | grep -i 'nethserver-mail'
If the stack email is installed you can remove it manually, only nethserver-mail-smarthost must stay
yum remove nethserver-mail-server nethserver-mail-common nethserver-mail-filter
after that you can do a
yum auto remove
it removes all rpm without require by other rpm, check the list before to press yes