Seems the upstream lpostcmd.lua example is outdated, and needs few additional fixes again. fixes #3678.