📄️ String
Strings can be represented in a few different ways:
📄️ Integer
Integers can be represented as a negative or positive whole number without a decimal point, for example:
📄️ Boolean
Boolean values can be represented as either true or false without quotes, for example:
📄️ IP Address
IP addresses are represented as strings and can contain either IPv4 or IPv6 addresses, for example:
📄️ Size
Sizes are represented in bytes as positive integers without a decimal point, for example:
📄️ Duration
Durations are represented as a string that consists of an integer value and a unit of measurement. The following units of measurement are available for representing durations:
📄️ Rate
Rates are represented as strings that consist of an integer value followed by the symbol / and a duration. The duration specifies the time interval over which the integer value is to be distributed. For example:
📄️ Array
Arrays are sequences of values that can be of any type, including strings, integers, booleans or any other type. Arrays are represented using square brackets [] and are separated by commas ,. For example:
📄️ Dynamic
Dynamic Values are an integral part of configuration that allows for more sophisticated and adaptable setups. Through dynamic values, Stalwart Mail Server provides administrators with a high degree of flexibility, allowing them to create configurations that adapt in real-time to the context of the server operation. They are essentially strings that are assembled at runtime using data from either environment variables or matching conditions defined in rules. These strings can include variables defined within ${}, which can refer to data matched by a rule or from specific environment variables.