Commit Graph

9 Commits

Author SHA1 Message Date
Tommie Gannert
f1d5d0ad4d
Adds a Docker log source.
When Postfix is running in a Docker container, it's most useful to use
the built-in Docker logging (as with Systemd). Setting
`--docker.enable` allows that.

The log source is using `client.NewEnvClient`, which reads environment
variables to determine which Docker to connect to, and how TLS is
handled.
2021-03-16 15:37:29 +01:00
Tommie Gannert
82fa993361
Splits the log source handling with a pluggable interface.
Provides a cleaner split between log sources, specifically for not
compiling with systemd libraries.

This is in preparation for a new log source to read from Docker.
2021-03-16 15:36:56 +01:00
Bart Vercoulen
1edadd0857
Revert "Adds a Docker log source." 2021-03-16 15:19:10 +01:00
Tommie Gannert
c588b342a0 Adds a Docker log source.
When Postfix is running in a Docker container, it's most useful to use
the built-in Docker logging (as with Systemd). Setting
`--docker.enable` allows that.

The log source is using `client.NewEnvClient`, which reads environment
variables to determine which Docker to connect to, and how TLS is
handled.
2020-07-02 10:22:01 +02:00
Tommie Gannert
1451d25af5 Splits the log source handling with a pluggable interface.
Provides a cleaner split between log sources, specifically for not
compiling with systemd libraries.

This is in preparation for a new log source to read from Docker.
2020-07-02 10:21:25 +02:00
Per Abich
d03d270607 #14: Removed leftover info about truncating the logfile. Also changed thhe default to maillog since that is the normal file postfix uses. 2020-02-26 11:36:35 +01:00
Ivaylo Korakov
853b8806bd small thing 2020-02-21 12:11:58 +01:00
Per Abich
d23c664b65 Fixing merge issues 2020-02-19 18:10:45 +01:00
Julian Kornberger
43221afdb0 Move main function to main.go 2019-02-21 00:04:06 +01:00