Enable sieve with LMTP.

This commit is contained in:
Antoine Nguyen
2015-12-09 09:53:14 +01:00
parent 37d9a8a3e8
commit 16d4d85c57
4 changed files with 22 additions and 2 deletions

View File

@@ -50,6 +50,8 @@ config_dir = /etc/dovecot
user = vmail user = vmail
home_dir = /srv/vmail home_dir = /srv/vmail
mailboxes_owner = vmail mailboxes_owner = vmail
# Replace localhost with your domain
postmaster_address = postmaster@localhost
[nginx] [nginx]
enabled = true enabled = true

View File

@@ -19,7 +19,8 @@ class Dovecot(base.Installer):
"dovecot-sieve" "dovecot-sieve"
] ]
config_files = [ config_files = [
"dovecot.conf", "dovecot-dict-sql.conf.ext", "conf.d/10-ssl.conf"] "dovecot.conf", "dovecot-dict-sql.conf.ext", "conf.d/10-ssl.conf",
"20-lmtp.conf"]
with_user = True with_user = True
def get_config_files(self): def get_config_files(self):

View File

@@ -0,0 +1,17 @@
##
## LMTP specific settings
##
# Support proxying to other LMTP/SMTP servers by performing passdb lookups.
#lmtp_proxy = no
# When recipient address includes the detail (e.g. user+detail), try to save
# the mail to the detail mailbox. See also recipient_delimiter and
# lda_mailbox_autocreate settings.
#lmtp_save_to_detail_mailbox = no
protocol lmtp {
postmaster_address = %postmaster_address
# Space separated list of plugins to load (default is global mail_plugins).
mail_plugins = $mail_plugins sieve
}

View File

@@ -27,7 +27,7 @@ service managesieve-login {
service managesieve { service managesieve {
# Max. number of ManageSieve processes (connections) # Max. number of ManageSieve processes (connections)
#process_count = 1024 #process_limit = 1024
} }
# Service configuration # Service configuration