The mailserver
utility is used to manage Plesk mail server settings.
By using this utility, you can perform the following tasks:
- setting the relaying mode for the mail server
- setting the maximum message size that can be accepted by the mail
server - enabling, disabling, and configuring spam protection service
- enabling, disabling, and configuring outgoing mail control service
- setting the IP address for outgoing mail
- managing mail server black and white lists
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 |
To set the Plesk mail server relaying mode to “authorization 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 plesk bin mailserver --set-max-letter-size 2M… |