Renamed, reconfigured needed Xapian files for Flatcurve
This commit is contained in:
parent
bfa81b318d
commit
3425bcfbf0
|
@ -114,13 +114,13 @@ echo -n 'quota acl zlib mail_crypt mail_crypt_acl mail_log notify listescape rep
|
||||||
echo -n 'quota imap_quota imap_acl acl zlib imap_zlib imap_sieve mail_crypt mail_crypt_acl notify listescape replication mail_log' > /etc/dovecot/mail_plugins_imap
|
echo -n 'quota imap_quota imap_acl acl zlib imap_zlib imap_sieve mail_crypt mail_crypt_acl notify listescape replication mail_log' > /etc/dovecot/mail_plugins_imap
|
||||||
echo -n 'quota sieve acl zlib mail_crypt mail_crypt_acl notify listescape replication' > /etc/dovecot/mail_plugins_lmtp
|
echo -n 'quota sieve acl zlib mail_crypt mail_crypt_acl notify listescape replication' > /etc/dovecot/mail_plugins_lmtp
|
||||||
else
|
else
|
||||||
echo -n 'quota acl zlib mail_crypt mail_crypt_acl mail_log notify fts fts_xapian listescape replication' > /etc/dovecot/mail_plugins
|
echo -n 'quota acl zlib mail_crypt mail_crypt_acl mail_log notify fts fts_flatcurve listescape replication' > /etc/dovecot/mail_plugins
|
||||||
echo -n 'quota imap_quota imap_acl acl zlib imap_zlib imap_sieve mail_crypt mail_crypt_acl notify mail_log fts fts_xapian listescape replication' > /etc/dovecot/mail_plugins_imap
|
echo -n 'quota imap_quota imap_acl acl zlib imap_zlib imap_sieve mail_crypt mail_crypt_acl notify mail_log fts fts_flatcurve listescape replication' > /etc/dovecot/mail_plugins_imap
|
||||||
echo -n 'quota sieve acl zlib mail_crypt mail_crypt_acl fts fts_xapian notify listescape replication' > /etc/dovecot/mail_plugins_lmtp
|
echo -n 'quota sieve acl zlib mail_crypt mail_crypt_acl fts fts_flatcurve notify listescape replication' > /etc/dovecot/mail_plugins_lmtp
|
||||||
fi
|
fi
|
||||||
chmod 644 /etc/dovecot/mail_plugins /etc/dovecot/mail_plugins_imap /etc/dovecot/mail_plugins_lmtp /templates/quarantine.tpl
|
chmod 644 /etc/dovecot/mail_plugins /etc/dovecot/mail_plugins_imap /etc/dovecot/mail_plugins_lmtp /templates/quarantine.tpl
|
||||||
|
|
||||||
sed -i 's/vsz_limit.*/vsz_limit = '${XAPIAN_HEAP}m/g /etc/dovecot/FTS-Xapian.conf
|
#sed -i 's/vsz_limit.*/vsz_limit = '${XAPIAN_HEAP}m/g /etc/dovecot/FTS-Xapian.conf
|
||||||
|
|
||||||
cat <<EOF > /etc/dovecot/sql/dovecot-dict-sql-userdb.conf
|
cat <<EOF > /etc/dovecot/sql/dovecot-dict-sql-userdb.conf
|
||||||
# Autogenerated by mailcow
|
# Autogenerated by mailcow
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
plugin {
|
||||||
|
fts = flatcurve
|
||||||
|
|
||||||
|
# All of these are optional, and indicate the default values.
|
||||||
|
# They are listed here for documentation purposes; most people should
|
||||||
|
# not need to define/override in their config.
|
||||||
|
fts_flatcurve_commit_limit = 500
|
||||||
|
fts_flatcurve_max_term_size = 30
|
||||||
|
fts_flatcurve_min_term_size = 2
|
||||||
|
fts_flatcurve_optimize_limit = 10
|
||||||
|
fts_flatcurve_rotate_size = 5000
|
||||||
|
fts_flatcurve_rotate_time = 5000
|
||||||
|
fts_flatcurve_substring_search = no
|
||||||
|
}
|
||||||
|
|
||||||
|
service indexer-worker {
|
||||||
|
vsz_limit = 1024m
|
||||||
|
}
|
|
@ -1,20 +0,0 @@
|
||||||
plugin {
|
|
||||||
fts = xapian
|
|
||||||
fts_xapian = partial=3 full=20 verbose=0
|
|
||||||
fts_autoindex = yes
|
|
||||||
fts_enforced = yes
|
|
||||||
fts_autoindex_exclude = \Trash
|
|
||||||
fts_decoder = decode2text
|
|
||||||
}
|
|
||||||
|
|
||||||
service indexer-worker {
|
|
||||||
vsz_limit = 1024m
|
|
||||||
}
|
|
||||||
|
|
||||||
service decode2text {
|
|
||||||
executable = script /usr/local/bin/decode2text.sh
|
|
||||||
user = dovecot
|
|
||||||
unix_listener decode2text {
|
|
||||||
mode = 0666
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -297,7 +297,7 @@ replication_dsync_parameters = -d -l 30 -U -n INBOX
|
||||||
!include_try /etc/dovecot/extra.conf
|
!include_try /etc/dovecot/extra.conf
|
||||||
!include_try /etc/dovecot/sogo-sso.conf
|
!include_try /etc/dovecot/sogo-sso.conf
|
||||||
!include_try /etc/dovecot/shared_namespace.conf
|
!include_try /etc/dovecot/shared_namespace.conf
|
||||||
!include_try /etc/dovecot/FTS-Xapian.conf
|
!include_try /etc/dovecot/FTS-Flatcurve.conf
|
||||||
# </Includes>
|
# </Includes>
|
||||||
default_client_limit = 10400
|
default_client_limit = 10400
|
||||||
default_vsz_limit = 1024 M
|
default_vsz_limit = 1024 M
|
||||||
|
|
Loading…
Reference in New Issue