Commit Graph
13 Commits
Author SHA1 Message Date
Wez Furlong 9812eef7ac add prometheus metrics export
This commit adds in an http listener that provides a `/metrics`
endpoint that can be configured as a target by prometheus to
scrape and record metrics.

You may also curl it for yourself.

While playing around with this, I found and fixed a deadlock
in the case that the initial spool in logic found and expired
a message; it would reuse a helper function that wanted to acquire
a lock, but it already held the lock.
2023-02-19 00:17:58 -07:00
Wez Furlong 54e230ffca message expiration
* Switch uuids to v1 format, so that we can cheaply determine
  when a message was created without having to load its metadata
  from the spool
* Add some message delivery parameters; retry interval, limit, max age
* Respect those parameters when spooling in and when we encounter
  a transient failure.
2023-02-18 14:39:54 -07:00
Wez Furlong 086d9008a1 allow configuring the smtp listener banner text 2023-02-18 07:40:01 -07:00
Wez Furlong acf36fe010 slightly expand readme and comments 2023-02-17 14:06:56 -07:00
Wez Furlong 054501e535 some basic plumbing for configuring outbound settings
A callback is used to resolve the config at the time that
we set up the destination site structure (eg: when we get the first
ready-to-send message for it, and again after it has idled out).

This is used in the example configs to enable "OpportunisticInsecure"
TLS mode so that we can successfully delivery over TLS to the
default self-signed TLS certs on the sink.
2023-02-17 13:52:34 -07:00
Wez Furlong 36a84b15bb add relay_hosts config, default to loopback 2023-02-16 19:42:36 -07:00
Wez Furlong ab8fea32e9 allow rejecting incoming messages 2023-02-15 14:03:46 -07:00
Wez Furlong 79afc79794 add lua code formatting 2023-02-15 06:51:59 -07:00
Wez Furlong 52044f578c reject connections until spool is ready. smtp hostname configurable 2023-02-15 06:45:33 -07:00
Wez Furlong 82f9ace9d1 connect spool 2023-02-14 18:33:32 -07:00
Wez Furlong 25bde5ee18 allow configuring listeners from lua 2023-02-12 23:14:31 -07:00
Wez Furlong 79816d9479 adjust policy event to take bifurcated messages rather than state 2023-02-12 15:13:09 -07:00
Wez Furlong ce502e8e35 add basic lua policy hooks 2023-02-11 18:59:55 -07:00