The mailserver.exe
serves to change server-wide mail settings
defining the way mail server works on all domains where the mail service
is enabled. 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 sent through the mail
server.
Location
%plesk_cli%
Usage
mailserver.exe <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.exe --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 make mail server work in the closed relay mode: plesk bin mailserver.exe --set-relay closed |
--set-max-letter-size |
<number>[K|M|G] |
Limits the maximum message size that can be sent through the mail server. |
To restrict the maximum message size that can be accepted by plesk bin mailserver.exe --set-max-letter-size 5M |
…