Commit Graph
400 Commits
Author SHA1 Message Date
Tom Mairs ba2661e70c fix case in docker command 2023-06-01 19:42:55 +00:00
Wez Furlong e8a049cc83 document listener parameter to get_listener_domain update helpers
Allow per-listener listener-domain configuration
2023-05-31 15:46:12 -07:00
Wez Furlong ce7dece927 move domains out of listener, replace with get_listener_domain event
This commit also includes a policy helper
`policy_extras.listener_domains` to make it convenient to define
listener domains in toml and/or json files.

To facilitate this, the DomainMap rust structure has been exposed
to lua code via the new `kumo.domain_map.new` function.
2023-05-31 12:29:44 -07:00
Wez Furlong b7c557c31a define_egress_(pool|source) -> make_egress_(pool|source)
Switch the configuration plumbing for pools and sources to be pull-based
rather than push based.

In other words, rather than defining them in the `init` event,
you now need to supply them to the new `get_egress_pool` and
`get_egress_source` events.

Data is cached by default for 1 minute. This allows for new sources
to come into being on-demand, and for data to age out and change
over time, without requiring that the server be restarted.

This commit updates the reference section, but there is some content
in the user guide that refers to the old style of configuration that
will need to be updated.

refs: https://github.com/KumoCorp/kumomta/issues/13
2023-05-30 14:08:07 -07:00
Mike Hillyer 38290015a6 Update changelog. 2023-05-30 14:23:08 -04:00
Wez Furlong 9b1d82275c add spool_message_enumerated event
closes: #42
2023-05-30 10:14:37 -07:00
Mike Hillyer 0eefbccd5d Typo fix. 2023-05-18 16:44:32 -04:00
Tom Mairs 10521350c7 fix typos 2023-05-18 05:05:12 +00:00
Mike Hillyer 1e05c7bb31 Automated doc formatting fix 2023-05-17 21:40:38 +00:00
Mike Hillyer 0d85aea133 Adding SMTP AUTH to the user guide. 2023-05-17 17:39:23 -04:00
Mike Hillyer 842c971811 Formatting fix. 2023-05-17 17:39:23 -04:00
Mike Hillyer 7cbf93e316 Automated doc formatting fix 2023-05-17 19:58:41 +00:00
Mike Hillyer c03cf00408 Initial build out of SOCKS5 docs in userguide, converting HAProxy section into general proxy section. 2023-05-17 15:57:22 -04:00
Mike Hillyer 9780e3f3a5 Updating logic per Wez. 2023-05-16 16:43:40 -04:00
Mike Hillyer cd7dbe7aec Automated doc formatting fix 2023-05-16 19:12:58 +00:00
Mike Hillyer bd1d7a1d03 This timne for sure. 2023-05-16 15:11:39 -04:00
Mike Hillyer f26551a205 Too many typos. 2023-05-16 15:10:17 -04:00
Mike Hillyer b741a1ab06 Typo 2023-05-16 15:06:38 -04:00
Mike Hillyer 297895e85d Adding AMQP to the User Guide. 2023-05-16 15:05:09 -04:00
Wez Furlong 9d3411431f Add outbound SMTP auth support
refs: https://github.com/KumoCorp/kumomta/issues/10
2023-05-15 17:38:17 -07:00
Wez Furlong db0c042cef Add amqp client
refs: https://github.com/KumoCorp/kumomta/issues/31
2023-05-15 17:24:15 -07:00
Mike Hillyer 5b7ea47650 Update changelog 2023-05-12 12:44:40 -04:00
Mike Hillyer e88ad0360a Update changelog. 2023-05-10 17:23:08 -04:00
Mike Hillyer 7095c7f358 Formatting. 2023-05-10 17:13:50 -04:00
Mike Hillyer 052bcaa454 Adding warning and pointer to the Secrets Load function. 2023-05-10 16:52:55 -04:00
Wez Furlong d5572f0293 docs: tweak haproxy guide 2023-05-10 13:27:30 -07:00
Mike Hillyer 6a59aefb37 Automated doc formatting fix 2023-05-10 20:08:05 +00:00
Mike Hillyer 4565540b04 HAProxy user guide page 2023-05-10 15:59:58 -04:00
Mike Hillyer bcac01932e Add a note to the Policy chapter index. 2023-05-10 13:56:54 -04:00
Mike Hillyer d7a7b24039 Automated doc formatting fix 2023-05-10 17:49:22 +00:00
Mike Hillyer 501012fc5f Whoops. 2023-05-10 13:47:57 -04:00
Mike Hillyer bc970ab94e Move webhook chapter to Operations. 2023-05-10 13:45:45 -04:00
Mike Hillyer 3e3483b281 Automated doc formatting fix 2023-05-10 17:44:47 +00:00
Mike Hillyer b3a720e906 Adding webhook content. 2023-05-10 13:42:38 -04:00
Mike Hillyer 88390291b3 Adding Webhook section to the configuration chapter. 2023-05-10 13:42:38 -04:00
Wez Furlong 6fdee41600 Add HA Proxy support
I used a config like this for testing:

