Apply Template Limits and Parameters button incorrectly reactivates mail service

Discussion in 'Plesk Automation Suggestions and Feedback' started by SteveITS, Dec 16, 2016.

  1. SteveITS

    SteveITS Tera Poster

    I found a bug, verified by support (PPA-3455) that if you have a website with mail service deactivated, and in the subscription template you click the "Apply Template Limits and Parameters" button, mail service will be activated. This is of course an issue for domains that host their mail externally.

    Per support, as a workaround, you can use mysql query to get list of disabled mail services (from PA Management node):

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select name from domains where id in (select dom_id from DomainServices where type='mail' and status <>0);"

    And after applying the template disable mail service for those affected subscriptions manually.
    JustinSoul likes this.
  2. JustinSoul

    JustinSoul Odin Team

    You can `/usr/local/psa/bin/mail` utility (on Management node) to disable mail service via CLI:

    /usr/local/psa/bin/mail --off

Share This Page