How to configure sendmail on Red Hat Linux.

Sendmail should be installed by default when you install Red Hat Linux. If it is not then you need to install the Sendmail RPM's with the Red Hat distribution.

Download the Sendmail RPM's from the RedHat website, from a mirror or from your Red Hat installation CD.

These RPM's are required:

sendmail-{ver}.i386.rpm
sendmail-cf-{ver}.i386.rpm
sendmail-devel-{ver}.i386.rpm

Configuring Sendmail

1). Edit file "/etc/mail/sendmail.mc" - Look for the line:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

Change this line to:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

Save the file.

2). Make the sendmail configuration file:

$> m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

3).Restart Sendmail:

$> /etc/rc.d/init.d/sendmail restart

Related:
Tripanel tutorials index

Reference:
Red Hat Linux Website


 
  Visit Noc2 Scripts and Software