Difference between revisions of "Sendmail"

From CBLFS
Jump to navigationJump to search
(Initial submission of the instructions on building Sendmail)
 
(Finally made the manual pages "build" correctly)
 
(2 intermediate revisions by the same user not shown)
Line 22: Line 22:
 
  define(`confCC',`gcc')
 
  define(`confCC',`gcc')
 
  define(`confCCLINK',`gcc')
 
  define(`confCCLINK',`gcc')
 +
define(`confNROFF',`cat')
 +
define(`confMANDOC',`')
 
  EOF;
 
  EOF;
  
Line 44: Line 46:
 
  define(`confCCOPTS',`-fPIC -DPIC')
 
  define(`confCCOPTS',`-fPIC -DPIC')
 
  define(`confCCLINK',`gcc')
 
  define(`confCCLINK',`gcc')
  define(`confLIBDIR',`/usr/lib64')
+
  define(`confLIBDIR',`/usr/lib64/')
 +
define(`confNROFF',`cat')
 +
define(`confMANDOC',`')
 
  EOF;
 
  EOF;
  

Latest revision as of 19:43, 19 November 2011

Download Source: http://www.sendmail.org/ftp/sendmail.8.14.5.tar.gz

Introduction to Sendmail

The sendmail package contains an open-source MTA. It is useful for sending emails via the command line and with PHP's mail() function

Project Homepage: http://www.sendmail.org/

Creating the Sendmail User/Group

groupadd -g 38 smmsp &&
useradd -c "Sendmail" -d /dev/null -g smmsp \
        -s /bin/false -u 38 smmsp

Non-Multilib

Configure the package:

cat <<<"EOF"
define(`confCC',`gcc')
define(`confCCLINK',`gcc')
define(`confNROFF',`cat')
define(`confMANDOC',`')
EOF;

Compile the package:

./Build

Install the package:

./Build install

Multilib

This package does not provide any libraries so only one installation is needed.

64Bit

Configure the package:

cat <<<"EOF"
define(`confCC',`gcc -m64')
define(`confCCOPTS',`-fPIC -DPIC')
define(`confCCLINK',`gcc')
define(`confLIBDIR',`/usr/lib64/')
define(`confNROFF',`cat')
define(`confMANDOC',`')
EOF;

Compile the package:

./Build

Install the package:

./Build install