Originally Posted by honey bee
I have assigned some cron jobs to my FC4 machine, if the mail is set for system user, it is delivered and if the mail is set for any outer domain, it is not delivered.What can be the issue?
If there is a dedicated mail server in your environment, with a public MX record, you should set up sendmail to forward mail to it. Make sure you talk to whoever the mail admin is to allow relaying from your machine.
If you are using this from home, find out what the public mx is for your ISP, and set that as the smart relay.
To forward emails to a smart relay, you can just hack DS macro in sendmail.cf, but the politically correct way to do this is to edit the sendmail.cm file, and change the line:
dnl define(`SMART_HOST', `smtp.your.provider')dnl
Save that, then run (example on CentOS):
m4 /etc/mail/sendmail.cf > /etc/mail/sendmail.cf
Then restart sendmail.
Hope this helps.