How to configure mail client on RHEL5
Posted on 2009-05-07
I want to use mail via command line in an script and mail the output to gmail.com account
bit like this
#will send mail to root and user lala
for NAME in root lala
MESSAGE="Scripting is cool"
echo $MESSAGE | mail -s "mast" $ADDRESS
this works fine on my local postfix mail server but i want to run it on an diffrent pc and the change here is gmail.com but it doesnt sends any mail to my gmail.com account may be due to MTA issue i dont know about it...
Pls tell me steps to achive it
Thanks for helping