Lua is Portuguese for moon. It is also the name of the scripting language we use in KumoMTA. Because it is a name, Lua is always capitalized.
Understanding Lua is not required to deploy and use KumoMTA, but it will help you leverage the full power of this incredibly flexible system. Lua is easy to learn, easy to read, and easy to implement.
You can find many resources at the [official Lua site including online documentation and physical reference books.
Here is a simplified primer to help you read the KumoMTA script/configs:
Global variables are implied by excluding the word "local".
In KumoMTA, variables should always be declared as "local" unless you intend for the value to be constant for the life of the program.
The concurrency model used by KumoMTA means that global variables can be shared in unpredictable ways. If you need to share values that change across the life of the program, you should use a data store such as sqlite or redis.
Lua supports the following relational operators:
|<=||less than or equal to|
|>=||greater than or equal to|
You can concatenate strings with two dots surrounded by spaces.
Functions, conditionals, and loops always end with "end"