How to install and query email for dovecot
This article mainly tells you how to install dovecot and query email. You can check the relevant professional terms on the Internet or find some related books to supplement them. We will not dabble here, so let's go straight to the topic. I hope this article on how to install dovecot and query email can bring you some practical help.
Dovecot
Given user name, user password. The dovect program takes us to see the user's email files.
Dovecot is not responsible for the delivery and storage of mail [mta] it just displays the mail stored on the mail cloud.
1 installation service
Yum install dovecot dovecot-mysql-y
2 [root@faxin-mail ~] # vim / etc/dovecot/dovecot.conf
Login_trusted_networks = 0.0.0.0amp 0 trust network
Protocols = imap pop3 lmtp uses the protocol
Disable_plaintext_auth = no enable plaintext authentication
[root@faxin-mail ~] # vim / etc/dovecot/conf.d/10-auth.conf
123! include auth-sql.conf.ext enables mysql authentication
3 [root@faxin-mail ~] # cp / usr/share/doc/dovecot-2.2.10/example-config/dovecot-sql.conf.ext / etc/dovecot/dovecot-sql.conf.ext
Generate dovecot to read the configuration of mysql
Vim / etc/dovecot/dovecot-sql.conf.ext
Driver = mysql database type
Connect = Library, user, password used in host=localhost dbname=email user=postuser password=postuser query
Password_query =\ query password match
SELECT username, domain, password\
FROM users WHERE username ='% u 'AND domain ='% d'
User_query = SELECT home, 666 AS uid, 666 AS gid FROM users WHERE userid ='% u 'query email content
Default_pass_scheme = plain default authentication method is plaintext
[root@faxin-mail ~] # vim / etc/dovecot/conf.d/10-auth.conf
Mail_location = maildir:/home/vmail/%d/%n determines the location of the message
First_valid_uid = 666 file to query user identity
First_valid_gid = 666,
Dovecot how to install and query email will first tell you here, for other related issues you want to know can continue to pay attention to our industry information. Our section will capture some industry news and professional knowledge to share with you every day.