> exec "/var/qmail/bin/qmail-inject",$uservariable || print "Problem with Domain F 
>orwarding (Could not execute qmail-inject)" && exit 111;

As i have written 100 times: do NOT use "exec", use "system".
Just s/exec/system/ and all your error handling will work...

Just to quote the man pages once more:
"exec never returns"

So how do you expect it to return an error you could output with print?

Luckily you're running qmail-inject, which will itself return an useful
error message. But don't try this with non-qmail programs.

Greetings,
Erich

Reply via email to