You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "This module enables users to specify authentication parameters for a given set of messages so that Momentum will authenticate against the peer server when it sends outbound mail It currently supports the AUTH LOGINand AUTH PLAIN methods of authentication You can specify the parameters in configuration or in lua..."
4
+
description: "This module enables users to specify authentication parameters for a given set of messages so that Momentum will authenticate against the peer server when it sends outbound mail It currently supports the AUTH LOGIN, AUTH PLAIN and AUTH XOAUTH2 methods of authentication You can specify the parameters in configuration or in lua..."
5
5
---
6
6
7
-
<aname="idp22419360"></a>
7
+
<aname="modules.outbound_smtp_auth"></a>
8
8
9
-
This module enables users to specify authentication parameters for a given set of messages so that Momentum will authenticate against the peer server when it sends outbound mail. It currently supports the 'AUTH LOGIN' and 'AUTH PLAIN' methods of authentication. You can specify the parameters in configuration or in lua, or use a combination of both.
9
+
This module enables users to specify authentication parameters for a given set of messages so that
10
+
Momentum will authenticate against the peer server when it sends outbound mail. It currently
11
+
supports the `AUTH LOGIN`, `AUTH PLAIN` and `AUTH XOAUTH2` methods of authentication.
12
+
You can specify the parameters in configuration or in lua, or use a combination of both.
10
13
11
14
### Note
12
15
13
16
This module makes heavy use of message contexts to facilitate authentication. If it is enabled, you risk having extra I/O unless `keep_message_dicts_in_memory` is on.
14
17
15
-
**Configuration Change. ** This feature is available in Momentum 4.2 and later.
18
+
**Configuration Change** This module is refactored in Momentum 5.1, but this feature is available in
19
+
Momentum 4.2 and later. `AUTH XOAUTH2` support is added in 5.1.
Configuration variables are listed below. These values can all be changed and overridden by setting context variables with the same name as the options in lua. All variables are valid in the binding group, binding, domain, and global scopes.
23
+
Configuration variables are listed below. These values can all be changed and overridden by setting
24
+
message context variables with the same name as the options in lua.
25
+
All variables are valid in the binding group, binding, domain, and global scopes.
20
26
21
27
<dlclass="variablelist">
22
28
23
-
<dt>outbound_smtp_auth_key</dt>
24
-
25
-
<dd>
26
-
27
-
A unique key that can be used in lua to look up authorization details in a database. It enables you to easily trigger custom behavior based on a configuration scope. The default value is `false`.
28
-
29
-
</dd>
30
-
31
29
<dt>outbound_smtp_auth_pass</dt>
32
30
33
31
<dd>
34
32
35
-
The password that will be passed to the remote server. The default value is `false`.
33
+
The password or auth token (e.g. for `AUTH XOAUTH2`) that will be passed to the remote server.
34
+
It has no default value.
36
35
37
36
### Note
38
37
39
-
Setting the password in configuration will leave it as plaintext. To set the password more securely, dynamically retrieve it from a data store in lua and set it in the context variable that corresponds to this option.
38
+
Setting the password in configuration will leave it as plaintext.
39
+
To set the password more securely, it's recommended to dynamically retrieve it from a data store
40
+
in lua and set it in the context variable that corresponds to this option.
40
41
41
42
</dd>
42
43
43
44
<dt>outbound_smtp_auth_type</dt>
44
45
45
46
<dd>
46
47
47
-
Determines what authentication protocol should be used. The only supported values are 'PLAIN' and 'LOGIN'. The default value is `false`.
48
+
Determines what authentication protocol should be used. The only supported values are `PLAIN`,
49
+
`LOGIN` and `XOAUTH2`. It has no default value.
48
50
49
51
</dd>
50
52
51
53
<dt>outbound_smtp_auth_user</dt>
52
54
53
55
<dd>
54
56
55
-
The username that will be passed to the remote server. The default value is `false`.
57
+
The username that will be passed to the remote server. It has no default value.
description: "This module enables users to specify authentication parameters for a given set of messages so that Momentum will authenticate against the peer server when it sends outbound mail It currently supports the AUTH LOGIN and AUTH PLAIN methods of authentication You can specify the parameters in configuration or in lua..."
5
+
---
6
+
7
+
<aname="idp22419360"></a>
8
+
9
+
** This module is deprecated and replaced by the new
10
+
[outbound_smtp_auth](/momentum/4/modules/outbound-smtp-auth) module since 5.1. **
11
+
12
+
This module enables users to specify authentication parameters for a given set of messages so that Momentum will authenticate against the peer server when it sends outbound mail. It currently supports the 'AUTH LOGIN' and 'AUTH PLAIN' methods of authentication. You can specify the parameters in configuration or in lua, or use a combination of both.
13
+
14
+
### Note
15
+
16
+
This module makes heavy use of message contexts to facilitate authentication. If it is enabled, you risk having extra I/O unless `keep_message_dicts_in_memory` is on.
17
+
18
+
**Configuration Change. ** This feature is available in Momentum 4.2 and later.
Configuration variables are listed below. These values can all be changed and overridden by setting context variables with the same name as the options in lua. All variables are valid in the binding group, binding, domain, and global scopes.
23
+
24
+
<dlclass="variablelist">
25
+
26
+
<dt>outbound_smtp_auth_key</dt>
27
+
28
+
<dd>
29
+
30
+
A unique key that can be used in lua to look up authorization details in a database. It enables you to easily trigger custom behavior based on a configuration scope. The default value is `false`.
31
+
32
+
</dd>
33
+
34
+
<dt>outbound_smtp_auth_pass</dt>
35
+
36
+
<dd>
37
+
38
+
The password that will be passed to the remote server. The default value is `false`.
39
+
40
+
### Note
41
+
42
+
Setting the password in configuration will leave it as plaintext. To set the password more securely, dynamically retrieve it from a data store in lua and set it in the context variable that corresponds to this option.
43
+
44
+
</dd>
45
+
46
+
<dt>outbound_smtp_auth_type</dt>
47
+
48
+
<dd>
49
+
50
+
Determines what authentication protocol should be used. The only supported values are 'PLAIN' and 'LOGIN'. The default value is `false`.
51
+
52
+
</dd>
53
+
54
+
<dt>outbound_smtp_auth_user</dt>
55
+
56
+
<dd>
57
+
58
+
The username that will be passed to the remote server. The default value is `false`.
0 commit comments