[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42899] [PATCH 03/10] services: dovecot: Use modules via symlink to
From: |
Alexey Abramov |
Subject: |
[bug#42899] [PATCH 03/10] services: dovecot: Use modules via symlink to system profile. |
Date: |
Mon, 17 Aug 2020 11:31:17 +0200 |
* gnu/services/mail.scm (%dovecot-activation): Link the location with multiple
plugins (dovecot-pigeonhole, etc), to a place where dovecot can find them.
* gnu/services/mail.scm (dovecot-configuration): Use the symlink.
Signed-off-by: Alexey Abramov <levenson@mmer.org>
---
gnu/services/mail.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm
index cfcaf4601b..da17933d6b 100644
--- a/gnu/services/mail.scm
+++ b/gnu/services/mail.scm
@@ -1044,7 +1044,7 @@ directories are prefixed with the chroot directory,
append \"/.\" to
This is used by imap (for shared users) and lda.")
(mail-plugin-dir
- (file-name "/usr/lib/dovecot")
+ (file-name "/etc/dovecot/modules")
"Directory where to look up mail plugins.")
(mail-plugins
@@ -1519,13 +1519,16 @@ greyed out, instead of only later giving \"not
selectable\" popup error.
(else
(format (current-error-port)
"Failed to create public key at ~a.\n" public-key)))))
- (let ((user (getpwnam "dovecot")))
+ (let ((user (getpwnam "dovecot"))
+ (moduledir "/etc/dovecot/modules"))
(mkdir-p/perms "/var/run/dovecot" user #o755)
(mkdir-p/perms "/var/lib/dovecot" user #o755)
(mkdir-p/perms "/etc/dovecot" user #o755)
(copy-file #$(plain-file "dovecot.conf" config-str)
"/etc/dovecot/dovecot.conf")
(mkdir-p/perms "/etc/dovecot/private" user #o700)
+ (unless (file-exists? moduledir)
+ (symlink "/run/current-system/profile/lib/dovecot" moduledir))
(create-self-signed-certificate-if-absent
#:private-key "/etc/dovecot/private/default.pem"
#:public-key "/etc/dovecot/default.pem"
--
2.27.0
- [bug#42899] [PATCH 00/10] Dovecot improvements. Add support for pigeonhole., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 01/10] gnu: dovecot: Add lucene library to support fts indexing., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 03/10] services: dovecot: Use modules via symlink to system profile.,
Alexey Abramov <=
- [bug#42899] [PATCH 04/10] gnu: dovecot-pigeonhole: Add new variable., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 05/10] services: dovecot: Serialize global settings first., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 06/10] services: dovecot: Only serialize settings with non-empty values., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 10/10] services: dovecot: Add 'managesieve-sieve-capability' option., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 08/10] services: dovecot: Add 'imap-metadata?' protocol configuration option., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 02/10] gnu: dovecot: Patch and provide a static path for module directory., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 09/10] services: dovecot: Add 'managesieve-notify-capability' configuration., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH 07/10] services: dovecot: Add 'mail-attribute-dict' configuration option., Alexey Abramov, 2020/08/17
- [bug#42899] [PATCH v2 01/10] gnu: dovecot: Add lucene library to support fts indexing., Alexey Abramov, 2020/08/18