Auto set time of day on Solaris 10

The time on My Solaris 10 server has drifted off by nearly 10 minutes. I thought there ought to be an automatic way to synchronize the time with the atomic clock on the Internet. The following may work if your server is behind a firewall (not proxy server) that has access to the Internet. Thanks to time.mit.edu who provides the real time clock.

Login as root
run “crontab -e”
add the following lines:

# sync up server time every day 4am
0 4 * * * rdate time.mit.edu

I’ve got my tip from Rich Burrridge’s Weblog.

Solaris 10 sendmail relay woe

For the last two weeks since I switched on the new NIS servers, per Sun’s IT mandate, I have not been able to send emails out from my smtp server (my own mail server) running on Solaris 10 x64. Of course, submitting the ticket to our IT department didn’t help because they don’t support “personal” mail servers, due to Sun’s outsourcing effort to cut costs.

Thanks to Google search, I found my clues on the following link:
http://www.sunmanagers.org/pipermail/summaries/2006-September/007532.html

After changing the following line to my /etc/mail/submit.cf , I was able to send mails again.
Amazing! Google may be better than IT support. In fact, I have resolved several installation issues (Apache, MySql) by searching on Google. Why do you need an IT support group when you have Google?

# “Smart” relay host (may be null)
#DS (old setting)
DSmailhost.sfbay.sun.com

Make sure the sendmail server is re-started with the following command:
svcadm restart smtp