Sorry my mistake, I read your problem as you needed to resolve valid names but 
locally so you could dekiver them locally (really nice to test 
RemoteDelivery), but in your case you actually need a BAD dns name.

Stick with Stefanos idea it seams as a simple solution.

--Søren


On Wednesday 29 March 2006 10:23, Norman Maurer wrote:
> Dont understand.. can you explain ?
>
> bye
>
> Am Dienstag, den 28.03.2006, 19:41 +0200 schrieb Søren Hilmer:
> > Hi,
> >
> > I tested such issues using a separate DNS server which returned localhost
> > for the domains i tested. I used Jnamed from dnsjava for this.
> >
> > --Søren
> >
> > On Sunday 26 March 2006 21:35, Norman Maurer wrote:
> > > Just start to write a junit test for this,, Now i notice a problem ..
> > > The method helo(InetAddress) in SMTPProtocol needs a InetAddress but i
> > > need to test it with not resolvable domains. So if i do a
> > > InetAddress.getHostbyName("egjoerg.de"); an exception is thrown before
> > > pass this to the HeloCmdHandler..
> > >
> > > So i need to create an own witch extends the one which is used now.. Or
> > > there are any other solutions ?
> > >
> > > bye
> > >
> > > Am Sonntag, den 26.03.2006, 19:22 +0100 schrieb Norman Maurer (JIRA):
> > > >      [ http://issues.apache.org/jira/browse/JAMES-451?page=all ]
> > > >
> > > > Norman Maurer updated JAMES-451:
> > > > --------------------------------
> > > >
> > > >     Attachment: helo-v2.patch
> > > >
> > > > -fix the bug that stefano reported
> > > > -update james-config.xml
> > > >
> > > > TODO: Add junit test.
> > > >
> > > > > Check for valid domain in HELO
> > > > > ------------------------------
> > > > >
> > > > >          Key: JAMES-451
> > > > >          URL: http://issues.apache.org/jira/browse/JAMES-451
> > > > >      Project: James
> > > > >         Type: Wish
> > > > >   Components: SMTPServer
> > > > >     Reporter: Norman Maurer
> > > > >     Assignee: Stefano Bagnara
> > > > >  Attachments: helo-v2.patch, helo.patch
> > > > >
> > > > > IT would be nice to let
> > > > > /james-dev/src/java/org/apache/james/smtpserver/HeloCmdHandler.java
> > > > > to accept an init parameter for specify that the helo value must be
> > > > > an resolvable domainname. In RFC HELO names should always a valid
> > > > > domainname.

-- 
Søren Hilmer, M.Sc., M.Crypt.
wideTrail                       Phone:  +45 25481225
Pilevænget 41           Email:  [EMAIL PROTECTED]
DK-8961  Allingåbro     Web:    www.widetrail.dk

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

Reply via email to