Description
Look at this method code:
protected String computeRemoteDomain() throws MessagingException
{ StringBuffer domainBuffer = new StringBuffer(); String[] headers = null; if (getRemoteReceivedHeaderIndex() > -1) getMessageIn().getHeader(RFC2822Headers.RECEIVED); if (null != headers) # DO SOMETHING.... } // Default is "localhost"
if (domainBuffer.length() == 0)
domainBuffer.append("localhost");
return domainBuffer.toString().trim();
}
You can see that there is a missing assignment to "headers = " before the "getMessageIn().getHeader()" stuff.
Without the assignment this code will never work and the remote address recognition feature is not working ad all.