mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 19:08:17 +00:00
bfe1d5f94b
The content here needs to be fleshed out some more, but this commit is intended to get the skeleton in place.
989 B
989 B
kumo.on('init', FUNCTION)
The init event is triggered once when the kumod process initializes.
The intent is that you use this event to define the spool storage and
listeners for your environment.
The event handler is not passed any parameters, and does not expect any particular return value.
-- Called on startup to initialize the system
kumo.on('init', function()
-- Define a listener.
-- Can be used multiple times with different parameters to
-- define multiple listeners!
kumo.start_esmtp_listener {
listen = '0.0.0.0:2025',
}
kumo.configure_local_logs {
log_dir = '/var/tmp/kumo-logs',
}
kumo.start_http_listener {
listen = '0.0.0.0:8000',
-- allowed to access any http endpoint without additional auth
trusted_hosts = { '127.0.0.1', '::1' },
}
kumo.define_spool {
name = 'data',
path = '/var/tmp/kumo-spool/data',
}
kumo.define_spool {
name = 'meta',
path = '/var/tmp/kumo-spool/meta',
}
end)