]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doc: Add minimal configuration
authorVincent Kenbeek <vincent.kenbeek@open-xchange.com>
Thu, 28 Nov 2024 08:58:04 +0000 (09:58 +0100)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:01 +0000 (10:40 +0200)
configure.ac
doc/Makefile.am
doc/dovecot.conf.in [new file with mode: 0644]

index 1f6dc9140f8df68aeb01b5a77ace006763cb0672..36e972d040665ef153545b87a640660b1c80758e 100644 (file)
@@ -792,6 +792,7 @@ doc/man/Makefile
 doc/index.html
 doc/example-config/Makefile
 doc/example-config/conf.d/Makefile
+doc/dovecot.conf
 src/Makefile
 src/lib/Makefile
 src/lib-sql/Makefile
index 1aba64c90c4d4d37dc29c3ef984973f4318bbcd3..de9c79efe55acb035917c7dfced0220e74a3ffb9 100644 (file)
@@ -24,6 +24,11 @@ stamp-man:
 
 all-local: stamp-man
 
+install-data-hook:
+       $(INSTALL) -d $(DESTDIR)$(sysconfdir)/dovecot
+       test -e $(DESTDIR)$(sysconfdir)/dovecot/dovecot.conf || \
+       $(INSTALL) dovecot.conf $(DESTDIR)$(sysconfdir)/dovecot/dovecot.conf
+
 install-data-local:
        $(MKDIR_P) $(DESTDIR)$(docdir); \
        for dir in $(DOCDIRS); do \
diff --git a/doc/dovecot.conf.in b/doc/dovecot.conf.in
new file mode 100644 (file)
index 0000000..26d5559
--- /dev/null
@@ -0,0 +1,49 @@
+## Dovecot configuration file
+
+# Dovecot configuration version. This must be the first setting in the
+# configuration file. It specifies the configuration syntax, the used setting
+# names and the expected default values.
+dovecot_config_version = @DOVECOT_CONFIG_VERSION@
+
+# Dovecot storage file format version. It specifies the oldest Dovecot version
+# that must be able to read files written by this Dovecot instance. The
+# intention is that when upgrading Dovecot cluster, this setting is first kept
+# as the old Dovecot version. Once the cluster is fully upgraded to a new
+# version and there is no intention to rollback to the old version anymore,
+# this version number can be increased.
+dovecot_storage_version = @DOVECOT_CONFIG_VERSION@
+
+# The configuration below is a minimal configuration file using system user authentication.
+# See https://@DOVECOT_ASSET_URL@/configuration_manual/quick_configuration/
+
+!include_try conf.d/*.conf
+
+# Enable wanted protocols:
+protocols {
+  imap = yes
+  lmtp = yes
+}
+
+mail_home = /srv/mail/%{user}
+mail_driver = sdbox
+mail_path = ~/mail
+
+mail_uid = vmail
+mail_gid = vmail
+
+# By default first_valid_uid is 500. If your vmail user's UID is smaller,
+# you need to modify this:
+#first_valid_uid = uid-number-of-vmail-user
+
+namespace inbox {
+  inbox = yes
+  separator = /
+}
+
+# Authenticate as system users:
+passdb pam {
+}
+
+ssl_cert_file = /etc/dovecot/ssl-cert.pem
+ssl_key_file = /etc/dovecot/ssl-key.pem
+