aports/main/dovecot/split-protocols.patch
Jakub Jirutka e02aad8c47 main/dovecot: split pop3, lmtp and submission protocols to subpkgs
I left imap in the base package, because most users expect Dovecot
to provide IMAP, so moving it into a subpackage would probably
confuse too many users.
2018-07-22 18:29:42 +02:00

31 lines
1.0 KiB
Diff

For each protocol $prot, which is moved into subpackage $subname,
is installed file /usr/share/dovecot/protocols.d/$subname.conf with:
protocols = $protocols $prot
--- a/doc/example-config/dovecot.conf
+++ b/doc/example-config/dovecot.conf
@@ -20,8 +20,9 @@
# options. The paths listed here are for configure --prefix=/usr
# --sysconfdir=/etc --localstatedir=/var
-# Protocols we want to be serving.
-#protocols = imap pop3 lmtp submission
+# Enable installed protocols.
+#protocols = imap
+!include_try /usr/share/dovecot/protocols.d/*.conf
# A comma separated list of IPs or hosts where to listen in for connections.
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
--- a/src/master/master-settings.c.orig
+++ b/src/master/master-settings.c
@@ -206,7 +206,7 @@
.state_dir = PKG_STATEDIR,
.libexec_dir = PKG_LIBEXECDIR,
.instance_name = PACKAGE,
- .protocols = "imap pop3 lmtp",
+ .protocols = "imap",
.listen = "*, ::",
.ssl = "yes:no:required",
.default_internal_user = "dovecot",