Plesk

How to activate mail autodiscover for all existing domains on Plesk server?

Question

How to activate mail autodiscover for all existing domains without syncing all subscriptions? 

Answer

  1. Log in to Plesk GUI

  2. Go to Tools & Settings > Mail Server Settings > Settings tab > General options > Enable the Enable mail autodiscover option.

For Linux

  1. Connect to the server via SSH
  2. Create dom.list file with list of domains:

    # plesk bin domain -l > dom.list

  3. Run the utility in a loop for all domains from dom.list file:

    # cat dom.list | while read i; do plesk bin site --update $i -mail_autodiscover true ; done

For Windows

  1. Connect to the server via RDP and open command prompt as Administrator

  2. Get the list of domains:

    C:> plesk bin domain -l > C:domains.txt

  3. Enable autodiscover for them:

    C:> for /f "tokens=*" %d in ('type C:domains.txt') do plesk bin site --update %d -mail_autodiscover true

     

Exit mobile version