Received from[] change to[my rdns address]

In all the emails my site is sending in its header a address as its first hop! This is a problem because some spam blockers will block on this. denying anything that orginates from a address. Any ideas on how to change this to my dns address?

Return-Path: <>

Received: from ([216.x.x.x])
      by (8.13.7/8.13.8/Nv5.2008.0610.1) with ESMTP id mA7J8J0D014820
      for <>; Fri, 7 Nov 2008 14:08:19 -0500 (EST)
Received: from ( [])
      by (8.13.1/8.13.1) with ESMTP id mA7J7YVi027954
      for <>; Fri, 7 Nov 2008 14:07:34 -0500
Date: Fri, 7 Nov 2008 14:07:34 -0500
Message-ID: <>

host file:
# Do not remove the following line, or various programs
# that require network functionality will fail.     

Who is Participating?
jar3817Connect With a Mentor Commented:
The first hop is the localhost address because the first hop is from a local process (a webserver) to the local mail server. Don't worry about it, this is common and not the reason your mail is getting rejected.
>>Received: from ([216.x.x.x])

Is what it's saying isn't it? That's a public address
mhp2007Author Commented:
Yes, but that's not the message for the original hop, I'd like that one to use the public address.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

I'm guessing that you're using JavaMail to send on the first hop. Is that the case?
mhp2007Author Commented:
Yes, you guess right : <>... can i set a from IP address in java?
CEHJConnect With a Mentor Commented:
The important thing, as far as anti-spam measures are concerned is that the domain/address can be checked at each stage. Obviously, can't be. Try setting the property


to your public address
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.