ProfileSysAdmin ParadiseBlogLists Tools Help

Blog


    March 02

    Compile Sendmail

    It 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:
    SUNWbtool, SUNWhea, SUNWlibC, SUNWlibCf, SUNWlibm, SUNWscpr, SUNWscpu, SUNWsra, SUNWsrh, SUNWxcu4, SUNWxcu4t, SUNWsprot, SUNWarc, SUNWarcx
    7, Check the UNIX_PATH to include the following path:
    /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /usr/local/BerkeleyDB.3.3 /usr/local/include /usr/include /usr/ccs/bin
    8, create the following directories if not existed:
    /usr/share/man/cat1
    /usr/share/man/cat5
    /usr/share/man/cat8
    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.
    DOMAIN(YOUR_HOSTNAME)dnl
    FEATURE(`access_db',`dbm -T<TMPF> /etc/mail/access')dnl
    FEATURE(`mailertable',`dbm /etc/mail/mailertable')dnl
    FEATURE(`virtusertable',`dbm /etc/mail/virtuertable')dnl
    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.
     

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks (1)

    The trackback URL for this entry is:
    http://tscck.spaces.live.com/blog/cns!1E1A000563550990!113.trak
    Weblogs that reference this entry