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."""