Smart host is very handy if you are on dial up network or sometimes a host finds mail that it is unable to deliver directly to the desired remote host.
http://www.cyberciti.biz/faq/configure-sendmail-as-a-smart-host/
1. Install send mail (UBUNTU) -> kalu freebsd dah siap install...
#apt-get install sendmail
...bla...bla..
sendmail (y)..
..bla..bla..
2. Create file sendmail.mc
#cd /etc/mail
#nano sendmail.mc
3. Tambah command kat bawah ...features...
define('SMART_HOST','smtp.net4india.com')
4.Replace smtp.net4india.com with your actual smtp server address. If line contains word, dnl remove the dnl word. Regenerate a new sendmail.cf config file with m4 command:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
ckp sifu; .cf nih autorun.. bahaya kalu edit .cf file nih.. sbb kalu .cf nih ubah ada extra space.. nnti dia akan jd lain...
5.Restart sendmail service:
# /etc/init.d/sendmail restart
...kata sifu.. senang jerk.. pastu gelak2.. huhuhu.. kena byk blaja lg nih..
No comments:
Post a Comment