Received from[] change to[my rdns address]

Posted on 2008-11-07
Last Modified: 2013-12-18
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.     

Question by:mhp2007
    LVL 86

    Expert Comment

    >>Received: from ([216.x.x.x])

    Is what it's saying isn't it? That's a public address

    Author Comment

    Yes, but that's not the message for the original hop, I'd like that one to use the public address.
    LVL 86

    Expert Comment

    I'm guessing that you're using JavaMail to send on the first hop. Is that the case?

    Author Comment

    Yes, you guess right : <>... can i set a from IP address in java?
    LVL 26

    Accepted Solution

    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.
    LVL 86

    Assisted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Shouldn't all users have the same email signature?

    You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

    Suggested Solutions

    Microsoft has released various new features which are capable of handling various tasks. One of these tasks is ‘Migration from pop3 to Exchange Server’. Pop3 data stores various data along mailboxes like contacts, tasks, etc. So, it becomes the need…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now