Skip to content

Commit

Permalink
Upd: Documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
bokysan committed Sep 29, 2023
1 parent 730e481 commit 4ec5ee3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions configs/rsyslog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4ec5ee3

Please sign in to comment.