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
laynuksAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

linxitCommented:
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).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
samriCommented:
hi laynuks,

Some good docs from Jim (jlevie),
The neat way:
http://www.entrophy-free.net/mail-server.html

Some not-so-neat-way :)
http://www.experts-exchange.com/Networking/Email_Groupware/Sendmail/Q_20369711.html

-- 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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.