4. Configure e-Mail transfer *****************
# #1. Basic e-mail Configuration # #
Configure The DNS service to add MX records
Two servers configure /ETC/POSTFIX/MAIN.CF files separately
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8A/DD/wKiom1g9bVLT-UMRAAAvQMwO0Fg229.png "title=" Picture 58.png "alt=" Wkiom1g9bvlt-umraaavqmwo0fg229.png "/>
myhostname--Host Name
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8A/D9/wKioL1g9bVvyQYHQAAAlKrevINA515.png "title=" Picture 59.png "alt=" Wkiol1g9bvvyqyhqaaalkrevina515.png "/>
mydomain--Domain Name
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8A/DD/wKiom1g9bWSyjrq6AAAXVMrjrmA409.png "title=" Picture 60.png "alt=" Wkiom1g9bwsyjrq6aaaxvmrjrma409.png "/>
myorigin--rewrites locally published e-mail messages so that they appear to come from the domain. This helps ensure that the response is returned to the inbound mail server
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/8A/DD/wKiom1g9bW_jPPb0AAAX5w6SwVg335.png "title=" Picture 61.png "alt=" Wkiom1g9bw_jppb0aaax5w6swvg335.png "/>
inet_interfaces--controls the network interface that Postfix listens for incoming e-mail. If all is set, all network interfaces are listening. You can also specify a specific address.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8A/D9/wKioL1g9bXmTM1qUAABzzJYxIz4775.png "title=" Picture 62.png "alt=" Wkiol1g9bxmtm1quaabzzjyxiz4775.png "/>
mydestination--e-mail messages that receive addresses for these domains are passed to the MDA for local delivery.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8A/DD/wKiom1g9bYaxgeWyAAAxhaJCnI8423.png "title=" Picture 63.png "alt=" Wkiom1g9byaxgewyaaaxhajcni8423.png "/>
Restart Service
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8A/D9/wKioL1g9bZTRByz-AAAxu7HdbdM985.png "title=" Picture 64.png "alt=" Wkiol1g9bztrbyz-aaaxu7hdbdm985.png "/>
will be mail_linux for the same configuration
Test
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8A/D9/wKioL1g9baCDJQmiAABeH04JoyU030.png "title=" Picture 65.png "alt=" Wkiol1g9bacdjqmiaabeh04joyu030.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8A/DD/wKiom1g9baryLFA5AACD4arpmeQ535.png "title=" Picture 66.png "alt=" Wkiom1g9barylfa5aacd4arpmeq535.png "/>
attached:
MAILQ//view messages in a queue
postqueue-f//processing messages in a queue
postsuper-d ID//delete ID for mail
>/var/mail/root//clear root user mail
postconf-d//Displays the profile default value.
the Postconf-n//display configuration file differs from the default value of the change.
postconf-e "..."//Change Configuration
## 2. user alias # #
1. Anonymous Mail
1. Modify the configuration file, the anonymous user corresponds, the front is anonymous, followed by the real user name, if the real user name is included as a file, can be used to bulk mail.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8A/D9/wKioL1g9bbbTWdEEAAAqZ7hfEUQ326.png "title=" Picture 67.png "alt=" Wkiol1g9bbbtwdeeaaaqz7hfeuq326.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8A/DD/wKiom1g9bcTCUu6AAAAkDlc2-To421.png "title=" Picture 68.png "alt=" Wkiom1g9bctcuu6aaaakdlc2-to421.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8A/D9/wKioL1g9bdSzmSAyAAArQZ7IEok468.png "title=" Picture 69.png "alt=" Wkiol1g9bdszmsayaaarqz7ieok468.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/8A/DD/wKiom1g9bd-hXnx5AAANg9J5U20135.png "title=" Picture 70.png "alt=" Wkiom1g9bd-hxnx5aaang9j5u20135.png "/>
2. Create an alias database
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8A/D9/wKioL1g9bg-gJUDwAAAs9lEZjPY831.png "title=" Picture 71.png "alt=" Wkiol1g9bg-gjudwaaas9lezjpy831.png "/>
3. Restart the service
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8A/DD/wKiom1g9bhvzezCRAAA457WDmqM417.png "title=" Picture 72.png "alt=" Wkiom1g9bhvzezcraaa457wdmqm417.png "/>
4. Testing
Anonymous testing:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8A/DD/wKiom1g9bivAvENAAABAZAlmkkE851.png "title=" Picture 73.png "alt=" Wkiom1g9bivavenaaabazalmkke851.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8A/D9/wKioL1g9bjaRBw8NAAFi4G8g-30781.png "title=" Picture 74.png "alt=" Wkiol1g9bjarbw8naafi4g8g-30781.png "/>
Mass testing:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8A/D9/wKioL1g9bkOBB9VZAABLuLFsrvo975.png "title=" Picture 75.png "alt=" Wkiol1g9bkobb9vzaablulfsrvo975.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8A/DD/wKiom1g9blGT4b-fAAFnphJaxNM828.png "title=" Picture 76.png "alt=" Wkiom1g9blgt4b-faafnphjaxnm828.png "/>
## 3. e-mail alias # #--Outbound address spoofing
1. Modify the configuration file
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8A/D9/wKioL1g9bl2wur_KAABOb6J2QKo103.png "title=" Picture 77.png "alt=" Wkiol1g9bl2wur_kaabob6j2qko103.png "/>
Add a spoofed address
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8A/D9/wKioL1g9bmrTyrp5AAAnk5xIphw601.png "title=" Picture 78.png "alt=" Wkiol1g9bmrtyrp5aaank5xiphw601.png "/>
2. Make the configuration file effective immediately
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8A/DD/wKiom1g9bnXBerfqAAAqGVFGwWk994.png "title=" Picture 79.png "alt=" Wkiom1g9bnxberfqaaaqgvfgwwk994.png "/>
3. Modify the main configuration file in Smtp_generic_maps
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8A/D9/wKioL1g9boWDY8MSAABN7X9PrQ0891.png "title=" Picture 80.png "alt=" Wkiol1g9bowdy8msaabn7x9prq0891.png "/>
4. Restart the service
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8A/DD/wKiom1g9bpSB_a_1AAA4iv3_GGQ180.png "title=" Picture 81.png "alt=" Wkiom1g9bpsb_a_1aaa4iv3_ggq180.png "/>
5. Test:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8A/DD/wKiom1g9bqKBclYXAABJN_Fx1Lo448.png "title=" Picture 82.png "alt=" Wkiom1g9bqkbclyxaabjn_fx1lo448.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8A/D9/wKioL1g9bseSlZ1TAAHWGemkM1s633.png "title=" Picture 83.png "alt=" Wkiol1g9bseslz1taahwgemkm1s633.png "/>
## 4. Remote detection Port # #
detection via remote host Mail_westos 25-Port
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8A/D9/wKioL1g9bq_QKXdvAAIVyeophhk319.png "title=" Picture 84.png "alt=" Wkiol1g9bq_qkxdvaaivyeophhk319.png "/>
View Results
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8A/DD/wKiom1g9btuBnc0pAAFqGah608Y317.png "title=" Picture 85.png "alt=" Wkiom1g9btubnc0paafqgah608y317.png "/>
Linux notes 3-4 SMTP,. Configuring e-mail Transport