[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:network_services:postfix_dovecot_mysql:dovecot [2015/02/16 06:40 (UTC)] – intermediate save astrogeekhowtos:network_services:postfix_dovecot_mysql:dovecot [2015/04/01 21:22 (UTC)] (current) – Fix Dovecot connection string. denydias
Line 1: Line 1:
 +====== Installing The Dovecot MDA ======
  
-===== Installing The Dovecot MDA ===== +This page is supplemental to main article: [[howtos:network_services:postfix_dovecot_mysql|Creating a Virtual Mail Server with Postfix, Dovecot and MySQL]]
-<note important>This article is under construction and not complete! Please return later...</note>+
  
 Dovecot is a popular and secure mail delivery agent, or MDA, which can be configured to work alongside the postfix MTA. Dovecot is a popular and secure mail delivery agent, or MDA, which can be configured to work alongside the postfix MTA.
Line 38: Line 38:
 <code>installpkg {path-to/}dovecot-2.2.13-x86_64-1_SBo.tgz</code> <code>installpkg {path-to/}dovecot-2.2.13-x86_64-1_SBo.tgz</code>
  
-===== Configuring The Dovecot MDA =====+====== Configuring The Dovecot MDA ======
  
 You should become familiar with the [[http://wiki2.dovecot.org/FrontPage|dovecot documentation]] in order to properly configure your installation. You will also find a local copy of the complete documentation installed with the package in /usr/doc/dovecot-2.2.13/wiki/ (adjust for you version number if necessary). You should become familiar with the [[http://wiki2.dovecot.org/FrontPage|dovecot documentation]] in order to properly configure your installation. You will also find a local copy of the complete documentation installed with the package in /usr/doc/dovecot-2.2.13/wiki/ (adjust for you version number if necessary).
Line 65: Line 65:
 We will work from top to bottom of the copied file list to perform configuration. We will work from top to bottom of the copied file list to perform configuration.
  
-Open the file, /etc/dovecot.dovecot.conf and make the following changes:+Open the file, /etc/dovecot/dovecot.conf and make the following changes:
 <code> <code>
 vi /etc/dovecot/dovecot.conf vi /etc/dovecot/dovecot.conf
Line 84: Line 84:
 # Uncomment and set the following lines as shown # # Uncomment and set the following lines as shown #
 driver = mysql driver = mysql
-connect = host=localhost dbname=mailserver user=mailuser pass={your mailuser password}+connect = "host=localhost dbname=mailserver user=mailuser password={your mailuser password}"
 default_pass_scheme = SHA512-CRYPT default_pass_scheme = SHA512-CRYPT
 password_query = SELECT email as user, password FROM virtual_users WHERE email='%u'; password_query = SELECT email as user, password FROM virtual_users WHERE email='%u';
Line 109: Line 109:
  
 <code> <code>
-vi /etc/dovecot/conf.d/1--mail.conf+vi /etc/dovecot/conf.d/10-mail.conf
  
 # Uncomment and set the mail_location path # # Uncomment and set the mail_location path #
Line 165: Line 165:
 </code> </code>
  
-Next we set up the SSL configuration to use the certificates created earlier:+Next we set up the SSL configuration so it is mandatory and uses the certificates created earlier:
  
 <code> <code>
 vi /etc/dovecot/conf.d/10-ssl.conf vi /etc/dovecot/conf.d/10-ssl.conf
-... uncomment as necessary and make the following changes ...+ 
 +# Uncomment as necessary and make the following changes #
 ssl = required ssl = required
 ssl_cert = </etc/ssl/localcerts/dove.pem ssl_cert = </etc/ssl/localcerts/dove.pem
Line 179: Line 180:
 <code> <code>
 vi /etc/dovecot/conf.d/auth-sql.conf.ext vi /etc/dovecot/conf.d/auth-sql.conf.ext
-... find the "passdb" section and configure as follows ...+ 
 +# Find the "passdb" section and configure as follows #
 passdb { passdb {
     driver = sql     driver = sql
     args = /etc/dovecot/dovecot-sql.conf.ext     args = /etc/dovecot/dovecot-sql.conf.ext
 } }
-... find the "userdb" section and configure as follows ...+ 
 +# Find the "userdb" section and configure as follows #
 userdb { userdb {
       driver = static       driver = static
Line 191: Line 194:
 </code> </code>
  
-Now we want to further secure the installation by making all dovecot configutation files owned by vmail and accessible by the dovecot group, and restricting all others access.+Now we want to further secure the installation by making all dovecot configutation files owned by the non--privledged vmail user, and accessible by the dovecot group, with no access by others.
  
 <code> <code>
Line 197: Line 200:
 chmod -R o-rwx /etc/dovecot chmod -R o-rwx /etc/dovecot
 </code> </code>
 +
 [[howtos:network_services:postfix_dovecot_mysql|Return to main article page]] [[howtos:network_services:postfix_dovecot_mysql|Return to main article page]]
 +====== Sources ======
 +  * Based primarily on [[http://wiki2.dovecot.org/|Dovecot documentation]]
 +  * Originally written by [[wiki:user:astrogeek | astrogeek]]
 {{tag>howtos dovecot postfix mysql}} {{tag>howtos dovecot postfix mysql}}
 howtos:network_services:postfix_dovecot_mysql:dovecot ()