The mail
utility is used to manage domain mail service and mail
names (email accounts) through CLI. By using this utility, you can
perform the following tasks:
- enabling or disabling mail service on subscriptions
- creating and deleting mail accounts
- editing mail account settings
- managing mail groups associated with mail accounts
Usage
mail <command> [<mail_name>] [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command creates mail account [email protected], sets
password mypass for it, sets the size of the email box to 50 MB, and
enables the antivirus screening of both incoming and outgoing email
messages for the mail account.
plesk bin mail --create [email protected] -passwd mypass -mbox_quota 50M -antivirus inout
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--create or -c
|
<mail@domain> |
Creates a mail account. |
To create the mail account [email protected]: plesk bin mail --create [email protected] or plesk bin mail -c [email protected] |
--update or -u
|
<mail@domain> |
Updates mail account settings. |
To set the size of the mailbox for mail account … |