Dovecot SNI: Optimize local_names into single blocks for faster reads (TEMPLATES)

Version 1.60.0

Bugfix
Finished

The files in: /etc/dovecot/conf/sni/domain.com.conf Could end up with many local_name entries, should there be many hosts. Changed the formatting to only use 1 local_name per domain, and instead list all hosts sequentially in that local_name entry. This means only one instance of that cert would be used, rather than multiplied by the number of hosts (eg: each subdomain, etc) Also introduced caching on the dovecot_sni.conf template over the span of this binary instance, so any full rewrite should go much quicker, and dovecot should restart much quicker as well. ================ TASK QUEUE (not new, just handy to have here if you want to rewrite all dovecot sni files) If you want to tell all live SSL domains to have their dovecot configs written, type; echo "action=rewrite&value=mail_sni" >> /usr/local/directadmin/data/task.queue echo "action=rewrite&value=mail_sni&domain=domain.com" >> /usr/local/directadmin/data/task.queue

Interested to try DirectAdmin? Get a 30-day Free Trial!