Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a cheap and cheerful dedicated server from 1and1 that I use to send emails. The received email header looks like this:

Received: from ( [])

I'd like that to say

Received: from my.awesome.domain (my.awesome.domain. [])

Another answer I've read suggested "making a change to the /etc/hosts file, which looks like this: localhost.localdomain localhost s123456

I'd nervy about adding or changing anything in that file and getting it wrong - do I just need to add my.awesome.domain

on the second line?

share|improve this question
up vote 1 down vote accepted

received headers are written by the receiving MTA based on your HELO and (forward confirmed) reverse DNS

  • set your SMTP HELO = my.awesome.domain by either configuring your system hostname (depends on os and distro how to do this.. /etc/hostname, /etc/sysconfig/hostname, /etc/hosts ....) OR overriding the autodetection in your MTA software (eg. in postfix set myhostname = my.awesome.domain)
  • set your reverse dns to my.awesome.domain in your vps control panel (or tell your vps provider to do this for you if there is no control panel where you can do it yourself)
  • make sure there is an dns A record my.awesome.domain (this is required for the forward confirmation, otherwise the received line will probably say "Received from unknown[my.awesome.domain]...)

then wait until the TTL of the old rDNS record has expired and try again (in your case 2 hours)

share|improve this answer
I'm cool with the last two - how do I change the HELO setting? – Grim... Nov 19 '12 at 12:04
depends on your MTA. many set the HELO to the system hostname by default , so one possibility is to configure the system hostname and let the MTA autodetect. if you're using postfix you can also set 'myhostname' in – Gryphius Nov 19 '12 at 12:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.