| ProfileSysAdmin ParadiseBlogLists | Help |
|
March 02 Compile SendmailIt is hard to find detail information from Internet about compiling sendmail. But it is not as smooth as you think.
Environment: Solaris 8 (You are recommended to install Developer Distribution or above which installed most of the Sun packages and libraries)
Sendmail Version: 8.13.5
1, Download Sendmail Source from www.sendmail.org
2, Download and install Berkeley DB from www.sleepycat.com or www.sunfreeware.org . I tried v3.3.11. (Better use v3.x version. There are many unknown error when trying v4.x)
3, Download and install make v3.8 from www.sunfreeware.org
4, Download and install gcc v3.4.2 from www.sunfreeware.org
5, Download and install libiconv 2.8 from www.sunfreeware.org
6, Check whether the following sun packages installed or not:
7, Check the UNIX_PATH to include the following path:
8, create the following directories if not existed:
9, Extract sendmail source to a temporary locaiton.
10, Change to directory sendmail_src_home/sendmail
11, Execute "sh Build" (If there is error, most probably it is caused by missing some SUN packages)
12, If no error reported, change to directory sendmail_src_home/cf/domain
13, Copy generic.m4 to YOUR_HOSTNAME.m4 (for example mailsrv.abc.com.m4)
14, Change to directory sendmail_src_home/cf/cf
15, Copy generic-solaris.mc to config.mc and insert the following lines below the line OSTYPE(...) in config.mc. The FEATURE is optional in case you want to use such database.
16, Execute "sh Build config.cf"
17, Copy the config.cf to replace /etc/mail/sendmail.cf
18, Change to directory sendmail_src_dir/sendmail
19, Execute "sh Build install"
20, If no error reported, change to directory sendmail_src_dir and execute "sh Build install" again
21, Possibly it is successfully installed.
22, Execute "/etc/rc2.d/S88sendmail stop" and "/etc/rc2.d/S88sendmail start"
23, telnet localhost 25 and see whether the sendmail is installed with the compile version.
Trackbacks (1)The trackback URL for this entry is: http://tscck.spaces.live.com/blog/cns!1E1A000563550990!113.trak Weblogs that reference this entry
|
|
|