Avoid creation of redundant SMTP connection.

This line was a leftover from an earlier version of commit
ebe512aa42.
Configure a from address for the test repository.
Simplify logic for setting ConfigEnvironment.fromaddr.