@@ -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
|
||||
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user