I have a CentOS 4 linux machine on my local network at work. Just incase you didn't know CentOS is a free version of RedHat Enterprise Linux (I'm sure you alerady knew that though).
I want to be able to send mails from within a shell script using 'mail', 'sendmail', 'mailx' or whatever. The box is not configured to send mail nothing happends when I use:
echo "blah blah" | mail -stest firstname.lastname@example.org
I'm not sure where to start to configure a mail transport agent, or which one will be easiest to use. I'm not even sure if there is an MTA installed. I was hopping I could just point the box at our ISPs smtp server and that would be it. Something tells me it wont be that easy though.
I need to know:
- The easiest way to check which (if any) MTA is installed.
- Which one to use and how to install it (I'm guessing yum is the way forward).
- What config settings I need to change for me to be able to send mails.