If you read all the files for the email in the queue one of them (I don't remember each one) will have all the headers. If you're running php as cgi the correct user will be available from the headers if the mail was sent by php. Otherwise it depends on how the mail was sent.
Jeff