New mail workflow (note: relaying outgoing mail is broken in this commit)