Inside Linux (Shared web hosting) page 163 The following dialog demonstrates
Inside Linux page 163 The following dialog demonstrates some of the initial operations required: stimpy $ pwd /tmp/sendmail-8.10.0 stimpy $ cd devtools/Site stimpy $ cp ../OS/Linux ./site.Linux.m4 stimpy $ cd ../.. stimpy $ pwd /tmp/sendmail-8.10.0 stimpy $ All of these commands place the Linux-specific site file in the expected directory. Next, we need to build the package, or sendmail executable. The following dialog demonstrates this: stimpy $ pwd /tmp/sendmail-8.10.0 stimpy $ ./Build Making all in: /tmp/sendmail-8.10.0/libsmutil Configuration: pfx=, os=Linux, rel=2.2.13, rbase=2, rroot=2.2, arch=i586, sfx= Using M4=/usr/bin/m4 Creating ../obj.Linux.2.2.13.i586/libsmutil using ../devtools/OS/Linux … … cc -o vacation -L../libsmdb -L../libsmutil vacation.o … groff -Tascii -man vacation.1 > vacation.0 || cp vacation.0.dist vacation.0 make[1]: Leaving directory `/tmp/sendmail-8.10.0/… stimpy $ The script to execute is Build (shown in bold text), which is found in the base sendmail directory, shown as sendmail-8.10.0 in this example. Building the package is quite easy because most of the hard work is handled by the Build script file. The Build message output is quite extensive, much more than what is revealed in the preceding dialog. The complete build process should take no longer than a couple of minutes. To confirm the successful build of the sendmail binary, you can execute sendmail as shown in the following dialog: stimpy $ ./sendmail -d0.1 -bt < /dev/null Version 8.10.0 Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETUNIX NEWDB QUEUE SCANF SMTP USERDB XDEBUG /etc/mail/sendmail.cf: line 0: cannot open: No such file or directory stimpy $ The next step is to create the .cf file for the Linux platform. This process is detailed in the following section. Building the .cf File For construction of the .cf file, the Build script executes the m4 macro processor, which uses an .mc file as input. When the sendmail command first executes, it reads a configuration file named sendmail.cf, found in the /etc/mail directory. Proper configuration of this file can be an overwhelming task. Fortunately, there are tools that can make this task much easier. This section briefly discusses the creation of the sendmail.cf file. To begin the configuration process, we will utilize the talents of the Build script file. The following dialog demonstrates the steps required for building the .cf file: stimpy $ pwd /tmp/sendmail-8.10.0 stimpy $ cd cf/cf stimpy $ ls -al *.mc | grep linux -rw-r--r-- 1 103 103 800 Sep 24 17:48 generic-linux.mc stimpy $ cp generic-linux.mc linux.mc stimpy $ ./Build linux.cf Using M4=/usr/bin/m4 rm -f linux.cf /usr/bin/m4 ../m4/cf.m4 linux.mc > linux.cf || ( rm -f linux.cf &&exit 1 ) chmod 444 linux.cf stimpy $ From the base sendmail directory, we change to the cf/cf directory, which contains .mc and .cf files for a number of platforms. Next, you need to make a copy of the supplied .mc file as a local working copy. As shown in the dialog, we named it linux.mc, but you can give the file any name you want. Finally, we execute the Build script, passing the name of the target file (which is linux.cf in this dialog).
Note: In case you are looking for affordable webhost to host and run your web application check Vision cheap hosting services