Dovecot

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(config)
(main config)
Line 4: Line 4:
  
 
== Configuration ==
 
== Configuration ==
The configuration file resides in <tt>/etc/dovecot/dovecot.conf</tt>.
+
The configuration file resides in <tt>/etc/dovecot/dovecot.conf</tt>. Dovecot has very reasonable defaults, so not many settings need to be changed.
  
=== Mail location ===
+
=== Main configuration ===
 +
 
 +
==== Protocols ====
 +
We only support IMAP over SSL/TLS:
 +
protocols = imaps
 +
 
 +
==== Mail location ====
 
As we have a unified virtual users IMAP setup, the Maildir directory can be determined using a template:
 
As we have a unified virtual users IMAP setup, the Maildir directory can be determined using a template:
 
  mail_location = maildir:/var/vmail/%d/%n
 
  mail_location = maildir:/var/vmail/%d/%n
 +
 +
==== Mail extra groups ====
 +
The Ubuntu default configuration has group ''mail'' added by default; this is not needed in our configuration.
 +
#mail_extra_groups = mail
 +
 +
==== Maildir optimizations ====
 +
When copying a message, do it with hard links whenever possible. This makes
 +
the performance much better, and it's unlikely to have any side effects.
 +
maildir_copy_with_hardlinks = yes
 +
 +
 +
== See also ==
 +
* [[Mail]] for Dovecot LDA configuration, and the rest of the mail system.
  
 
[[Category:Mail]]
 
[[Category:Mail]]

Revision as of 18:51, 14 May 2007

Dovecot is an IMAP and POP3 server, and is used on Wikimedia's IMAP server sanger.

Dovecot can be installed from the Ubuntu dovecot-imap package, which also pulls in dovecot-common.

Contents

Configuration

The configuration file resides in /etc/dovecot/dovecot.conf. Dovecot has very reasonable defaults, so not many settings need to be changed.

Main configuration

Protocols

We only support IMAP over SSL/TLS:

protocols = imaps

Mail location

As we have a unified virtual users IMAP setup, the Maildir directory can be determined using a template:

mail_location = maildir:/var/vmail/%d/%n

Mail extra groups

The Ubuntu default configuration has group mail added by default; this is not needed in our configuration.

#mail_extra_groups = mail

Maildir optimizations

When copying a message, do it with hard links whenever possible. This makes the performance much better, and it's unlikely to have any side effects.

maildir_copy_with_hardlinks = yes


See also

  • Mail for Dovecot LDA configuration, and the rest of the mail system.
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox