All Classes Files Functions Variables Pages
SmtpRelay.idl
Go to the documentation of this file.
1 /**
2  * @file SmtpRelay.idl
3  * @brief API for Smtp relay
4  * @version 3
5  */
6 
7 #import <common.idl>
8 
9 module webadmin {
10 
12  boolean useKManager;
13  string server;
14 
15  boolean requireSecureConnection;
16  boolean authenticationRequired;
17  CredentialsConfig credentials;
18 
19  kerio::web::OptionalString fromAddress;
20 };
21 
22 interface SmtpRelay {
23 
24  /**
25  * Returns SMTP Relay configuration
26  *
27  * @throws kerio::web::ApiException \n
28  * -32001 Session expired. - "The user is not logged in." \n
29  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
30  */
31  void get(out SmtpRelayConfig config);
32 
33  /**
34  * Stores SMTP Relay configuration
35  *
36  * @throws kerio::web::ApiException \n
37  * -32001 Session expired. - "The user is not logged in." \n
38  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
39  */
40  void set(in SmtpRelayConfig config);
41 
42  /**
43  * Sends email and returns errors, empty errors means OK
44  * @param errors - list of errors \n
45  * 1000 Operation failed. - "Unable to resolve IP address for the specified SMTP relay." \n
46  * 1000 Operation failed. - "Connection to SMTP relay is denied by Traffic rules." \n
47  * 1000 Operation failed. - "Connection to SMTP relay failed. Check hostname, authentication information and traffic rules." \n
48  * 1000 Operation failed. - "Connection to SMTP relay failed. Internal error."
49  * @param config - configuration structure of smtp relay module
50  * @param address - email address where to send testing message. Recipient.
51  * @throws kerio::web::ApiException \n
52  * -32001 Session expired. - "The user is not logged in." \n
53  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
54  */
55  void test(out kerio::web::ErrorList errors, in SmtpRelayConfig config, in string address);
56 
57  /**
58  * Returns result of last test call
59  * @param errors - list of errors \n
60  * 1000 Operation failed. - "Unable to resolve IP address for the specified SMTP relay." \n
61  * 1000 Operation failed. - "Connection to SMTP relay is denied by Traffic rules." \n
62  * 1000 Operation failed. - "Connection to SMTP relay failed. Check hostname, authentication information and traffic rules." \n
63  * 1000 Operation failed. - "Connection to SMTP relay failed. Internal error."
64  * @throws kerio::web::ApiException \n
65  * -32001 Session expired. - "The user is not logged in." \n
66  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
67  */
68  void getStatus(out kerio::web::ErrorList errors);
69 };
70 
71 }; //webadmin
Common Kerio Control structures, enums and types.
Definition: common.idl:18
Definition: SmtpRelay.idl:22
Definition: SmtpRelay.idl:11
Definition: Accounting.idl:11
Definition: SharedStructures.idl:289