pem.cqmail.addMailForwarding
This method is supported by Operations starting from version 2.5.
This method associates a forwarding e-mail address with a Mailname. There are the following use cases:
- Create a new Mailname and associate a forwarding e-mail address with it. In this case Operations creates a Mailname and associates a forwarding e-mail address with 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. - Associate a forwarding e-mail address with an existing Mailname. In this case Operations associates a forwarding e-mail address with an existing Mailname.
Notes:
1. The password of an existing Mailname is used, 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
The method returns an error, if one of the requirements is not satisfied. |
|
string |
E-mail address to forward mail to. |
|
string |
Mailname password. |
|
boolean |
Whether the password is passed in the encrypted form (BSD MD5). There are the following possible values:
|
The method has no output parameters.
Note: Starting from Operations 2.6.4 this method can also be called under Reseller permissions.