Mail.exe utility allows you to manage mail accounts. Using this utility, you can:
Mail.exe is located in %plesk_dir%admin\bin\. Available commands and options are listed in tables below.
Usage:mail.exe command <mail_name> [options]
Example of usage:
mail.exe --create johndoe@domain1.com -passwd "MyPass" -cp_access false -mbox_quota 20 -antivirus inout
Available commands:
Command |
Parameter |
Action |
Example |
|
<mail_name>@<domain> |
creates a mail account |
To create e-mail account for John Doe on Somewhere.com domain:
|
|
<mail_name>@<domain> |
updates mail account parameters |
Examples of updating various mail account parameters are provided further down this table |
|
<mail_name>@<domain> |
removes a mail account |
To remove e-mail account of John Doe on Somewhere.com domain:
|
|
<domain> |
enables mail service for a domain |
To enable mail service for Somewhere.com domain:
|
|
<domain> |
disables mail service for a domain |
To disable mail service for Somewhere.com domain:
|
|
<mail_name>@<domain> |
retrieves mail account information |
To retrieve information about John_Doe@somewhere.com mail account:
|
|
|
displays help on the utility usage |
To see help file for mail.exe utility
|
Available options:
Option |
Parameter |
Action |
Example |
|
<true|false> |
enables control panel access |
To enable control panel access to John_Doe@somewhere.com email account:
|
|
<true|false> |
creates/removes a mailbox |
To remove John_Doe mail box:
|
|
<passwd> |
sets a mailbox password |
To set mailbox password, JD_password, for John_Doe@somewhere.com mailbox:
|
|
<passwd> |
obsolete alias for option "passwd" (this option may be removed from future releases) |
To set mailbox password, JD_password, for John_Doe@somewhere.com mailbox:
|
|
<KB> |
limits the mailbox quota to the desired amount |
To limit mail box quota for John_Doe@somewhere.com mail box to 500Kb:
|
|
<KB> |
obsolete alias for option "mbox_quota" (this option may be removed from future releases) |
To limit mail box quota for John_Doe@somewhere.com mail box to 500Kb:
|
|
<add|del>:<name1[,name2]> |
adds or deletes mail alias(es) to/from a mail name |
To add JD, John_D mail alliases to John_Doe@somewhere.com mail name:
|
|
<add|del>:<list1[,list2]> |
adds or removes a mail name to/from a mail group |
To remove John_Doe@somewhere.com from 'Partners' mail group: ./mail.exe --update John_Doe@somewhere.com -mgroups del: Partners |
|
<true|false> |
switches mail redirect on/off |
To switch on mail redirect for John_Doe@somewhere.com mailbox and to set redirect address - John_Doe@redirect.com:
|
|
<addr> |
sets redirect to an address (required if redirect is enabled) |
To set redirect address John_Doe@redirect.com, when redirect is enabled:
|
|
<true|false> |
switches a mail group on/off |
To switch off John_Doe@somewhere.com mail group:
|
|
<add|del>:<addr1[,addr2]> |
adds/removes address(-es) to/from a mail group |
To add Address1@doman.name to John_Doe@somewhere.com mail group:
|
|
<add|del>:<file1[,file2]> |
adds/removes file to/from attachments repository; full path to file needs to be specified, if the file is located in folder other than %plesk_dir%admin\bin\ |
To add attach.zip located in c:\my files to attachments repository of John_Doe@somewhere.com:
|
|
<true|false> |
switches all autoresponders on/off |
To switcn autoresponders on:
|
|
<name> |
autoresponder name (required for all autoresponder options) |
See below for examples |
|
<true|false><subj|body>:<string> or <always> |
switches on/off autoresponder with specified name (default: true) |
To switch on autoresponder named "JD_autoresponder" for John_Doe@somewhere.com mailbox:
|
|
<subj|body>:<string> or <always> |
defines the condition for the autoresponder to be activated whether the specified pattern is encountered in the subject or body, or to respond always |
To respond to e-mails containing pattern "Need help" in the e-mail subject for autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<original|string> |
the subject line to be placed into autoresponder ("Re: <incoming subject>") or a custom string |
To respond with e-mail subject "Help information" for autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<string> |
return address that will be placed into the autoresponder's messages |
To change the return address to "helpserver@somewhere.com" for autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<string> |
autoresponder message text |
To change the autoresponder message text to "Thank you for your inquiry" for autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<add|del>:<file1[,file2]> |
adds/removes autoresponder attachment files; full path to file needs to be specified, if the file is located in folder other than %plesk_dir%admin\bin\ |
To add attach.zip located in c:\my files to messages of autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<number> |
defines the maximum number of responses to a unique e-mail address per day |
To set the maximum number of responses to unique e-mail address to 5 per day for autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<number> |
defines the number of unique addresses to be stored for autoresponder |
To set the number of unique addresses to be stored to 10 for autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<addr> |
defines the e-mail address to forward all incoming mail to |
To forward all incoming mail to "help@somewhere.com" for autoresponder named "JD_autoresponder" on John_Doe@somewhere.com mailbox:
|
|
<true|false> |
enables multiple sessions |
To enable multiple-sessions:
|
|
<off|inout|in|out>
|
manages antivirus check for mail traffic. Disables it, sets it for incoming and outgoing mail, for incoming mail only or for outgoing mail only |
To set antivirus to check all mail messages sent to John_Doe@somewhere.com mailbox:
|