Postfix Mail Service for Linux

Source: Internet
Author: User
Tags imap dovecot

I. Postfix Mail Service


Postfix provides SMTP protocol for mail delivery
Default port 25
/var/log/maillog Service Log
mail [email protected]
Subject:hello
Hello World
. Use "." To end the entry and send
MAILQ viewing message queues
Postqueue-f to re-process message queues

By default, the mail port is only enabled on 127.0.0.1

two. Environment configuration


1. Setting up the mailqq.qq.com host

Set the host name to Mailqq.qq.com

Install Domain name Resolution DNS

Set IP address to 172.25.254.128


2. Setting up the mailwestos.westos.com host

Set the host name to Mailwestos.westos.com

Set IP address to 172.25.254.228


3. Configuring Mailqq.qq.com Host DNS

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/00/24/wKiom1mW9yShkLsPAAArBYFza9Q237.png "style=" float : none; "title=" screenshot from 2017-08-18 14-24-28.png "alt=" Wkiom1mw9yshklspaaarbyfza9q237.png "/>


650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9E/D4/wKioL1mW9yWQO7ZoAADxGwUlT_U285.png "style=" float : none; "title=" screenshot from 2017-08-18 14-24-37.png "alt=" Wkiol1mw9ywqo7zoaadxgwult_u285.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/00/24/wKiom1mW9yGQRhyJAABfqwF_Phk259.png "style=" float : none; "title=" screenshot from 2017-08-18 14-14-15.png "alt=" Wkiom1mw9ygqrhyjaabfqwf_phk259.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/00/24/wKiom1mW9yuTwkOoAABsR4n35RI292.png "style=" float : none; "title=" screenshot from 2017-08-18 14-28-10.png "alt=" Wkiom1mw9yutwkooaabsr4n35ri292.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9E/D4/wKioL1mW9ymCq6miAAB3bqcudW8056.png "style=" float : none; "title=" screenshot from 2017-08-18 14-28-28.png "alt=" Wkiol1mw9ymcq6miaab3bqcudw8056.png "/>

4. Configuring DNS for mailqq.qq.com hosts and mailwestos.westos.com

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/D4/wKioL1mW9x-QgipUAABCMW8rfjc953.png "style=" float : none; "title=" screenshot from 2017-08-18 14-20-18.png "alt=" Wkiol1mw9x-qgipuaabcmw8rfjc953.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/D4/wKioL1mW9yDRSjnOAACebfNWgEw983.png "style=" float : none; "title=" screenshot from 2017-08-18 14-21-17.png "alt=" Wkiol1mw9ydrsjnoaacebfnwgew983.png "/>

5. Test qq.com

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/00/24/wKiom1mW9ynim4bHAADdRO6ITqg407.png "style=" float : none; "title=" screenshot from 2017-08-18 14-24-52.png "alt=" Wkiom1mw9ynim4bhaaddro6itqg407.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9E/D4/wKioL1mW9yaiU4ZgAAC8g3nAcfw021.png "style=" float : none; "title=" screenshot from 2017-08-18 14-25-04.png "alt=" Wkiol1mw9yaiu4zgaac8g3nacfw021.png "/>


6. Test westos.com

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9E/D4/wKioL1mW9yjgiZerAAEI4xV1akU428.png "style=" float : none; "title=" screenshot from 2017-08-18 14-27-53.png "alt=" Wkiol1mw9yjgizeraaei4xv1aku428.png "/>




Three. Mail Service configuration


1. Configuring the Mailqq.qq.com Host

Vim/etc/postfix/main.cf

Myhostname = mailqq.qq.com Specify host name
MyDomain = qq.com The specified domain name

113 Inet_interfaces = All 25 ports Open Network interface

inet_interfaces = localhost to open the local interface (note required)

164 mydestination = $myhostname, $mydomain, localhost receives the specified end-of-message character

Systemctl Restart Postfix.service
Systemctl Stop Firewalld

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9E/D4/wKioL1mW-OeQeXDbAACXhl-cfl8938.png "style=" float : none; "title=" screenshot from 2017-08-18 15-07-28.png "alt=" Wkiol1mw-oeqexdbaacxhl-cfl8938.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/00/25/wKiom1mW-Oui3eJ6AABDOoFRL_0135.png "style=" float : none; "title=" screenshot from 2017-08-18 15-08-09.png "alt=" Wkiom1mw-oui3ej6aabdoofrl_0135.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/D4/wKioL1mW-OjQsN37AACS0DPMD9E202.png "style=" float : none; "title=" screenshot from 2017-08-18 15-08-24.png "alt=" Wkiol1mw-ojqsn37aacs0dpmd9e202.png "/>



