Received from www.mydomain.com[127.0.0.1] change to www.mydomain.com[my rdns address]

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

Return-Path: <service@mydomain.com>

Received: from www.mydomain.com ([216.x.x.x])
      by uni02mr.unity.ncsu.edu (8.13.7/8.13.8/Nv5.2008.0610.1) with ESMTP id mA7J8J0D014820
      for <me@someotherdomain.edu>; Fri, 7 Nov 2008 14:08:19 -0500 (EST)
Received: from www.mydomain.com (www.mydomain.com [127.0.0.1])
      by www.mydomain.com (8.13.1/8.13.1) with ESMTP id mA7J7YVi027954
      for <me@someotherdomain.edu>; Fri, 7 Nov 2008 14:07:34 -0500
Date: Fri, 7 Nov 2008 14:07:34 -0500
Message-ID: <27312399.1226084854114.JavaMail.root@www.mydomain.com>

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

mhp2007Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
>>Received: from www.mydomain.com ([216.x.x.x])

Is what it's saying isn't it? That's a public address
0
mhp2007Author Commented:
Yes, but that's not the message for the original hop, I'd like that one to use the public address.
0
CEHJCommented:
I'm guessing that you're using JavaMail to send on the first hop. Is that the case?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

mhp2007Author Commented:
Yes, you guess right : <27312399.1226084854114.JavaMail.root@www.mydomain.com>... can i set a from IP address in java?
0
jar3817Commented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CEHJCommented:
The important thing, as far as anti-spam measures are concerned is that the domain/address can be checked at each stage. Obviously, 127.0.0.1 can't be. Try setting the property

mail.smtp.localaddress

to your public address
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.