in reply to sendmail return-path

You are correct when you say that this is 'not' perl related, but you need to be more specific about what your using to send mail. Maybe your solution could be better suited if you used one of the many modules at cpan to send mail.

-bn