Edit the mail system postfix profile and installation Dovecot on the LIUNX server

Source: Internet
Author: User
Tags dovecot mail exchange

Experiment



You need to install the DNS service to do domain name resolution before installing the mail system:


To install and configure the DNS service, refer to: http://9067358.blog.51cto.com/9057358/1616971



To make a mail exchange record on the DNS service:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/3C/wKioL1UC9Qei8XJJAACM4uJu5iQ046.jpg "title=" 1.jpg " alt= "Wkiol1uc9qei8xjjaacm4uju5iq046.jpg"/>


After you install DNS , start the service, and the test uses the host command to parse:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/42/wKiom1UC9AaTX7q_AACMptHLYEU041.jpg "title=" 2.jpg " alt= "Wkiom1uc9aatx7q_aacmpthlyeu041.jpg"/>



Since the system generally comes with postfix, all do not need to be installed, directly can edit the mail configuration file:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/42/wKiom1UC9CKQ8A_PAABVSJ4mmYs126.jpg "title=" 3.jpg " alt= "Wkiom1uc9ckq8a_paabvsj4mmys126.jpg"/>



Locate the following configuration item in the file to edit and modify:

Inet_interfaces = 192.168.100.102, 127.0.0.1// IP address of the monitoring service //

Myhostname = mail.benet.com// mail server host name //

MyDomain = benet.com// mail domain //

Myorigin = $mydomain// sender address mail domain name //

Mydestination = $mydomain, $myhostname// recipient address mail domain //

Home_mailbox = maildir/// mail storage location //



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/3C/wKioL1UC9Ybw97pJAACk8faqDt4709.jpg "style=" float: none; "title=" 4.jpg "alt=" Wkiol1uc9ybw97pjaack8faqdt4709.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/42/wKiom1UC9GSzy7o2AAEKWrA9jnc814.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiom1uc9gszy7o2aaekwra9jnc814.jpg "/>




650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/3C/wKioL1UC9Yaw_zlRAABqvDaPV2A378.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiol1uc9yaw_zlraabqvdapv2a378.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/3C/wKioL1UC9Ybg8Q10AAB0PACmjDQ488.jpg "style=" float: none; "title=" 7.jpg "alt=" Wkiol1uc9ybg8q10aab0pacmjdq488.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/42/wKiom1UC9GTDQ7cXAADRGQWZ4Ho595.jpg "style=" float: none; "title=" 8.jpg "alt=" Wkiom1uc9gtdq7cxaadrgqwz4ho595.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/3C/wKioL1UC9YaDYE8xAACyrxTySyA982.jpg "style=" float: none; "title=" 9.jpg "alt=" Wkiol1uc9yadye8xaacyrxtysya982.jpg "/>


Filter profile to see if the modification is complete:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/3C/wKioL1UC9cSSgYdrAAC4BJDFFiE863.jpg "title=" 10.jpg "alt=" Wkiol1uc9cssgydraac4bjdffie863.jpg "/>


Edit the /etc/hosts file, corresponding to the IP address and mail domain name, establish the server domain name Mapping relationship:



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/3C/wKioL1UC9dqD85JEAABvNQqe2HA122.jpg "title=" 11.jpg "alt=" Wkiol1uc9dqd85jeaabvnqqe2ha122.jpg "/>



To open the Mail service:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/3D/wKioL1UC9e_gApFeAABhhfIzw_A067.jpg "title=" 12.jpg "alt=" Wkiol1uc9e_gapfeaabhhfizw_a067.jpg "/>



Check that the listening port is open:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/42/wKiom1UC9OXT1GP2AABnrkmq1pg037.jpg "title=" 13.jpg "alt=" Wkiom1uc9oxt1gp2aabnrkmq1pg037.jpg "/>



After installing the postfix , the next installment of the receiving mail service dovecot:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/42/wKiom1UC9PmxF7Y7AADNSbSP1bM166.jpg "title=" 14.jpg "alt=" Wkiom1uc9pmxf7y7aadnsbsp1bm166.jpg "/>


To edit the dovecot configuration file:


Locate the following configuration items to add and modify:

protocols = IMAP POP3 LMTP// Open Protocol //

Login_trusted_networks = 192.168.100.0/24// Specify the network segment of the server //


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/3D/wKioL1UC9kCy6cWSAABSFidSyoI159.jpg "title=" 15.jpg "alt=" Wkiol1uc9kcy6cwsaabsfidsyoi159.jpg "/>


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/42/wKiom1UC9S-gmY-YAAClMXhXaGg357.jpg "title=" 16.jpg "alt=" Wkiom1uc9s-gmy-yaaclmxhxagg357.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/3D/wKioL1UC9mDxpAMbAAELNvZ2nVA706.jpg "title=" 17.jpg "alt=" Wkiol1uc9mdxpambaaelnvz2nva706.jpg "/>


To open the mailbox location and format:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/42/wKiom1UC9VnxxmAVAAB0LNo0aHM137.jpg "title=" 18.jpg "alt=" Wkiom1uc9vnxxmavaab0lno0ahm137.jpg "/>


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/3D/wKioL1UC9omwjNBOAACS6YVjCKw767.jpg "title=" 19.jpg "alt=" Wkiol1uc9omwjnboaacs6yvjckw767.jpg "/>



Turn on the service and view the listening port:



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/3D/wKioL1UC9p3hlGFaAABX-tjE9DU409.jpg "title=" 20.jpg "alt=" Wkiol1uc9p3hlgfaaabx-tje9du409.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/42/wKiom1UC9YbzEmeGAACY3NIl4Ec677.jpg "title=" 21.jpg "alt=" Wkiom1uc9ybzemegaacy3nil4ec677.jpg "/>


Add two user mailboxes test mail send and receive:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/3D/wKioL1UC9saAxVdTAAC_GAPN9Bw948.jpg "title=" 22.jpg "alt=" Wkiol1uc9saaxvdtaac_gapn9bw948.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/42/wKiom1UC9bCRDfDQAAC4yvo77ns815.jpg "title=" 23.jpg "alt=" Wkiom1uc9bcrdfdqaac4yvo77ns815.jpg "/>


Test Send message:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/3D/wKioL1UC9u_AiUb5AAERaJa1E6A563.jpg "title=" 24.jpg "alt=" Wkiol1uc9u_aiub5aaeraja1e6a563.jpg "/>



To test incoming mail:



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/42/wKiom1UC9d6BaFyKAAID0yMqgj8938.jpg "title=" 25.jpg "alt=" Wkiom1uc9d6bafykaaid0ymqgj8938.jpg "/>


Experiment completed

This article from "Joint efforts, common progress ~ ~" blog, please be sure to keep this source http://9067358.blog.51cto.com/9057358/1620235

Edit the mail system postfix profile and installation Dovecot on the LIUNX server

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.