2. Configuring the Mailwestos.westos.com Host

Vim/etc/postfix/main.cf

Myhostname = mailwestos.westos.com Specify host name
MyDomain = westos.com The specified domain name

113 Inet_interfaces = All 25 ports Open Network interface

inet_interfaces = localhost to open the local interface (note required)

164 mydestination = $myhostname, $mydomain, localhost receives the specified end-of-message character

Systemctl Restart Postfix.service
Systemctl Stop Firewalld


650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9E/D4/wKioL1mW-OmC2-jFAACAQ2WC71c184.png "style=" float : none; "title=" screenshot from 2017-08-18 15-09-58.png "alt=" Wkiol1mw-omc2-jfaacaq2wc71c184.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/00/25/wKiom1mW-OyAWcTFAAA9gcRE_ts555.png "style=" float : none; "title=" screenshot from 2017-08-18 15-10-17.png "alt=" Wkiom1mw-oyawctfaaa9gcre_ts555.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/00/25/wKiom1mW-O3CZ_ZpAACKJYxhZMg886.png "style=" float : none; "title=" screenshot from 2017-08-18 15-10-25.png "alt=" Wkiom1mw-o3cz_zpaackjyxhzmg886.png "/>

3. Testing

QQ Side Send

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9E/D4/wKioL1mW-OXjOjumAABpqFIyoyc040.png "style=" float : none; "title=" screenshot from 2017-08-18 15-06-02.png "alt=" Wkiol1mw-oxjojumaabpqfiyoyc040.png "/>

Westos End Receive

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/00/24/wKiom1mW-OmjiZhxAAEm-mUPnz4171.png "style=" float : none; "title=" screenshot from 2017-08-18 15-06-16.png "alt=" Wkiom1mw-omjizhxaaem-mupnz4171.png "/>

Westos End Reply

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9E/D4/wKioL1mW-OqgafIfAABAmeP_7Uo007.png "style=" float : none; "title=" screenshot from 2017-08-18 15-10-50.png "alt=" Wkiol1mw-oqgafifaabamep_7uo007.png "/>

QQ side Receive

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9E/D4/wKioL1mW-Ovzor1YAAEDPTAS7H4277.png "style=" float : none; "title=" screenshot from 2017-08-18 15-11-03.png "alt=" Wkiol1mw-ovzor1yaaedptas7h4277.png "/>


Test Message Communication Success


Four. Dovecot to provide the receiving agreement

1. Mail protocol receiving port
POP3 110
IMAP 143
Imaps 993
Pop3s 995

Given the user name, user password, dovecot program for us to see this user's mail file

2.yum Install Dovecot-y

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/00/25/wKiom1mW-z-hIQNyAAA7KjZiw9I158.png "style=" float : none; "title=" screenshot from 2017-08-18 16-19-45.png "alt=" Wkiom1mw-z-hiqnyaaa7kjziw9i158.png "/>


3. Configuring the Dovecot File

Vim/etc/dovecot/dovecot.conf
protocols = IMAP POP3 LMTP
Login_trusted_networks = 0.0.0.0/0
Disable_plaintext_auth = No

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/00/25/wKiom1mW-zuzwK1iAAAi_qznB_w787.png "style=" float : none; "title=" screenshot from 2017-08-18 15-52-34.png "alt=" Wkiom1mw-zuzwk1iaaai_qznb_w787.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/D4/wKioL1mW-znxaSx1AACRkFJCidM140.png "style=" float : none; "title=" screenshot from 2017-08-18 15-53-40.png "alt=" Wkiol1mw-znxasx1aacrkfjcidm140.png "/>


Vim/etc/dovecot/conf.d/10-mail.conf
Mail_location = mbox:~/mail:inbox=/var/mail/%u

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9E/D4/wKioL1mW-znwI1LOAABIsTzvcms570.png "style=" float : none; "title=" screenshot from 2017-08-18 15-55-41.png "alt=" Wkiol1mw-znwi1loaabistzvcms570.png "/>