```
global
    log stdout  format raw  local0  debug

defaults
    timeout connect 10s
    timeout client 30s
    timeout server 30s
    log global

listen outboundsmtp
    log global
    bind 0:2526 accept-proxy
    mode tcp
    use-server v4 if { src 0.0.0.0/0 }
    use-server v6 if { src ::/0 }
    server v4 0.0.0.0 source 0.0.0.0 usesrc clientip
    server v6 ::: source ::: usesrc clientip
```

Launched via:

```console
$ sudo haproxy -f assets/haproxy.conf -V
```

with the source:

```lua
  kumo.define_egress_source {
    name = 'w00t',
    ha_proxy_server = '127.0.0.1:2526',
    ha_proxy_source_address = '192.168.1.92',
  }
```

refs: #19
2023-05-10 09:50:06 -07:00
Mike Hillyer 2fcbdfdf3a Automated doc formatting fix 2023-05-10 15:56:23 +00:00
Mike Hillyer 09cc31e552 Update traffic shaping page of user guide, add default rules to shaping.toml. 2023-05-10 11:52:27 -04:00
Wez Furlong 14291df014 docs: fix missing note admonish 2023-05-09 11:06:01 -07:00
Wez Furlong 927721fc0c Add toml parsing/encoding functions to lua
refs: https://github.com/KumoCorp/kumomta/issues/43
2023-05-09 08:40:37 -07:00
Mike Hillyer 75e85c2f6e Skeleton in the webhook page. 2023-05-09 11:30:59 -04:00
Wez Furlong 757ddbcf22 Automated doc formatting fix 2023-05-09 15:28:01 +00:00
Wez Furlong 992cae1409 Allow loading a key source directly from lua
This makes it easier to compose secret management with a variety
of lua functions without having to build that directly into each
of them.

In particular: one can now use vaults or other secret stores that
we add in the future to manage credentials for HTTP clients.
2023-05-09 08:25:54 -07:00
Wez Furlong f0e0ffe828 add message:set_force_sync
refs: https://github.com/KumoCorp/kumomta/issues/6
2023-05-08 17:37:54 -07:00
Mike Hillyer bfafab4ef5 Automated doc formatting fix 2023-05-08 22:24:47 +00:00
Mike Hillyer 217ca5be4e Add http API call routing to Policy Chapter. 2023-05-08 18:23:41 -04:00
Wez Furlong c738ce2985 Automated doc formatting fix 2023-05-08 22:07:27 +00:00
Wez Furlong 0211b03060 http: add helpers for constructing form data
refs: https://github.com/KumoCorp/kumomta/issues/36
2023-05-08 15:06:09 -07:00
Wez Furlong cceaccf06a docs: webhook/lua delivery reference
refs: https://github.com/KumoCorp/kumomta/issues/36
refs: https://github.com/KumoCorp/kumomta/issues/18
2023-05-08 13:51:06 -07:00
Wez Furlong 65c7a9e5a6 Add reception and delivery protocol to log record
closes: https://github.com/KumoCorp/kumomta/issues/38
2023-05-08 08:39:40 -07:00