More and more people are paying attentionSendmailSendmail is the most important mail transmission agent. I will show you how to configure Sendmail.
I. First of all, to makeLINUXIt is critical that DNS should be configured for sending and receiving emails. Without DNS as a basic LINUX system, it is impossible to send and receive emails normally. My service DNS configuration is as follows:
The IP address of the server is a. B. c. d.
Assume that my domain name is domain.com.
Machine name: my
Forward resolution file name: db.domain.com
Content:
@ INSOAns.mydomain.com. root.ns.mydomain.com .(
2001061405; serial
3600; refresh
900; retry
1209600; expire
43200; default_ttl)
@ INMX5ns
@ INNSns
@ INa. B. c. d
Mail INA a. B. c. d
My INA a. B. c. d
Localhost INA 127.0.0.1
Test INA a. B. c. d
Mail INCNAME my.mydomain.com.
Reverse resolution file name: db. A. B .C
@ INSOAmy.mydomain.com. root.ns.mydomain.com .(
2001061405; serial
3600; refresh
900; retry
1209600; expire
43200; default_ttl)
@ INNSmy
38 INPTR my.mydomain.com.
After these two parsing files are set, the remaining files, such as/etc/named. conf,/etc/named. boot, will be set. The following describes how to configure the email server.
Files that may be used:/etc/sendmail. mc,/etc/sendmail. cf, and files under/etc/mail.
First, check whether sendmail and POP3 are started. The command is as follows:
Ps-auwx | grep sendmail. If sendmail is started, some information is displayed,
Netstat-a | grep pop. If the POP3 port is enabled, the following message is displayed:
Tcp 0 0 *: pop3 *: * LISTEN; otherwise, no message is displayed.
If you choose to install LINUX completely, you do not need to generate the sendmail. cf file. The sendmail version of Linux6.2 is 8.9.3, which is safe and easy to use.