The mail.exe utility serves to manage mail accounts. The utility
allows the following operations:
- creating and removing mail accounts
- modifying mail account settings (mailbox quotas, antivirus
protection, etc.) - managing autoresponders (mail reply messages to be sent
automatically), mail redirection, and mail aliases - enabling/disabling the mail service on subscriptions
Location
%plesk_cli%
Usage
mail.exe <command> [[<mail name>@]<domain name>] [
<option 1> <param 1>[,<param 2>,...,<param n>]
[<option 2> <param 1>[,<param 2>,...,<param n>]]
... [<option N> <param 1>[,<param 2>,...,<param n>]]
]
Example
The following command creates the [email protected] mail account,
sets the password MyPass for it, restricts the size of the mailbox to
10240 KB, and enables bidirectional mail checkup for viruses.
plesk bin mail.exe --create [email protected] -passwd MyPass -mbox_quota 10240K -antivirus inout
Commands
| Command | Parameter | Description | Example |
|---|---|---|---|
--create or -c |
<mail name>@<domain name> |
Creates a mail account with a specified name. |
To create a mail account with the name JohnDoe on the domain plesk bin mail.exe --create [email protected] or plesk bin mail.exe -c [email protected] |
…