Mail Server Options: mailserver.exe

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

--use-vocabulary

true|false

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

--set-relay

 

closed|auth

Sets the mode for mail relay on the server.

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

To make mail server work in the closed relay mode:

>mailserver.exe --set-relay closed

--set-max-letter-size

<number>K|M|G

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

--set-message-submission

true|false

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

--sign-outgoing-mail

true|false

Allows/Prohibits using DomainKeys Spam protection to sign outgoing mail.

Is false by default.

Available since Parallels Plesk Panel 8.4.

To enable signing on outgoing mail on the mail server:

>mailserver.exe --sign-outgoing-mail true

--verify-incoming-mail

true|false

Allows/Prohibits using DomainKeys Spam protection to verify incoming mail.

Is false by default.

Available since Parallels Plesk Panel 8.4.

To enable verifying incoming mail on the mail server:

>mailserver.exe --verify-incoming-mail true

--help or -h

 

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

-auth-type

 

<pop3|smtp|both>

Specifies mail user authorization type during mail relaying.

Used with the --set-relay command only.

 

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

-lock-time

<minutes>

Specifies the lock time for POP3 authorization.

Required when the -auth-type option's parameter is pop3 or both.

-submission-ip

<ip>

Specifies IP address for message submission.

Used with the --set-message-submission command only.

To enable message submission on IP address 192.0.2.10:

>mailserver.exe --set-message-submission true -submission-ip