Changes

Dovecot Help

3,526 bytes added, 23:32, 4 June 2015
/* hybrid of unix system accounts and virtual users */
The following lines were added (+) and removed (-):
DovecotDovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems.  The [[Postfix mailer and Dovecot]] are used together for a complete Internet email system.   This guide is Dovecot version 2 centric.  For Dovecot version 1 it may be of less help.''Note: One big advantage to the new config directory is that you no longer have to go digging though documentation to find the parameter to accomplish what you want.  Most of the time you can find it in one of the conf files, and you need only remove the remark characters and, if necessary, make slight modifications to the syntax for your customization.''=== using the configuration file system ===In this example, we want to tell dovecot we are using the Maildir system rather than mbox.  This parameter already exists in one of the configuration files in the conf.d directory.  Rather than manually typing it in to the local.conf, you can just unremark it from the correct existing .conf file.  The files are logically labeled so it seems logical to guess where the parameter is.  However, if you don't like guessing, just do a quick search though the conf files to find the remarked parameter we want... cd ./conf.d/ grep Maildir *And we find it in mail.conf vi mail.confAnd we remove the remark in the line mail_location = maildir:~/MaildirYou can check to make sure the parameter will be read by dovecot by performing this test at the command line: dovecot -nWhich spits out only what dovecot reads (less all remarks)Accomplish this using pam authentication rather than parsing the /etc/passwd file directly.  PAM (Pluggable Authentication Modules) authenticates users against the unix passwd  using the pam_unix.so module, which authenticates users from the system's shadow password file. The PAM configuration is usually in the /etc/pam.d/ directory, but some systems may use a single file, /etc/pam.conf. By default Dovecot uses dovecot as the PAM service name, so the configuration is read from /etc/pam.d/dovecot. The default installation on Redhat/Fedora/CentOS will use pam by default without you having to make changes.  However, to view the configuration involved, do vi 10-auth.confwhich you will see has an include to read from 'auth-system.conf.ext' which you can view vi auth-system.conf.extLook for passdb {  driver = pam }Make sure that is not remarked out.  In older versions you will find these lines directly in the dovecot.conf file.  No matter where they are, as long as they are part of the dovecot configuration it will use pam authentication.There are multiple authentication mechanisms available to use with dovecot.  These databases can be used as ALTERNATIVES to the System users (passwd) as both password databases and user databases:* Passwd-file: /etc/passwd-like file in specified location* LDAP: Lightweight Directory Access Protocol* SQL: SQL database (PostgreSQL, MySQL, SQLite)* Dict: Dict key-value database (Redis, memcached, etc.)* VPopMail: External software used to handle virtual domains  The scope of configuration for each of this is too broad to cover in this page.  Follow the links to the pages for each individual means if available.Example A:  In this example we will configure postfix and dovecot for a system with a mix of unix and virtual user accounts.  The example can be seen in [[Dovecot and Postfix Hybrid Authentication Example]].== Determine installed version ==From the command line: dovecot --version [[Category:Computer_Technology]][[Category:Linux]]
Bureaucrat, administrator
16,192
edits