First, the installation of Dovecot to receive mail, using the RPM method after installing the Dovecot software, you need to undergo some changes to normal use.
First, install Dovecot directly using the system's Yum source
Yum Install Dovecot
Modifying a configuration file
1. Modify in/etc/dovecot/dovecot.conf
Protocols = protocol supported by IMAP POP3 LMTP
Login_trusted_networks = 192.168.10.0/24//Specify the network segment address that is allowed to log on
This will not prompt for password authentication failure when using Outlook client login.
The error code is:dovecot:pop3-login:disconnected (tried to use disabled plaintext auth): rip=192.168.10.11, lip=192.168.10.1< /c0>
2. Remove the/etc/dovecot/conf.d/10-mail.conf in the
Mail_location = mbox:~/mail:inbox=/var/mail/%u
The preceding comment, which is to enable the line,
Remove it from the/etc/dovecot/conf.d/10-auth.conf
Diable_plaintext_auth = yes
The previous comment. and change Yes to No
Then exit the config interface and switch to the mail user, such as SU-AAA switch to AAA user
Create a directory under the current user's home directory
Mkdir-p Mail/.imap/inbox
If you do not create the directory, you will be prompted for authentication failure (-err Authtication failed) when using Telnet to log in to Dovecot. The error code is:error:couldn ' t open inbox:internal error occurred. Refer to server log for more information.
When configured, start Dovecot
Service Dovecot Start
You can use the Telnet command to receive the message, as shown in the test process.
Telnet 192.168.10.1 110
The 4 basic commands for Dovecot are:
User username: Enter username
PASS Password: Enter password
LIST: Display Mailbox
RETR N: Open nth letter, n is the mailbox mail number.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s5.51cto.com/wyfs02/m00/78/8c/wkiol1z_tbjtboqfaabezumcwr8777.png "title=" 3.png "alt=" wKioL1Z_ Tbjtboqfaabezumcwr8777.png "/>
Second, for the Postfix service to open the user alias support:
1. Open Hash-based alias file support in config file
In MAIN.CF, locate the following command, and then enable it (that is, remove the previous # number):
#alias_maps = hash:/etc/aliases
2. Define a new alias entry in the/etc/aliases file, usually in the format of two fields separated by a colon, the original target email address, and the last field to the address that was actually sent to, such as:
Aaa:fei said to [email protected] mail, all forwarded to [email protected]
3. Convert/etc/aliases to hash format:
#newaliases/etc/aliases
Error prompt: Newaliases:fatal:alias initialization mode requires no recipient
The cause of the error is that the newaliases does not require parameters and is entered directly, i.e.
#newaliases
4. Let postfix reload the configuration file
Service Postfix Reload
can be tested;
Using Dovecot to enter the receiving letter, you can clearly see the message displayed: Delivered-to:[email protected], but the login user is [email protected].
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
This article is from the "No Flying World" blog, please be sure to keep this source http://hf1208.blog.51cto.com/8957433/1728830
Linux (CentOS) postfix server dovecot receive mail