public void setHost(String host) {
        this.host = host;
        JiveGlobals.setProperty("mail.smtp.host", host);
        session = null;
    }
Sets the SMTP host (e.g. mail.example.com). The default value is "localhost".

@param host the SMTP host.
xmppserver/src/main/java/org/jivesoftware/util/EmailService.java