pem.cqmail.addMailbox
This method is supported by Operations starting from version 2.4.
This method adds a Mailbox to a Mailname. There are the following use cases:
- Create a new Mailname and add a Mailbox to it. In this case Operations creates a Mailname and adds a Mailbox to it.
Notes:
1. A Mailname password is required to create a Mailname, thus thepassword
andpassword_crypted
parameters are mandatory.
2. Use the pem.cqmail.editMailname method to change the password of an existing Mailname. - Add a Mailbox to an existing Mailname. In this case Operations adds a Mailbox to an existing Mailname.
Notes:
1. The password of an existing Mailname is used to create a Mailbox, thus thepassword
andpassword_crypted
parameters are optional. These parameters are ignored, if they are specified.
2. Use the pem.cqmail.editMailname method to change the password of an existing Mailname.
Additionally, if a new Mailname is created, Operations creates a Service User with the following properties:
- Display Name – Local part (e-mail address before the @ sign) of a Mailname is assigned.
- Login – Mailname is assigned. If an "All-Domains" Mailname is created, Operations generates the Service User Login in the <Local part of mailname>@sub<Subscription ID>.local form.
- Password – Mailname password is assigned.
The E-mail Service is assigned to the Service User.
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
ID of a Subscription containing the E-mail service. The following use-cases are available:
|
|
string |
Local part (e-mail address before the @ sign). |
|
string |
Name of the Domain to create a Mailname for. There are the following use cases:
If the
Method returns error, if one of requirements is not satisfied. |
|
string |
Mailname password. |
|
boolean |
Whether the password is passed in the encrypted form (BSD MD5). There are the following possible values:
|
|
int |
Mailbox quota (in Kilobytes). There are the following options:
|
|
string |
E-mail address to send notification messages when the Mailbox is created. |
|
boolean |
Defines whether mail sent to this Mailbox is filtered through SPAM protection system. There are the following options:
|
|
struct |
Defines whether mail of this Mailbox is filtered through an AntiVirus protection system. |
|
boolean |
Whether to check incoming mail. There are the following options:
|
|
boolean |
Whether to check outgoing mail. There are the following options:
|
|
boolean |
Whether a notification message is sent to the sender if a virus is found. There are the following options:
|
|
boolean |
Whether a notification is sent to the recipient(s) if a virus is found. There are the following options:
|
The method has no output parameters.
Note: Starting from Operations 2.6.4 this method can also be called under Reseller permissions.