1# File23table.file module builds string-string mapping from a text file.45File is reloaded every 15 seconds if there are any changes (detected using6modification time). No changes are applied if file contains syntax errors.78Definition:9```10file <file path>11```12or13```14file {15 file <file path>16}17```1819Usage example:20```21# Resolve SMTP address aliases using text file mapping.22modify {23 replace_rcpt file /etc/maddy/aliases24}25```2627## Syntax2829Better demonstrated by examples:3031```32# Lines starting with # are ignored.3334# And so are lines only with whitespace.3536# Whenever 'aaa' is looked up, return 'bbb'37aaa: bbb3839 # Trailing and leading whitespace is ignored.40 ccc: ddd4142# If there is no colon, the string is translated into ""43# That is, the following line is equivalent to44# aaa:45aaa4647# If the same key is used multiple times - table.file will return48# multiple values when queries.49ddd: firstvalue50ddd: secondvalue5152# Alternatively, multiple values can be specified53# using a comma. There is no support for escaping54# so you would have to use a different format if you require55# comma-separated values.56ddd: firstvalue, secondvalue57```58