thanks for your reply.
yes, this is what i did and it works. (work only for default sendmail service). If install other mail server software, normally it will replace the default sendmail.
shell> vi /etc/mail/sendmail.mc
add in :
define(SMART_HOST',smtp.somewheresmtp.com')