Plesk: Disable Mail Service for domain

Disable the mail service for the domain.tld subscription:

  1. Go to Subscriptions > domain.tld > Mail > Change Settings.
  2. Uncheck Activate mail service on domain and click OK.

You can also disable the mail service on the subscription using the command-line utility mail:

/usr/local/psa/bin/mail --off domain.tld

To disable the mail service for every subscription on the server, use the following command:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Nse"select name from domains where parentDomainId=0"|while read i; do /usr/local/psa/bin/mail --off $i && echo "Mail service for $i subscription has been disabled" ;done

Leave a Reply

Your email address will not be published.

Enter Captcha Here : *

Reload Image