In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install Dovecot using RPM package under Linux, Xiaobian thinks it is quite practical, so share it with you as a reference, I hope you can gain something after reading this article.
About Dovecot
MRA mail retrieval agents also have many tools such as courier-imap, cyrus-imap and dovecot. The following highlights Dovecot:
1. High security. According to Dovecot's authors, security has been highly concerned and emphasized from both Dovecot's design and implementation. Security here refers not only to traditional security vulnerabilities, but also to software reliability. The best evidence of Dovecot's high security is the "reward." Dovecot's authors have offered £ 1000 since 2006 to the first person to discover a "remotely exploitable security hole," and the £ 1000 remains unclaimed. The term "remotely exploitable security hole" here does not simply refer to a software bug. This shows that its security is very good. As an application that can directly access user data and mail, if there is a vulnerability that is illegally accessed, the consequences are very serious.
2. High performance. High performance here does not refer to how fast Dovecot software itself runs, but specifically Dovecot's high performance when accessing mailboxes. Dovecot does this by indexing the standard mail storage formats mbox and maildir. Indexing is transparent to users, quietly done in the background, and incremental, that is, every time a new message is created or a user modifies or deletes a message, thus minimizing the cost of indexing. Dovecot indexes only information that is frequently used by user clients, such as email headers, email senders, etc. Make sure the index file is not too large. When the mail volume in your mailbox is small, you don't see the benefit of indexing, but as the mail volume slowly increases, Dovecot shows its advantage: every time you open your mailbox, you send and delete emails very quickly. Compared with some other traditional mainstream IMAP servers such as uwimap, it does not support indexing, so whenever you open a mailbox, you need to scan the entire file system, load all files, and put them into memory. The index is also closely related to the topic we are discussing next.
3. Support pop3, imap4,pops,imaps receive mail protocol
4. Easy to manage and scalable. Dovecot has a large number of plug-ins that make configuration easy and flexible. For example, there is SASL authentication capability, but it can be authenticated without relying on SASL, and it can directly do authentication auth-mechanism, support plain, CRAM-MD5, etc. Here are some examples:
10-auth.conf:auth_mechanisms = plain login cram-md5。
Another example is passworddb for user password authentication, which supports password-file, LDAP, SQL, Static, etc.
5. Two mailbox formats are supported:
mailbox: one mail to store all mail (redhat default)maildir: one file to store one mail, all mail stored in one directory
RPM package installation Dovecot
① Install Dovecot
[root@localhost ~]# yum install dovecot dovecot-mysql
② Modify configuration file
[root@localhost ~]# vim /etc/dovecot/dovecot.confssl = no #Disable SSL mechanism, otherwise telnet cannot connect later Test disable_plaintext_auth = no #Allow plaintext password verification, otherwise account connection cannot be done mail_location = maildir:~/Maildir #Set mail storage format and location (Dovecot must receive mail in the same way as Postfix) protocols = imap pop3 pop3s #Enable supported email receiving protocols [root@ localhost ~]# service dovecot start[root @ localhost ~]# chkconfig dovecot on
PS: Dovecot can be used to receive emails after opening the protocol after installation. By default, accounts can be authenticated from Passwd.
POP3 protocol receive mail command
Postfix mail receiving configuration in Linux (IV) Postfix mail receiving configuration in Linux (IV)
Compile and install Dovecot
① Install pam-devel
[root@localhost ~]# yum install pam-devel
② Install Dovecot
[root@localhost ~]# useradd -M -s /sbin/nologin dovecot[root@localhost ~]# useradd -M -s /sbin/nologin dovenull[root@localhost ~]# tar xvf dovecot-2.1.11.tar.gz -C /usr/src[root@localhost dovecot-2.1.11]# cd /usr/src/dovecot-2.1.11[root@localhost dovecot-2.1.11]# ./ configure --sysconfdir=/etc --with-mysql --with-pam[root@localhost dovecot-2.1.11]# make && make install
③ Install dovecot.pem
[root@localhost ~]# mkdir -p /etc/ssl/certs[root@localhost ~]# mkdir -p /etc/ssl/private[root@localhost ~]# cd /usr/src/dovecot-2.1.11/doc[root@localhost doc]# sh mkcert.sh
#will produce a dovecot.pem certificate under/etc/ssl/certs/
④ Add system services
[root@localhost doc]# cp dovecot-initd.sh /etc/init.d/dovecot[root@localhost ~]# chmod +x /etc/init.d/dovecot[root@localhost ~]# chkconfig --add dovecot[root@localhost ~]# chkconfig dovecot on
Create dovecot.conf configuration file
[root@localhost ~]# cp -R /usr/local/share/doc/dovecot/example-config/* /etc/dovecot[root@localhost ~]# vi /etc/dovecot/dovecot.conf! include conf.d/10-auth.confssl = no #disable SSL mechanism disable_plaintext_auth = no #allow plaintext password verification, otherwise account connection will not be available mail_location = maildir:~/Maildir #set email storage format and location (Dovecot must receive emails in the same way as Postfix) protocols = imap pop3 #enable supported email receiving protocols
④ Create PAM certification file
[root@localhost ~]# vi /etc/pam.d/dovecotauth required pam_nologin.soauth include system-authaccount include system-authsession include system-auth
Finally, the compiled dovecot service can be started to test the receipt of mail.
[root@localhost ~]# /etc/init.d/dovecot start
About "how to install Dovecot using RPM package under Linux" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.