Linux Beginner-mail article
E-mail is a common tool in life, and Mail is also in Linux systems. In Linux, the service used to send mail is postfix, the service used to receive the message is pop (110 port), IMAP (143 port), and the software used is dovecot. The following two hosts are configured to start the message and manage the message.
For demonstration convenience, the host names of the two hosts are set to "mailqq.qq.com", "mail163.163.com" respectively.
1. Domain Name Configuration
On the "mailqq.qq.com" host for the domain name configuration, the specific configuration in the DNS chapter is related to the introduction, here a brief demonstration, as follows:
A, "vim/etc/named.conf". Comment out line 11th, line 12th, line 17th.
B, "Vim/etc/named.rfc1912.zones". The content in the input.
C, "Vim/var/named/qq.com.zone", "Vim/var/named/163.com.zone". Configure the DNS domain name file.
After completing the service restart, enter "Dig-t mx qq.com", "Dig-t mx 163.com" To see if the configuration was successful.
Enter "Vim/etc/resolv.com" on both hosts and edit "NameServer 172.25.254.202" in it.
After completing the above steps, the domain name configuration is complete.
2. Sending and receiving mail
In the mail to send and receive the message will also need to the delivery service postfix configuration, the two hosts are configured in the same way, now with the "mailqq.qq.com" host example.
"VIM/ETC/POSTFIX/MAIN.CF". In this file, the host name and domain name of the host are added to lines 75th and 83rd respectively. Remove the comment from line 99th. Remove the comment from line 113th. Add a comment to line 116th. Remove "localhost" before "$mydomain" in line 164th.
After completion, restart the service postfix, and make the same configuration on the other host, then you can send and receive mail.
"Mailqq.qq.com" when the host sends the message, as shown in, enter "mail [email protected]" in which to write the content shown. "MAILQ" to see if the message was sent.
"Mail163.163.com" host when receiving mail, enter "mail" to see the number of the message, and then enter the number of messages to be viewed, you can see this message.
3. Remotely manage mail mutt
Messages can also be managed remotely through mutt. The following configuration is required on the mail server to be managed separately.
Download the software dovecot on the mail host you want to manage, such as "Yum Install Dovecot-y" on "mailqq.qq.com".
After the download is complete, enter "vim/etc/dovecot/dovecot.conf", edit the configuration file, remove the comments from line 24th, and write the contents in lines 48th and 49th.
"Vim/etc/dovecot/conf.d/10-mail.conf". Edit the content shown in line 30th of this file.
Users who need to be managed are student, which remotely manages messages for student users. You also need to enter "Mkdir-p/home/student/mail/.imap" to create a hidden directory and create a "INBOX" file in it. Upon completion, the configuration on the mail server to be managed is complete.
In a non-two host on the test, just a normal host, the Test side need to install the software "Yum install Mutt-y".
Enter "Mutt-f Pop://[email protected]", you can enter the remote management interface, enter "O" after you need to enter the server student user's password, after the completion of the message can be viewed.
4, the Mail graphics management software
Download the Software "Thunderbird" on other hosts to achieve graphical management. As shown, after installing this software, enter "Thunderbird" to start, click "Skip this and use my existing email".
In the interface to enter the information of their own messages, after the completion of the click "Done", you can enter the mail software system.
Click "Get Messages" and enter your password to view the email.
Click "Write" to send the message.
Click "Local Folders" and then click "View settings for this accout" to manage the user.
More use of the software can also be researched on its own.
These are the settings for sending and receiving messages in Linux, and the management of messages remotely.
Linux Beginner-mail article