test smtp connectivity on startup

Avoid frustrating the user by testing for SMTP server connectivity
straight away (only local mailer supported for now).  Display an
error message to the user if we can't talk to localhost:25 and exit
the program on dismissal otherwise proceed as normal.