in reply to Problem writing when running script from Postfix mail to script

I agree with grinder---It's not a Perl problem. To add to what grinder mentioned, see:

Postfix Basic Configuration

main.cf file format

  • Comment on Re: Problem writing when running script from Postfix mail to script