Set up a Mail server in RedHatLinux9.0

Source: Internet
Author: User
Tags qmail
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.