Upd: Documentation update

This commit is contained in:
Bojan Čekrlić 2023-09-29 16:44:25 +02:00
parent 730e481171
commit 4ec5ee3d29
2 changed files with 14 additions and 4 deletions

View file

@ -46,6 +46,7 @@ Simple postfix relay host ("postfix null client") for your Docker containers. Ba
- [Verifying your DKIM setup](#verifying-your-dkim-setup)
- [Docker Secrets / Kubernetes secrets](#docker-secrets--kubernetes-secrets)
- [Helm chart](#helm-chart)
- [Metrics](#metrics)
- [Extending the image](#extending-the-image)
- [Using custom init scripts](#using-custom-init-scripts)
- [Security](#security)
@ -617,6 +618,16 @@ Chart configuration is as follows:
| `persistence.storageClass` | `""` | Storage class |
| `recreateOnRedeploy` | `true` | Restart Pods on every helm deployment, to prevent issues with stale configuration(s). |
### Metrics
You may enable metrics on the cart by simply setting `metrics.enabled=true`. Of course, this comes with some caveats, namely:
- Postfix logs will (by default, if you don't override this) go to `/var/log/mail.log` _as well_ as to stdout.
- `/var/log/mail.log` will be in plain-text format (always), no matter what you set `LOG_FORMAT` to
Please se helm chart's `values.yaml` for further configuration options and how to enable `ServiceMonitor`, if you need it for
Prometheus.
## Extending the image
### Using custom init scripts

View file

@ -47,14 +47,13 @@ template(name="plain" type="list") {
if $syslogseverity <= '6' then {
# Do not log healthchecks
if ($msg contains "connect from localhost[127.0.0.1]") then { stop }
if ($msg contains "lost connection after EHLO from localhost[127.0.0.1]") then { stop }
if ($msg contains "disconnect from localhost[127.0.0.1] ehlo=1 commands=1") then { stop }
if ($msg contains_i "connect from localhost[127.0.0.1]") then { stop }
if ($msg contains_i "lost connection after EHLO from localhost[127.0.0.1]") then { stop }
if ($msg contains_i "disconnect from localhost[127.0.0.1] ehlo=1 commands=1") then { stop }
#<email-anonymizer>
#action(type="mmexternal" binary="/scripts/email-anonymizer.sh <anon-email-format>" interface.input="msg")
#</email-anonymizer>
action(type="omfile" DynaFile="devicelog" template="<log-format>" DirCreateMode="0755" FileCreateMode="0644")
# enable below to stop processing further this log
}
include(file="/etc/rsyslog.d-metrics/*.conf" mode="optional")