The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: recompile sendmail
Connections
Newbie
Rank: 1



UID 95
Digest Posts 0
Credits 0
Posts 21
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 14, 2007 08:27 AM  Profile | P.M. 
recompile sendmail



recompile sendmail




can anyone give me a quick and dirty way to recompile sendmail and then stop ans start sendmail with the new config?


Top
aaron_nimocks
Newbie
Rank: 1



UID 34
Digest Posts 0
Credits 0
Posts 5
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 14, 2007 08:27 AM  Profile | P.M. 
it pretty much depends on what you're trying to acheive, here's an example of including ldap support :


quote:
use the command sendmail -bt -d0.1 to check the sendmail compiler options. if the string ldapmap appears in the ompiled with:?list, there is no need to recompile sendmail. if ldapmap does not appear in the ompiled with:?list, recompile sendmail to add ldap support.

to add ldap support, set ldap values in the site.config.m4 file and recompile sendmail as shown below:

# cd /usr/local/src/sendmail-8.12.9/devtools/site
# cat >> site.config.m4
appenddef(`confmapdef', `-dldapmap')
appenddef(`conflibs', `-lldap -llber')
ctrl-d
# cd /usr/local/src/sendmail-8.12.9
# ./build

after recompiling sendmail, reinstall it:
# ./build install
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:40 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.004959 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP