How To: Disable Dovecot SNI Sync During import

During import, when accounts with SSL certificates are imported, the file /etc/dovecot/conf.d/95-iworx-sni-hosts.conf, which records SSL certificate information for use with the Dovecot MSA, regenerates itself when each new account is added. When importing SiteWorx accounts en masse for hundreds of domains, this may slow down the import process. It may be helpful to temporarily disable syncing this file during the import and then manually run the sync when the import is complete.

To Disable Dovecot SNI Sync

  1. Log into the server at the CLI as the root user via SSH

  2. Create a file named prevent-syncsnihost with the following:

    echo true > /home/interworx/etc/env/prevent-syncsnihosts
    

To Re-Enable Dovecot SNI Sync

  1. Log into the server at the CLI as the root user via SSH

  2. Remove the prevent-syncsnihost file

    rm /home/interworx/etc/env/prevent-syncsnihosts
    
  3. Run the Dovecot SNI Sync command

    nodeworx -u -n -c MailDovecot -a syncDovecotSniHosts