Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Hey, I have a strange problem: I have a mail-server. And I have a strange issue with hostnames on ubuntu. When I send an e-mail there is a line in the headers: Received from domain (ip6-localhost []) but my hosts file does not have domain.com The domain does not really fit in since domain.com was just for testing and I want to get rid of this! /etc/hosts and etc/hostname do not have an entry for domain.com. /etc/mailname too Any ideas? (Reverse DNS is okay)

share|improve this question

1 Answer 1

It's probably specified in the configuration file. Assuming this is postfix, make sure /etc/postfix/main.cf contains:

mydomain = yourdomain.net
myhostname = yourdomain.net
myorigin = $mydomain
share|improve this answer

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.