I've got a script that relies on mail() rather than sendmail to send out confirmation e-mails. This script isn't working right since I moved to my dedicated box, running CentOS.

How can I troubleshoot it and see where the problem lies? Could I be missing a package?