Are you asking if sendmail needs the -f to set the envelope sender?  Or if '-f' has to be at the end of the call to sendmail?