I am using a custom transport to process incoming mail. It is used for subscribing and unsubscribing to a certain channel.
twailer unix - n n - - pipe flags=FR user=twailer argv=/home/twailer/twailer/bin/twailer
But that does not work, because
$PATH is not exported by the pipe command.
According to the manual, I can specify which environment variables to pass in a setting
main.cf, so I did that too.
export_environment = TZ MAIL_CONFIG LANG PATH=/usr/local/bin:/usr/bin:/bin
But it still does not work. So I replaced my binary with a shell script that outputs the current
$PATH to stderr and I get
Command output: /usr/bin:/bin
which is clearly not what I configured.
Any ideas on how I can get my $PATH variable passed?