vSMTP icon indicating copy to clipboard operation
vSMTP copied to clipboard

`syslog` support

Open Mathieu-Lala opened this issue 3 years ago • 0 comments

vSMTP will support logging to standard operating system.

syslog and tracing_journald can be used for that.

In some context, you might not want to have these feature enabled. Should I wrap them under --features syslog and --features journald ?

Mathieu-Lala avatar Aug 01 '22 15:08 Mathieu-Lala

Imho syslog behavior must be included in the vsmtp.toml file. Do not forget that vSMTP is a daemon and not a "command line" application.

Syslog requires:

On | Off Level Format Socket (done ?) Category "mail" hardcoded (done)

... and the corresponding vBook chapter must be rewrite.

paguardiolle avatar Aug 17 '22 16:08 paguardiolle

[server.syslog] # if the table is not specified, syslog is disabled
min_level = "info"
format = "3164" | "5424"
unix = "/dev/log"
# or
tcp = "127.0.0.1:601"
# or
udp = "127.0.0.1:514"

Mathieu-Lala avatar Aug 18 '22 10:08 Mathieu-Lala

Ok. But do not forget IPv6.

In a more concise (and Posix...) way:

socket = unix:/dev/log 
# or 
socket = inet:IPv4:port/proto
# or (mandatory)
socket = inet6:[IPv6]:port/proto

paguardiolle avatar Aug 18 '22 14:08 paguardiolle