Sendmail server configuration in RedHat6.2

Source: Internet
Author: User
1. Before you install sendmail, if you choose to install sendmail all during Linux installation, sendmail is already in your system. If not, install it. Second, your DNS must be correctly configured and complete; otherwise, the sendmail service may not run properly. If your system is installed as described above, the configuration of the sendmail service can be said to be very simple. For details about DNS configuration, please refer to the article on this site. Ii. configuration process 1. Prerequisites
First, you need to install sendmail. If you choose to install it all during Linux installation, sendmail is already in your system. If not, install it.
Second, your DNS must be correctly configured and complete; otherwise, the sendmail service may not run properly.
If your system is installed as described above, the configuration of the sendmail service can be said to be very simple. For details about DNS configuration, please refer to the article on this site.
Ii. configuration process
1. Modify the/etc/mail/access File
As shown below: domain.com RELAY // "domain.com" is the name of your domain
192.168.0 RELAY // allow machines with 192.168.0. * to send emails through your machine
Then enter the following command to convert:
Makemap hash access. db <access
2. Modify or create a file:/etc/mail/relay-domains:
192.168.0
In this way, you can. This configuration may cause many problems. The above is the simplest method I have summarized after more than a dozen installation and configuration of linux. I hope it will help you. Note that your DNS must be correct, otherwise sendmail will not work well.
3. Common sendmail commands and test and Related Files
A. Related Documents
/Etc/sendmail. cf
/Etc/sendmil. cw
/Etc/inetd. conf
The following files are available in the/etc/mail directory:
Access. db access
Mailertable. db mailertable
Aliases. db aliases
B. Commands
1. Restart the sendmail service.
The/etc/rc. d/init. d directory contains the sendmail File. Run the following command:
./Sendmail restart
2. Check whether POP3 port is enabled
Command: netstat-a | grep pop
If the following information is displayed, the POP3 port is Enabled:
Tcp 0 0 *: pop3 *. * LISTEN
3. Check whether the sendmail service is enabled.
Ps-axuw | grep sendmail
If it is started, there will be some prompts.
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.