Question
How to enable/disable the mail service for a domain?
Answer
To manage the mail service and the email accounts in Plesk, it is required to install a local mail server (on Linux, on Windows Server).
-
For a domain
Note: If previously the mail service has been disabled by a Plesk administrator, a Plesk customer will not be able to enable the mail service back.
-
Go to Domains > example.com > Mail Settings.
-
Enable/disable the option Activate mail service on this domain.
-
Apply the changes.
-
-
For a subscription
-
Go to Subscriptions > example.com > Mail tab > Mail Setting tab.
-
Select required domains using a checkbox and click Activate/Deactivate Services.
-
In the pop-up window, select a required action in the drop-down menu and click OK.
-
-
For all subscriptions under a service plan
Note: New settings will not be applied to existing subscriptions, if:
- A subscriptions is locked from syncing with its service plan.
- The Ability to change mail settings permission is enabled in service plan permissions settings (Service Plans > Example Plan > Permissions tab > Click Show more available permissions to reveal).-
Go to to Service Plans > Plan Name > Mail tab.
-
Enable/disable the option Switch on the mail service.
-
Click Update & Sync.
-
-
Server-wide
Note: This option does not actually switch off the Plesk-managed mail server, but only removes some UI elements from the Customer Panel. These elements will be hidden from hosting service customers and their users. The following items are removed:
- The Mail section.
- Users section > user_name > Change Settings > Create an email address under your account option.
To disable the mail service for all domains, see the command-line instructions.-
Go to Tools & Settings > Mail Server Settings.
-
Enable/disable the option Enable mail management functions in Plesk. and click OK.
-
-
For a domain
# plesk bin subscription -u example.com -mail_service <option>
where <option> can be one of the following:
- true - enable the mail service for a domain
- false - disable the mail service for a domain
-
For all subscriptions under a service plan
Note: Subscriptions will not be synced, if:
- A subscriptions is locked from syncing with its service plan.
- The Ability to change mail settings permission is enabled at Service Plans > Example Plan > Permissions tab (Click Show more available permissions to reveal).# plesk bin service_plan -u "Default Domain" -mail <option>
where <option> can be one of the following:
- true - enable the mail service for a service plan
- false - disable the mail service for a service plan
-
Server-wide
-
For Linux
Run the command below to disable the mail service for all domains:
# for i in $(plesk bin site -l); do plesk bin site -u $i -mail_service <option>; done
where…
-