The SMTP module uses javax.mail, so I believe this answer from StackOverflow applies:
https://stackoverflow.com/questions/8366843/how-do-i-set-or-change-the-smtp-message-id-with-javax-mail