arjen-postfix-users-212--- via Postfix-users:
> Hi list,
> 
> sorry in advance for a possible dumb question.

postlog versions 3.7 and earier suppress output when stderr is
not connected to a terminal. From the change log:

20230308

        Cleanup: the postfix(1) and postlog(1) commands now produce
        stderr output even when stderr is not connected to a terminal.
        This eliminates an inconsistency, and makes these programs
        easier to use in some automated procedures.

> - output is printed to the console:
>    postfix tls new-server-cert

Actually, it was written to stderr.

> - output is printed to the console:
>    postfix tls new-server-cert 2>&1

stderr was redirected to stdout.

> - output is not printed:
> postfix tls new-server-cert 2>/dev/null

stderr was written to /dev/null.

> - empty file /tmp/certinfo:
>    postfix tls new-server-cert 2>/tmp/certinfo

With Postfix >= 3.8 the file is not empty.

> - empty file /tmp/certinfo:
>    postfix tls new-server-cert >/tmp/file 2>&1

With Postfix >= 3.8 the file is not empty.

        Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to