Linux Server How ToHow To Setup, Configure, Manage and Secure a Linux Server |
|
Home Which Linux Distribution? Linux Server Hardware Linux Server Security Linux Web Server - Apache Linux DNS Server - Bind Linux DHCP Server - DHCPD Linux Mail Server - Sendmail Introduction to Sendmail Install Sendmail With Apt Compile Sendmail MX Records Configure Sendmail Users, Relays and Domains Filtering Spam LDP How To's About This Site |
Linux Server How To - Install Sendmail From SourceInstalling Sendmail From SourceCompiling Sendmail mail server from source is not anywhere near as hard as it may first sound. We will assume that the reader has no prior knowledge of compiling from source but has root privileges and the basic skills required to operate their Linux server. There are several reasons why you may want to compile sendmail from source, your chosen distribution may not have support for apt or rpm packages or you may simply require a higher level of control over the level of functionality is needed and where things are installed.Get the Latest Sendmail Source DistributionTo compile your Sendmail mail server you will require the latest source distribution from www.sendmail.org. The easiest way to get the source distribution onto your Linux server is by using wget but alternately you may prefer to download the source elsewhere and FTP it to your server or copy it to disk or USB drive. Once you have the source distribution you should unpack it using tar and gzip into a directory on your machine so that you can start working with it. These steps are shown below, bearing in mind that $ and # should not be typed in, they are there simply to indicate a command prompt. Version 8.14.3 of Sendmail is the version we are installing, please substitute it with the latest version from www.sendmail.org.
Next we need to change to the cf/cf/ directory (no, that is not a typing error!) where you will see a number of .mc files that have been tailored to suit different systems. Select the one that describes your Linux server the best and rename it to sendmail.mc. We chose generic-linux.mc. Edit it if you wish to add additional features or change any specific configuration then build the cf file using sh ./Build sendmail.cf. It is highly recommended that if your intention is to run a production mail server with several users, multiple domains etc that you read our article on How to configure Sendmail. Install sendmail.cf by typing sh ./Build install-cf, which will place your newly built sendmail.cf into the /etc/mail directory.
We should now install sendmail itself, change back to the sendmail/ directory and complete the install by typing sh ./Build install
For each of the remaining utilities such as makemap, mailstats, libmilter etc simply change into the appropriate directory and type sh ./build install to install it. Handy utilities that are highly recommended are libmilter, makemap, praliases and vacation. Once you have complted your install of Sendmail the final thing you may require is a startup script such as the one below to stop and start sendmail. Place the script in the /etc/rc.d/ directory of your Linux server and your Sendmail install should be ready to start.
|
| © 2009 www.linuxserverhowto.com |