Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Step by Step procedure how to recompile sendmail and install the new binary

Hi I read from sendmail.org that there is security problem and I need to patch my current sendmail. After patching I need to recompile sendmail and install the new binary.

1. My question how do I recompile sendmail and install the new binary if I installed my sendmail using RPM.

1. How do I recompile sendmail and install the new binary
if I installed my sendmail using .tar.gz

Thank You
2 Solutions
Red Hat have just announced new binary RPMs for Sendmail which address this vulnerability.

These are for RedHat 6.2 through to 8.0. Here is a link with the details, though you need to login to Red Hat Network to access it: https://rhn.redhat.com/network/errata/errata_details.pxt?eid=1504

Alternatively you can download the update RPMs from
ftp://ftp.mirror.ac.uk/sites/ftp.redhat.com/pub/redhat/linux/updates/8.0/en/os/i386/sendmail*.rpm (or pick your own mirror site, distro release etc).
hi laynuks,

Some good docs from Jim (jlevie),
The neat way:

Some not-so-neat-way :)

-- modified to remove the unrelated stuff.
1. get the sendmail source.  You can download one from ftp.redhat.com or it should be available on RH SRPMS CD.

At this stage you need to get install the sendmail source tree somewhere.  Unfortunately, I'm not very good with rpm, so what I did is;

2. do a "rpm --recompile sendmail-8.11.6-15.rpm"
and during the compilation proces, press ctrl-C to interrupt the process.  If you let the process continue, the whole sendmail source tree would be removed.  So be quick.

3. go to /usr/src/redhat/SPECS and copy the file sendmail.spec to your working directory (let say /tmp)

4 edit the file sendmail.spec and comment out (buy placing #, wherever you see "rm -rf {$BUILDROOT}" line.

5 go back to your working directory (/tmp), and do
 rpm -bp sendmil.spec

This would do any necessary patching to the sendmail.

6 go to parent directory - /usr/src/redhat/BUILD/sendmail-8.11.6

and issue a make,

if everything runs, do a "make install"
i hope this helps.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now