Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Update dovecot configuration

aapanel.comdf8f382ba5e8
diff --git a/conf/dovecot/conf.d/10-ssl.conf b/conf/dovecot/conf.d/10-ssl.conf
index 4329cabb..5069b802 100644
--- a/conf/dovecot/conf.d/10-ssl.conf
+++ b/conf/dovecot/conf.d/10-ssl.conf
@@ -13,7 +13,7 @@ ssl = yes
# certificate, just make sure to update the domains in dovecot-openssl.cnf
ssl_cert = </etc/ssl/mail/cert.pem
ssl_key = </etc/ssl/mail/key.pem
-
+ssl_dh = </etc/ssl/mail/dh.pem
# If key file is password protected, give the password here. Alternatively
# give it when starting dovecot with -p parameter. Since this file is often
# world-readable, you may want to place this setting instead to a different
@@ -63,5 +63,3 @@ ssl_key = </etc/ssl/mail/key.pem
# no_compression - Disable compression.
# no_ticket - Disable SSL session tickets.
#ssl_options =
-
-# ssl_dh = </etc/dovecot/dh.pem
\ No newline at end of file
diff --git a/conf/dovecot/conf.d/90-sieve.conf b/conf/dovecot/conf.d/90-sieve.conf
index a21452d6..e8f6f13d 100644
--- a/conf/dovecot/conf.d/90-sieve.conf
+++ b/conf/dovecot/conf.d/90-sieve.conf
@@ -36,8 +36,24 @@ plugin {
# active script symlink is located.
# For other types: use the ';name=' parameter to specify the name of the
# default/active script.
- # sieve = file:~/sieve;active=~/.dovecot.sieve
+ sieve_plugins = sieve_imapsieve sieve_extprograms
+ sieve = file:~/sieve;active=~/.dovecot.sieve
+ sieve_before = /usr/lib/dovecot/sieve/spam-to-folder.sieve
+ # From elsewhere to Spam folder
+ imapsieve_mailbox1_name = Junk
+ imapsieve_mailbox1_causes = COPY
+ imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
+
+ # From Spam folder to elsewhere
+ imapsieve_mailbox2_name = *
+ imapsieve_mailbox2_from = Junk
+ imapsieve_mailbox2_causes = COPY
+ imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
+
+ sieve_pipe_bin_dir = /usr/lib/dovecot/sieve
+
+ sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
# The default Sieve script when the user has none. This is the location of a
# global sieve script file, which gets executed ONLY if user's personal Sieve
# script doesn't exist. Be sure to pre-compile this script manually using the