Applicable to:
- Plesk for Linux
- Plesk for Windows
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.
-
Switch the setting Activate mail service on this domain to one of these options:
-
Disabled for incoming mail - this domain can only send mail, and only using Sendmail.
-
Not configured - Plesk will not provide any mail services on this domain. This will permanently remove the domain’s mailboxes with all received and sent emails.
-
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.
-
Switch the setting Activate mail service on this domain to one of these options:
-
Disabled for incoming mail - this domain can only send mail, and only using Sendmail.
-
Not configured - Plesk will not provide any mail services on this domain. This will permanently remove the domain’s mailboxes with all received and sent emails.
Note: The option Not configured will not be applied to existing domains. Disabled for incoming mail will be selected for existing domains instead.
-
-
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 <option> can be one of the following:
- true - enable the mail service for all domains
- false - disable the mail service for all domains
-
For Windows Server
-
Start Windows PowerShell as an Administrator.
-
Run the command below to disable the mail service for all domains:
PS &plesk bin site -l | % { if ($_) { plesk bin site -u $_ -mail_service <option> } }
where <option> can be one of the following:
- true - enable the mail service for all domains
- false - disable the mail service for all domains
-
-
Additional Information
When the mail service is switched off on a domain:
-
It will not be possible to send/receive emails
-
Webmail (webmail.example.com) will stop work for a domain
-
It will not be possible to log in to the mail account using email clients (Microsoft Outlook, Mozilla Thunderbird, etc.)
Comments
0 comments
Please sign in to leave a comment.