I have some cronjobs that run on our servers that monitor processes, run automated jobs, etc. These scripts mail alerts for our monitoring or mails out the automated job results, etc. using the mail command.
mail -s "test subject" < emailbody.txt
We are outgrowing our current cluster and need to migrate to a bigger cluster. However, due to reasons unknown to me, the new cluster we're migrating to doesn't allow emails to be sent from each server, which is making my scripts not do their job since they can't email things to us.
Someone said we have to use the email relay server on this cluster/network. How do I make use of the email relay server from the unix mail command? Do I need to make changes to some OS level config files or is it some command option I can specify from the mail cmd? Thanks in advance for your help.
EDIT: The new servers are running CentOS release 6.5. I don't know how much we can install/edit on the servers since our IT dept has locked it down and we don't have root access. I don't think we can sudo as root either.