The autoresponder utility is used to manage mail autoresponders through CLI. By using this utility, you can perform the following tasks:
Syntax
autoresponder <command> <autoresponder name> [
<option_1> [<param>]
[<option_2> [<param>]]
… [<option_N> [<param>]]
]
Example
The following command creates and enables autoresponder named AutoReply for Plesk mail account JDoe@example.com, sets the text to "Thank you for your inquiry. The application form is attached." and the subject line to "application form" for the automatic reply message, attached to the message file applicationform.txt from the autoresponders attachment file repository.
# ./autoresponder --create Autoreply -mail JDoe@example.com -status true -attach "applicationform.txt" -subject "application form" -text "Thank you for your inquiry. The application form is attached."
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Creates a mail autoresponder. Requires |
To create mail autoresponder AutoReply for the mail account JDoe@example.com: # ./autoresponder --create Autoreply -mail JDoe@example.com or # ./autoresponder -c AutoReply -mail JDoe@example.com |
|
|
Updates autoresponder settings. Requires |
To reply to mail messages received by JohnDoe@example.com using autoresponder AutoReply with the An autoreply message subject: # ./autoresponder --update AutoReply -mail JDoe@example.com -subject "An autoreply message" or # ./autoresponder -u AutoReply -mail JDoe@example.com -subject "An autoreply message" |
|
|
Deletes a mail autoresponder. Requires |
To delete mail autoresponder AutoReply for the mail account JDoe@example.com: # ./autoresponder --remove Autoreply -mail JDoe@example.com or # ./autoresponder -r AutoReply -mail JDoe@example.com |
|
|
Enables all autoresponders on a specified Plesk mail account. |
To enable all existing autoresponders for mail account JDoe@example.com: # ./autoresponder --on example.com |
|
|
Disables all autoresponders on a specified Plesk mail account. |
To disable all existing autoresponders for the mail account JDoe@example.com: # ./autoresponder --off example.com |
|
|
Adds/Deletes files to/from an autoresponder attachment files repository. Requires |
To add files # ./autoresponder --attachments -mail JDoe@example.com -files add:/usr/local/sampleschedule.txt,/usr/local/applicationform.txt or # ./autoresponder -a -mail JDoe@example.com -files add:/usr/local/sampleschedule.txt,/usr/local/applicationform.txt |
|
|
Displays information about a mail autoresponder. Requires |
To view information about autoresponder AutoReply for the mail account JDoe@example.com: # ./autoresponder --info AutoReply -mail JDoe@example.com or # ./autoresponder -i AutoReply -mail JDoe@example.com |
|
|
Displays help on the use of the utility. |
To view help on the use of the # ./autoresponder --help or # ./autoresponder -h |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Specifies a mail account for which an autoresponder is created. Required with |
To create mail autoresponder AutoReply for JDoe@example.com: # ./autoresponder -c AutoReply -mail JDoe@example.com |
|
|
Specifies an email address to which incoming mail will be forwarded. |
To forward all incoming mail for autoresponder AutoReply associated with JohnDoe@example.com to help@example.com: # ./autoresponder -u AutoReply -mail JDoe@example.com -redirect help@example.com |
|
|
Enables/Disables an autoresponder. Is |
To enable autoresponder AutoReply for JDoe@example.com: # ./autoresponder -u AutoReply -mail JDoe@example.com -status true |
|
|
Specifies the condition under which the autoresponder will be activated. The following conditions are available:
|
To set up automatic replying to messages delivered to JDoe@example.com using autoresponder AutoReply only when an incoming message subject line contains the information request pattern: # ./autoresponder -u AutoReply -mail JDoe@example.com -requires subj:"information request" |
|
|
Specifies the subject line of the automatic reply message for an autoresponder. Is |
To reply to mail messages received by JohnDoe@example.com using autoresponder AutoReply with the Help information subject: # ./autoresponder -u AutoReply -mail JDoe@example.com -subject "Help information" |
|
|
Specifies the reply to address that will be put into an autoresponder's messages. |
To set the reply-to address of the automatic reply message for autoresponder AutoReply forJDoe@example.com to help@example.com: # ./autoresponder -u AutoReply -mail JDoe@example.com -replyto help@example.com |
|
|
Specifies an autoresponder's automatic reply message body text. |
To set the automatic reply message body text for the autoresponder Autoreply for JDoe@example.com to "Thank you for your inquiry.": # ./autoresponder -u AutoReply -mail JDoe@example.com -text "Thank you for your inquiry." |
|
|
Specifies the format of an autoresponder's automatic reply message. |
To send automatic reply messages in the HTML format by using autoresponder AutoReply for JDoe@example.com: # ./autoresponder -u AutoReply -mail JDoe@example.com -format html |
|
|
Specifies the charset used to encode autoresponder's automatic reply messages. |
To use the UTF-8 charset to encode automatic reply messages of the autoresponder AutoReply for JDoe@example.com: # ./autoresponder -u AutoReply -mail JDoe@example.com -charset UTF-8 |
|
|
Limits the number of unique email addresses to be stored for an autoresponder. |
To restrict the maximum number of unique addresses for autoresponder AutoReply associated with JohnDoe@example.com to 200: # ./autoresponder -u AutoReply -mail JDoe@example.com -store 200 |
|
|
Adds/Removes files to be attached to an autoresponder's automatic reply message. Only files that are already added to the Plesk mail account's attachment files repository can be added to the autoresponder's attachments. Used with the |
To add files # ./autoresponder -u AutoReply -mail JDoe@example.com -files add:/usr/local/sampleschedule.txt,/usr/local/applicationform.txt |
|
|
Limits the number of replies that can be sent to a unique email address per day. |
To set the maximum number of replies that can be sent to a unique email address per day by using autoresponder AutoReply for JDoe@example.com to 5: # ./autoresponder -u AutoReply -mail JDoe@example.com -frq 5 |
|
|
Specifies files to be added/deleted to/from mail account's autoresponder attachment files repository. Used with the Required with the When adding files to the repository, When deleting files from the repository, |
To add files # ./autoresponder -a -mail JDoe@example.com -files add:/usr/local/sampleschedule.txt,/usr/local/applicationform.txt |