{"id":168,"date":"2016-02-28T16:41:14","date_gmt":"2016-02-28T21:41:14","guid":{"rendered":"http:\/\/easy-admin.ca\/wordpress\/?p=168"},"modified":"2024-03-28T10:28:28","modified_gmt":"2024-03-28T14:28:28","slug":"install-dovecot-on-centos-7","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2016\/02\/28\/install-dovecot-on-centos-7\/","title":{"rendered":"Install Dovecot on CentOS 7"},"content":{"rendered":"<p>Install Dovecot to configure POP\/IMAP server. POP uses 110\/TCP, IMAP uses 143\/TCP<\/p>\n<p>This example shows to configure to provide SASL function to Postfix.<\/p>\n<p>[root@mail ~]# vi \/etc\/dovecot\/dovecot.conf<\/p>\n<p># line 24: uncomment<br \/>\nprotocols = imap pop3 lmtp<\/p>\n<p># line 30: uncomment and change ( if not use IPv6 )<br \/>\nlisten = *<\/p>\n<p>[root@mail ~]# vi \/etc\/dovecot\/conf.d\/10-auth.conf<\/p>\n<p># line 10: uncomment and change ( allow plain text auth )<br \/>\ndisable_plaintext_auth = no<\/p>\n<p># line 100: add<br \/>\nauth_mechanisms = plain login<\/p>\n<p>[root@mail ~]# vi \/etc\/dovecot\/conf.d\/10-mail.conf<\/p>\n<p># line 30: uncomment and add<br \/>\nmail_location = maildir:~\/Maildir<\/p>\n<p>[root@mail ~]# vi \/etc\/dovecot\/conf.d\/10-master.conf<\/p>\n<p># line 96-98: uncomment and add like follows<br \/>\n# Postfix smtp-auth<br \/>\nunix_listener \/var\/spool\/postfix\/private\/auth {<br \/>\nmode = 0666<br \/>\nuser = postfix<br \/>\ngroup = postfix<br \/>\n}<\/p>\n<p>[root@mail ~]# vi \/etc\/dovecot\/conf.d\/10-ssl.conf<br \/>\n# line 8: change (not require SSL)<br \/>\nssl = no<\/p>\n<p>[root@mail ~]# systemctl start dovecot<\/p>\n<p>[root@mail ~]# systemctl enable dovecot<\/p>\n<p><strong>Dovecot automatically create a folders for us \ud83d\ude42<\/strong><\/p>\n<p>vim \/etc\/dovecot\/conf.d\/20-imap.conf<\/p>\n<p>At the end of file paste following code<\/p>\n<p>plugin {<br \/>\nautocreate = Trash<br \/>\nautocreate2 = Junk<br \/>\nautocreate3 = Drafts<br \/>\nautocreate4 = Sent<br \/>\nautosubscribe = Trash<br \/>\nautosubscribe2 = Junk<br \/>\nautosubscribe3 = Drafts<br \/>\nautosubscribe4 = Sent<br \/>\n}<\/p>\n<p><strong>Results:<\/strong><\/p>\n<p># Space separated list of plugins to load (default is global mail_plugins).<\/p>\n<p>mail_plugins = $mail_plugins<br \/>\nplugin {<br \/>\nautocreate = Trash<br \/>\nautocreate2 = Junk<br \/>\nautocreate3 = Drafts<br \/>\nautocreate4 = Sent<br \/>\nautosubscribe = Trash<br \/>\nautosubscribe2 = Junk<br \/>\nautosubscribe3 = Drafts<br \/>\nautosubscribe4 = Sent<br \/>\n}<\/p>\n<p><strong>Having problems with folders?<\/strong><\/p>\n<p>Check out the \/home\/username\/Maildir to see if all the directory are created. If not here is the list of folder to create:<\/p>\n<p>.Trash<br \/>\n.Junk<br \/>\n.Drafts<br \/>\n.Sent<\/p>\n<p><strong>* Make sure to add the folders to roundcube in the &#8220;Manage Folders&#8221;<\/strong><\/p>\n<p>Also you have to <strong>Change ownership<\/strong> to user:user you have created.<\/p>\n<p>Working now on the .Inbox problem, will keep you posted<\/p>\n<p><strong>Why I don&#8217;t receive my email into the .Inbox?<\/strong><\/p>\n<p>&#8230;,,,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Dovecot to configure POP\/IMAP server. POP uses 110\/TCP, IMAP uses 143\/TCP This example shows to configure to provide SASL function to Postfix. [root@mail ~]# vi \/etc\/dovecot\/dovecot.conf # line 24: uncomment protocols = imap pop3 lmtp # line 30: uncomment and change ( if not use IPv6 ) listen = * [root@mail ~]# vi \/etc\/dovecot\/conf.d\/10-auth.conf &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2016\/02\/28\/install-dovecot-on-centos-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install Dovecot on CentOS 7<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":3469,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media\/3469"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}