GERONIMO-6515 patch from Grzegorz TaĆczyk, Unable to set localhost for EHLO in Geronimo JavaMail + additional Testcase