Operating System - Linux
1820693 Members
2878 Online
109627 Solutions
New Discussion юеВ

How to install sendmail software from source distribution?

 
Chan Choth PUTH
Advisor

How to install sendmail software from source distribution?

Dear experts,

I have already downloaded sendmail.8.12.8.tar.gz from sendmail.org website. I used this command
$ cp sendmail.8.12.8.tar.gz /tmp
$ cd /tmp
$ tar -xvzf sendmail.8.12.8.tar.gz
What should I do next? I do not know how can I install sendmail software from source distribution? I am very new to the source distribution.

Thanks,
Sharing IT knowledge and Information
4 REPLIES 4
U.SivaKumar_2
Honored Contributor

Re: How to install sendmail software from source distribution?

Dear Chan ,

After you do tar unzip. A new directory called sendmail.8.12.8 will be created under your current diretory.

Now

#pwd
/tmp
#cd sendmail.8.12.8
#./configure --help
will show you the compile options for sendmail.

Now to create Makefile with your compile options.

#./configure --"options-if-any"

Wait until the above command finishes.

Then give this command

#make

Wait until the above command finishes without errors. If the command is successfull binaries for sendmail will be created under the curent directories and some sub directories

Then

#make install

Now the compiled binaries , libraries , man pages for sendmail will be installed in proper directories of your server.

regards,

U.SivaKumar





Innovations are made when conventions are broken
Stuart Browne
Honored Contributor

Re: How to install sendmail software from source distribution?

You might also want to consult the 'README' and 'INSTALL' files that come with the source distribution, or the online-help at http://www.sendmail.org/compiling.html .
One long-haired git at your service...
benoit Bruckert
Honored Contributor

Re: How to install sendmail software from source distribution?

HI,
Just a correction, for most of the gnu tools, you compile them with ./configure, maker and make install..
Sendmail doesn't work like this, instead of configure, you have to run :
sh Build.
and before doing it, edit the proper file in devtools/OS to place libs compiling tools....
(See INSTALL file as proposed by Stuart).

To build the cf file, go to cf/cf ,
at this level, ./Build yourfile.mc >sendamil.cf

hope that help
Benoit
______________
"Aux jeunes gens pour l'ordinaire L'adresse et le savoir-faire Valent mieux que des biens acquis." Perrault Charles, Le Chat bott??, Moralit??
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
Sergejs Svitnevs
Honored Contributor

Re: How to install sendmail software from source distribution?

The first step is to read the specific INSTALL file. This is good advice.

# tar xvzf sendmail.8.12.8.tar.gz
# cd sendmail-8.12.8
# make
# make install
# m4 cf.m4 generic-bsd-4.4.mc >sendmail.cf
# cd sendmail-8.12.8/cf
# mkdir site
# cp ../cf/generic-bsd-4.4.mc sendmail.mc
# m4 ../m4/cf.m4 sendmail.mc >sendmail.cf
# cp sendmail.cf sendmail.cw /etc
# killall -HUP sendmail

Regards,
Sergejs