4. Restart the service systemctl restart Dovecot, view port

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/00/25/wKiom1mW-0CQbQnvAAJXM62iWaU860.png "style=" float : none; "title=" screenshot from 2017-08-18 16-21-41.png "alt=" Wkiom1mw-0cqbqnvaajxm62iwau860.png "/>



5. Switch to student with Create file
Mkdir/etc/skel/mail/.imap-p
Touch/etc/skel/mail/.imap/inbox

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9E/D4/wKioL1mW-zyg31DBAABqPCPACrA689.png "style=" float : none; "title=" screenshot from 2017-08-18 16-20-36.png "alt=" Wkiol1mw-zyg31dbaabqpcpacra689.png "/>


6. In westos.com test mutt-f pop://[email protected]

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/D5/wKioL1mW-z6Rpl9TAAA7lIiCJsc748.png "style=" float : none; "title=" screenshot from 2017-08-18 16-22-39.png "alt=" Wkiol1mw-z6rpl9taaa7liicjsc748.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/D5/wKioL1mW-z6zs_9sAAAlZ_jvI2Y426.png "style=" float : none; "title=" screenshot from 2017-08-18 16-23-03.png "alt=" Wkiol1mw-z6zs_9saaalz_jvi2y426.png "/>

Send

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9E/D4/wKioL1mW-zvhvjDkAAA3IH-DkRI688.png "style=" float : none; "title=" screenshot from 2017-08-18 16-16-38.png "alt=" Wkiol1mw-zvhvjdkaaa3ih-dkri688.png "/>


Use Mutt to verify receipt

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/00/25/wKiom1mW-zzibFuxAABHM2TLuoI676.png "style=" float : none; "title=" screenshot from 2017-08-18 16-15-23.png "alt=" Wkiom1mw-zzibfuxaabhm2tluoi676.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/00/25/wKiom1mW-z2iHjhPAAB6raokRto818.png "style=" float : none; "title=" screenshot from 2017-08-18 16-16-00.png "alt=" Wkiom1mw-z2ihjhpaab6raokrto818.png "/>



Five. Install the Mail Service Thunderbird software on the real machine

1. Install Thunderbird Software

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/00/25/wKiom1mW_AiAnAgcAAArzthqCEM917.png "style=" float : none; "title=" screenshot from 2017-08-18 16-56-17.png "alt=" Wkiom1mw_aianagcaaarzthqcem917.png "/>


2. Set up your account

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/00/25/wKiom1mW_AWgEEVkAABQI6Y-JVo845.png "style=" float : none; "title=" screenshot from 2017-08-18 16-42-03.png "alt=" Wkiom1mw_awgeevkaabqi6y-jvo845.png "/>


3. Configure account Parameters

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9E/D5/wKioL1mW_ALBvNY7AACvKrMoPPQ323.png "style=" float : none; "title=" screenshot from 2017-08-18 16-45-26.png "alt=" Wkiol1mw_albvny7aacvkrmoppq323.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/00/25/wKiom1mW_AaSNYvOAACmsyTUCUc088.png "style=" float : none; "title=" screenshot from 2017-08-18 16-45-51.png "alt=" Wkiom1mw_aasnyvoaacmsytucuc088.png "/>


4. Enter the password for the Westos user

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9E/D5/wKioL1mW_ATCKSOCAAF5Qib5aJs913.png "style=" float : none; "title=" screenshot from 2017-08-18 16-46-15.png "alt=" Wkiol1mw_atcksocaaf5qib5ajs913.png "/>

5. Send mail to student users on westos.com

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9E/D5/wKioL1mW_ASAybi6AADsIHs53Uw280.png "style=" float : none; "title=" screenshot from 2017-08-18 16-47-29.png "alt=" Wkiol1mw_asaybi6aadsihs53uw280.png "/>

6. Login on westos.com Student the user received the mail

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/00/25/wKiom1mW_AiCft14AAFiWISmtAU170.png "style=" float : none; "title=" screenshot from 2017-08-18 16-48-08.png "alt=" Wkiom1mw_aicft14aafiwismtau170.png "/>


Postfix Mail Service for Linux

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.