1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-02 17:07:02 +00:00

maillog: Support logging to stdout and stderr

This patch adds support for writing maillog to stdout and stderr, which
can be desirable in certain environments.

Thanks to Denys Vitali <denys@denv.it> who sent an alternative patch for
this functionality.
This commit is contained in:
Alberto Bertogli
2020-05-24 02:08:11 +01:00
parent d83c1dc591
commit d9d56552f3
12 changed files with 107 additions and 5 deletions

View File

@@ -93,6 +93,7 @@ type Config struct {
DropCharacters string `protobuf:"bytes,11,opt,name=drop_characters,json=dropCharacters,proto3" json:"drop_characters,omitempty"`
// Path where to write the mail log to.
// If "<syslog>", log using the syslog (at MAIL|INFO priority).
// If "<stdout>", log to stdout; if "<stderr>", log to stderr.
// Default: <syslog>
MailLogPath string `protobuf:"bytes,12,opt,name=mail_log_path,json=mailLogPath,proto3" json:"mail_log_path,omitempty"`
// Enable dovecot authentication.

View File

@@ -77,6 +77,7 @@ message Config {
// Path where to write the mail log to.
// If "<syslog>", log using the syslog (at MAIL|INFO priority).
// If "<stdout>", log to stdout; if "<stderr>", log to stderr.
// Default: <syslog>
string mail_log_path = 12;