Screenshot from 2014-05-20 01:29:55

If you want your local installation of sendmail to forward all emails to certain, external smtp server, all you have to do is to enable and setup the smarthost feature on the and To do that, open the

[root@computron ~]# vi /etc/mail/

Find the line that defines the smart host feature, uncomment, and point it to the external smtp server

dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
define(`SMART_HOST', `[]')dnl
dnl #

Please notice the bracket at the star and the end of the smtp server’s IP. Restart sendmail by issuing:

[root@computron ~]# service sendmail restart

check whether the change has been reflected on

[root@computron ~]# vi /etc/mail/

find the smart host entry, and make sure that the smart host Ip is pointed to the right server

# "Smart" relay host (may be null)

If it’s there, then we’re done!

By ikhsan

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.