Some users might attempt to create sites with names identical to the domain names of popular online stores and other resources. In such a case, these users will be able to intercept email messages sent by your customers to these domains, because the mail server ensures local delivery. To prevent this, there is a list of predefined domain names that are not allowed to be created on the server.

To manage the list of such domain names, use the following commands (represented by nodes from plesk_server.xsd).

Switching the Restriction On or Off

<packet version="1.6.7.0">
    <server>
        <domain-restriction-enable/>
    </server>
</packet>

<packet version="1.6.7.0">
    <server>
        <domain-restriction-disable/>
    </server>
</packet>

Viewing a List of Restricted Domain Names

<packet version="1.6.7.0">
    <server>
        <domain-restriction-list/>
    </server>
</packet>

Adding a Domain Name to the List

<packet version="1.6.7.0">
    <server>
        <domain-restriction-add>
            <name>domain1.com</name>
        </domain-restriction-add>
        <domain-restriction-add>
            <name>domain2.com</name>
        </domain-restriction-add>
    </server>
</packet>

Renaming a Domain in the List

<packet version="1.6.7.0">
    <server>
        <domain-restriction-rename>
            <name>domain1.com</name>
            <new-name>domain1renamed.com</new-name>
        </domain-restriction-rename>
    </server>
</packet>

Removing a Domain Name from the List

<packet version="1.6.7.0">
    <server>
        <domain-restriction-remove>
            <name>domain1.com</name>
        </domain-restriction-remove>
        <domain-restriction-remove>
            <name>domain2.com</name>
        </domain-restriction-remove>
    </server>
</packet>