Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Security Level: public (Regular issues)
-
Patch Available
Description
I encountered this problem in Apache James, where it was not possible to set proper domain for EHLO/HELO comand in RemoteDelivery.
After some investigation I found that it's a bug in Geronimo Javamail in MailConnection.java. getLocalHost function ignores all properties and takes `InetAddress.getLocalHost().getHostName()` each time, which is wrong. As a result mail delivery may not work in case of some smtp servers, you will get:
5.5.2 <hostname>: Helo command rejected: need fully-qualified hostname
I have prepared patch for this. This problem affects all versions.
Attachments
Attachments
Issue Links
- blocks
-
JAMES-1538 Unable to set localhost for EHLO/HELO in RemoteDelivery mailet
- Closed
- is duplicated by
-
GERONIMO-6490 Unable to configure EHLO/HELO host name via property “mail.smtp.localhost”
- Closed