Check for open relay and secure the mail server
Check that SMTP authentication is implemented in the scripts
Configure spam filtering