My preference currently is to add code to James.java to lookup the 2 values from the DNSService and to publish 2 attributes in MailetContext's attributes.

Stefano

Stefano Bagnara (JIRA) wrote:
[ http://issues.apache.org/jira/browse/JAMES-643?page=comments#action_12448450 ] Stefano Bagnara commented on JAMES-643:
---------------------------------------

All this 4 mailets use the InetAddress only to get localhost:
----
AbstractRedirect, AbstractVirtualUserTable, DNSBounce, RemoteDelivery

java.net.InetAddress.getLocalHost().getHostAddress()
java.net.InetAddress.getLocalHost().getHostName()
----

Imho we have 3 options:
1) Add DNSServer dependency to the 4 mailets (RemoteDelivery already depends on 
it)
2) Add "getLocalHost()" to MailetContext as a method
3) Add localhostaddress and localhostname as well-known properties in the 
MailetContext.


Replace all java.net.InetAddress usage with dnsjava
---------------------------------------------------

                Key: JAMES-643
                URL: http://issues.apache.org/jira/browse/JAMES-643
            Project: James
         Issue Type: Improvement
           Reporter: Norman Maurer
        Assigned To: Norman Maurer
           Priority: Minor
            Fix For: Next Major


We should replace all InetAddress usage with dnsjava




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to