Re: No logging possible from local pipe

2019-06-21 Thread Wietse Venema
svinther: > Yes it runs as the nobody user, and if I test logging the nobody user it is > working just fine as I would expect: > > sudo runuser -u nobody -- /usr/sbin/postlog -t sometag <<< somemsg > > But when running as a postfix external command (as nobody user), it results > in the permission

Re: No logging possible from local pipe

2019-06-21 Thread svinther
Yes it runs as the nobody user, and if I test logging the nobody user it is working just fine as I would expect: sudo runuser -u nobody -- /usr/sbin/postlog -t sometag <<< somemsg But when running as a postfix external command (as nobody user), it results in the permission error ? Best regards

Re: No logging possible from local pipe

2019-06-21 Thread Wietse Venema
svinther: > Im using local to invoke a piped command with an alias like: > > http_forward: "|/usr/local/bin/..." > > from inside that bash script I try to log with systemd-cat but this results > in "Failed to create stream fd: Permission denied" As documented, commands in root-owned aliases file

No logging possible from local pipe

2019-06-21 Thread svinther
Im using local to invoke a piped command with an alias like: http_forward: "|/usr/local/bin/..." from inside that bash script I try to log with systemd-cat but this results in "Failed to create stream fd: Permission denied" I have tried to use postlog instead, but it just dont emit anything to j