Take RedHatLinux9.0 as an example. The mail server suites available in Linux include Sendmail and Qmail. Qmail focuses more on security issues. If you need a secure email gateway, it is a good option; sendmail has certain characteristics in terms of stability, portability, and bug-free. In addition, you can find a lot of useful materials on the network. Therefore, this system is generally used in Linux, this article is based on Sendmail. 1. Install S
We use Red Hat Linux 9.0 as an example. The mail server suites available in Linux include Sendmail and Qmail. Qmail focuses more on security issues. If you need a secure email gateway, it is a good option; sendmail has certain characteristics in terms of stability, portability, and bug-free. In addition, you can find a lot of useful materials on the network. Therefore, this system is generally used in Linux, this article is based on Sendmail.
1. Install Sendmail
When Red Hat Linux 9.0 is fully installed, Sendmail is automatically built in with the version 8.12.8-4. If you are not sure whether sendmail is installed in Linux, run the following command to check whether sendmail is installed:
[Root @ ahpeng root] rpm-qa grep sendmail
If you are sure that the application is not installed, choose "Main Menu"> "system settings"> "add or delete application" in the graphic interface ", select the mail server option in the open "software package management" window, click "Update", and follow the prompts to install it.
Another way is to insert the Linux 1st installation CD directly, select the sendmail-8.12.8-4.i386.rpm installation package under the/RedHat/RPMS directory, then run [root @ ahpeng RPMS] # rpm-ivh sendmail-8.12.8-4.i386.rpm to start installation, and then use this method to install sendmail-cf.8.12.8-4.i386.rpm and sendmail-doc in the same directory of the 3rd installation discs. 8.12.8-4. i386.rpm.
Ii. Start the Sendmail service system
We recommend that you use the Sendmail command with parameters to control the running of the mail server: [root @ ahpeng root] # sendmail-bd-q12h, which is explained as follows:
-B: Set the Sendmail service to run on the background.
-D: Specify Sendmail to run in Daemon mode.
-Q: When Sendmail fails to send emails, the emails are saved in the queue and the storage time is specified. The above 12 hours indicates that the data is retained for 12 hours.
In addition, to check whether the Sendmail server is running properly, run the command line [root @ ahpeng root] #/etc/rc. d/init. d/sendmail status.