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:
Location
%plesk_cli%
Usage
mailserver.exe <command> [<param>]
Example
The following command sets the relaying mode that requires authorization, specifies the POP3 authorization type for mail users, and set the lock time to 10 minutes:
>mailserver --set-relay auth -auth-type pop3 -lock-time 10
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Enables/Disables checking passwords in a vocabulary during creation of a mail accounts. Enabling this option provides more security to Parallels Plesk Panel mail users in cases of vocabulary attacks on mail accounts. |
To enable checking mail account passwords in a vocabulary: >mailserver.exe --use-vocabulary true |
|
|
Sets the mode for mail relay on the server. If parameter |
To make mail server work in the closed relay mode: >mailserver.exe --set-relay closed |
|
|
Defines the maximum size of a letter sent through the mail server. |
To restrict letters size to 50 Mbytes: >mailserver.exe --set-max-letter-size 50M |
|
|
Defines whether the mail messages sent through the server are submitted or not. |
To enable message submission on all IP addresses: >mailserver.exe --set-message-submission true |
|
|
Allows/Prohibits using DomainKeys Spam protection to sign outgoing mail. Is Available since Parallels Plesk Panel 8.4. |
To enable signing on outgoing mail on the mail server: >mailserver.exe --sign-outgoing-mail true |
|
|
Allows/Prohibits using DomainKeys Spam protection to verify incoming mail. Is Available since Parallels Plesk Panel 8.4. |
To enable verifying incoming mail on the mail server: >mailserver.exe --verify-incoming-mail true |
|
|
Displays help on the use of the utility. |
>mailserver.exe --help |
Note: When enabling checking passwords in a dictionary, be sure that Microsoft Windows Local Security Policy is set up as follows: Security settings > Account polices > Password policy: Password must meet complexity requirements is Enabled.
Options
Option |
Parameter |
Description |
Example |
|
|
Specifies mail user authorization type during mail relaying. Used with the
|
To set the relaying mode with POP3 authorization with the lock time equal to 10 minutes: >mailserver --set-relay auth -auth-type pop3 -lock-time 10 |
|
|
Specifies the lock time for POP3 authorization. Required when the |
|
|
|
Specifies IP address for message submission. Used with the |
To enable message submission on IP address 192.0.2.10: >mailserver.exe --set-message-submission true -submission-ip |