msg_gen.conf File
The msg_gen.conf
file contains the configuration relevant to message generation. This file is included from within ecelerity.conf
.
Warning
Restart the ecelerity process if you make any changes to the msg_gen.conf
file. Running the config reload
command will not suffice.
The following is an example msg_gen.conf
file:
httpsrv { }
HTTP_Listener {
Listen ":2081" {}
}
substitution_engine {}
scriptlet "scriptlet" {
script "rest_templates" { source = "msys.rest.templates" }
script "rest_users" { source = "msys.rest.users" }
script "rest_transmissions" { source = "msys.rest.transmissions" }
script "open_track" { source = "msys.rest.open_tracker" }
script "click_tracker" { source = "msys.rest.click_tracker" }
}
# One entry for each Platform node
cassandra_client {
uri = ("name=cassandra_db;host=192.168.1.204;port=9160"
"name=cassandra_db;host=192.168.1.206;port=9160")
}
engagement_tracker {}
msg_gen {
engagement_tracking_host = "example.com:81"
cluster_cfg = true
quorum = 2
# a node stanza for each Platform node
node node1.lan {
mta_id = 1
votes = 1
}
node node2.lan {
mta_id = 2
votes = 1
}
}
For a discussion of scopes and fallbacks, see “Configuration Scopes and Fallback”.
For a summary of all the non-module specific configuration options, refer to Configuration Options Summary .
Modules and their configuration options are discussed in the Modules Reference .
The following are the modules configured in the msg_gen.conf
file:
- cassandra_client
-
This module configuration includes a
uri
entry for each Platform node in your cluster. Do not change this setting. - engagement_tracker
-
This module handles the creation of open-tracked and click-tracked links and the corresponding parsing of the links when an open or click event occurs. See “engagement_tracker – HTTP Engagement Tracking”.
- HTTP_Listener
-
To use the REST API, this listener module must be loaded. By default, the HTTP_Listener listens on port 2081. See Configuring Inbound Mail Service Using HTTP .
- httpsrv
-
To use the REST API, this HTTP server infrastructure module must be loaded. See “httpsrv – HTTP Server”.
- msg_gen
-
Handles message generation. See “msg_gen – Message Generation”.
- scriptlet
-
The scriptlet module defined in
msg_gen.conf
supplements the scriptlet module defined inecelerity.conf
. The variousscript
scopes point to the scripts needed to support message generation. Note that the scriptlet module instance name,scriptlet
, is the same as the scriptlet instance name in theecelerity.conf
file. All instances of the scriptlet module must use the same instance name. For more information, see “scriptlet - Lua Policy Scripts”. - substitution_engine
-
This module handles substitution in the templates. It has no configuration options.