**************************************
SMTP (Simple Mail protocol) *************
**************************************
SMTP Simple Mail protocol, TCP in a dependent TCP/IP cluster. The port number is 25.
"Front: Configure two DNS hosts, one primary maillinux, one secondary hxl;maillinux (primary DNS server, set/etc/name.conf;/etc/name.rfc1912.zone/;~.zone two files)" "NameServer the secondary DNS machine to the primary DNS machine"
(1) "Turn on the SMTP service for two machines to send and receive mail" (both sides have to do the following configuration, here only take maillinux example, and notice the firewall)
1. Configuration vim/ ETC/POSTFIX/MAIN.CF
75:myhostname=maillinux.linux.com (host name)
83:mydomain=linux.com
99:myorigin=$ mydomain (Set message source name MyDomain)
113:inet_interfaces=all (parameter specifies the network interface that the Posifix system listens on) (and comment out the bytes)
164: Delete localhost in mydestination.
Netstat-antlpe | grep 25 Check the port opening status. If the viewing machine 0 0.0.0.0:25 indicates that all network segments outside the 25 ports are turned on.
[Test]
mail [email protected] [only in one row.] Send]
subject:xx [titled XX]
~
.
POSTSUPER-D + message encoding serial number [message failure encoding (empty failed send list]
postqueue-f [overloaded information file]
in hxl.com machine, mail-u root[view root mailbox]
View Enter a number after &, reply and enter R.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8A/F1/wKiom1g_ssHQPHXiAABl_q90cCc511.png "style=" float: none; "title=" 1.png "alt=" Wkiom1g_sshqphxiaabl_q90ccc511.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8A/ED/wKioL1g_ssGAwzwNAABnZZNX204270.png "style=" float: none; "title=" 2.png "alt=" Wkiol1g_ssgawzwnaabnzznx204270.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8A/F1/wKiom1g_ssKROUPKAADAbaUcQm8196.png "style=" float: none; "title=" 3.png "alt=" Wkiom1g_sskroupkaadabaucqm8196.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8A/ED/wKioL1g_ssOTcW9tAADW7DHB4jY892.png "style=" float: none; "title=" 4.png "alt=" Wkiol1g_ssotcw9taadw7dhb4jy892.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8A/F1/wKiom1g_ssPTESyBAADPobsYIFY671.png "style=" float: none; "title=" 8.png "alt=" Wkiom1g_ssptesybaadpobsyify671.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8A/ED/wKioL1g_ssSCSSc5AAD3fMo16jU192.png "style=" float: none; "title=" 5.png "alt=" Wkiol1g_ssscssc5aad3fmo16ju192.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8A/F1/wKiom1g_ssTQt_n1AAEds9ywB0g910.png "style=" float: none; "title=" 6.png "alt=" Wkiom1g_sstqt_n1aaeds9ywb0g910.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8A/ED/wKioL1g_ssXAtJw8AADWHDlIlG8528.png "style=" float: none; "title=" 7.png "alt=" Wkiol1g_ssxatjw8aadwhdlilg8528.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8A/ED/wKioL1g_ssWQWTlxAACJUwRRkHc412.png "style=" float: none; "title=" 9.png "alt=" Wkiol1g_sswqwtlxaacjuwrrkhc412.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8A/F1/wKiom1g_ssbBQ_fNAADCREmBeqs586.png "style=" float: none; "title=" 10.png "alt=" Wkiom1g_ssbbq_fnaadcrembeqs586.png "/>
(2) "Add a new name for domain name, do the following on the secondary DNS machine"
Change/ETC/POSTFIX/MAIN.CF
113:inet_interfaces=all (Specify Posifix system listening network interface is all)
Vim/etc/aliases
Admin:root
98 MORE:: Include:/etc/moreusers
"Test, test on primary DNS"
This/etc/moreusers is the file that you write to the user you specified more. You can write root,student in moreusers so that when you execute mail [email protected] in the primary DNS, it is equivalent to sending all the users written in Moreusers
Postalias/etc/aliases "Overloaded Information"
Systemctl Restart Postfix.service
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8A/F1/wKiom1g_tBnB4lAcAACZuNw9Z60239.png "style=" float: none; "title=" 11.png "alt=" Wkiom1g_tbnb4lacaaczunw9z60239.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8A/ED/wKioL1g_tBryx-xcAABSX9gzJjw799.png "style=" float: none; "title=" 12.png "alt=" Wkiol1g_tbryx-xcaabsx9gzjjw799.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8A/F1/wKiom1g_tBuSDVSBAABCOHM5MXQ673.png "style=" float: none; "title=" 13.png "alt=" Wkiom1g_tbusdvsbaabcohm5mxq673.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8A/ED/wKioL1g_tB2CLIlyAADi0NCaDW8238.png "style=" float: none; "title=" 14.png "alt=" Wkiol1g_tb2clilyaadi0ncadw8238.png "/>
(3) "Sender address information modification, hidden real address"
1.vim/etc/postfix/generic
242 [email protected] @qq. com
2.postmap GENERIC "Overloaded Information"
3. Encryption: Postconf-e "Smtp_generic_maps=hash:/etc/postfix/generic" "These operations are best in/etc/postfix/, postconf-d | grep generic, querying generic related configuration information "
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8A/ED/wKioL1g_tL3D3IK3AADk3t6kmQM685.png "style=" float: none; "title=" 15.png "alt=" Wkiol1g_tl3d3ik3aadk3t6kmqm685.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8A/F1/wKiom1g_tL7xNunSAAC-WEtOiEc033.png "style=" float: none; "title=" 16.png "alt=" Wkiom1g_tl7xnunsaac-wetoiec033.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8A/F1/wKiom1g_tL-C5T-XAACL9xL-J6Y709.png "style=" float: none; "title=" 17.png "alt=" Wkiom1g_tl-c5t-xaacl9xl-j6y709.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8A/ED/wKioL1g_tL-RO20hAAD-W5utGCE441.png "style=" float: none; "title=" 18.png "alt=" Wkiol1g_tl-ro20haad-w5utgce441.png "/>
4. Restart the service
(4) "Telnet, remote operation of the primary and secondary DNS server to send and receive mail to each other"
Telnet IP (simp service Host) 25 (port number)
EHLO Hello [First detect protocol is unobstructed]
Mail from:[email protected] [mail sender]
RCPT to:[email protected] [mail receiver]
data [message start character]
~ [body]
. End
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8A/ED/wKioL1g_tPjSvMQdAABZTiq3aDc926.png "style=" float: none; "title=" 19.png "alt=" Wkiol1g_tpjsvmqdaabztiq3adc926.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8A/F1/wKiom1g_tPiSqfCaAACiBFkPhLc451.png "style=" float: none; "title=" 20.png "alt=" Wkiom1g_tpisqfcaaacibfkphlc451.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/8A/ED/wKioL1g_tPmw2U_iAADmvS6uKRE756.png "style=" float: none; "title=" 21.png "alt=" Wkiol1g_tpmw2u_iaadmvs6ukre756.png "/>
"Service configuration for SMTP Simple Mail Protocol"