Removed unused include.
Fixed potential memory issue when reading the number of current sessions. Read was not atomic.
Setting up a route or SMTP relayer with a IP address rather than host name results in failed delivery.