Organize smtp logic in the bootstrapper.
Work in progress.