From 6e3a2ab620bc66280c2e17529cbf7090bc6532d3 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Tue, 26 Jan 2016 13:48:30 +0100 Subject: [PATCH] Add possibility to enable pop3 protocol for Dovecot. fix #17 --- installer.cfg | 3 +++ modoboa_installer/scripts/dovecot.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/installer.cfg b/installer.cfg index 07568f5..5226a35 100644 --- a/installer.cfg +++ b/installer.cfg @@ -50,6 +50,9 @@ config_dir = /etc/dovecot user = vmail home_dir = /srv/vmail mailboxes_owner = vmail +# Enable extra procotols (in addition to imap and lmtp) +# Example: pop3 +extra_protocols = # Replace localhost with your domain postmaster_address = postmaster@localhost diff --git a/modoboa_installer/scripts/dovecot.py b/modoboa_installer/scripts/dovecot.py index 99b544e..671695e 100644 --- a/modoboa_installer/scripts/dovecot.py +++ b/modoboa_installer/scripts/dovecot.py @@ -32,7 +32,10 @@ class Dovecot(base.Installer): def get_packages(self): """Additional packages.""" - return self.packages + ["dovecot-{}".format(self.db_driver)] + packages = ["dovecot-{}".format(self.db_driver)] + if "pop3" in self.config.get("dovecot", "extra_protocols"): + packages += ["dovecot-pop3d"] + return self.packages + packages def install_packages(self): """Preconfigure Dovecot if needed."""