New CentOS 6.8 Install - Mail Not Working
Hello, I'm new to this forum. I just did my install of Linux... CentOS 6.8 running on a VPS.
I installed a shell script to monitor the server, and setup a cron job to run the script daily. The script is supposed to email me the results... The first time the script ran, I received the following error in my mail spool:
line 6: /bin/mail: No such file or directory
It appears that there is no "mail" program running.
I did some research trying to ascertain whether there is an MTA installed, and whether it's running. I found this command:
# rpm -q sendmail postfix exim qmail
package sendmail is not installed
postfix-2.6.6-6.el6_7.1.x86_64
package exim is not installed
package qmail is not installed
The above seems to indicate that I have Postfix installed. I then executed the following commands:
# postfix stop
postfix/postfix-script: stopping the Postfix mail system
# postfix start
postfix/postfix-script: starting the Postfix mail system
So it appears Postfix is running. But it's not "working". Since I just installed Linux, does Postfix need to be setup or configured in any way?
Or more generally, how do I get "mail" working? What next?
Thank you in advance...
|