This guide will lead you through setup of the SMTP relay function of sendmail on Solaris & Linux.

Typical installation of Solaris and Red Hat Linux (RHEL3) will include the components needed to make sendmail work.

If the RPM's for sendmail are not installed for your Linux distro, install them::

rpm -ivh sendmail-<version>.rpm
rpm -ivh sendmail-cf-<version>.rpm
rpm -ivh m4-<version>.rpm

You may be able to find the needed RPM's at http://linux.[]

If the sendmail configuration file ( doesn't exit, create it:
NOTE: The configuration file on RHAS 2.1 is /etc/; on Solaris and RHEL3 it is /etc/mail/

m4 /etc/mail/ > /etc/mail/

Edit the sendmail configuration file with SMTP relay info:

vi /etc/mail/

Make sure sendmail is in the system startup (Red Hat Linux):

chkconfig --list sendmail
sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off

Add to system startup if necessary (Red Hat Linux):

chkconfig --add sendmail
chkconfig sendmail on

Start sendmail:

/etc/init.d/sendmail stop
/etc/init.d/sendmail start

Test it (use mail for Linux, mailx for Solaris):

mail -s"Test" john_g_johnson@[].com
This is the emergency broadcast system.

Here is some documentation from Red Hat about "Mail Transfer Agents":


Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 24-May-2008 13:29 by UnknownAuthor