Plesk

mailserver: Mail Server Settings

The mailserver utility is used to manage Plesk mail server settings.
By using this utility, you can perform the following tasks:

Usage

mailserver <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]

Example

The following command sets the relaying mode that requires
authorization, specifies the SMTP authorization type for mail users,
and set the lock time to 10 minutes:

plesk bin mailserver --set-relay auth -auth-type smtp -lock-time 10

Commands

Command Parameter Description Example
--set-relay closed|auth

Specifies the mail relay mode for the mail server.

If parameter auth is used, requires the -auth-type
opion.

To set the Plesk mail server relaying mode to “authorization
is required”
(auth):

plesk bin mailserver --set-relay auth -auth-type both

--set-max-letter-size <number>[B|K|M|G] Limits the maximum message size that can be accepted by the
mail server.

To restrict the maximum message size that can be accepted by
the mail server to 2 M:

plesk bin mailserver --set-max-letter-size 2M…