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

My VPS came with a default domain (lets say, which was very random long domain name. This VPS hosts two websites, lets call them and

At the moment mail gets sent from, even if I use an authenticated email system emails get classified as Spam since they don't come from the matching domain name.

The server runs Virtuozzo, Plesk, Parallels etc, and an Apache PHP server.

I want to change to

Do I just superuser and change the hostname, or is it more complicated than that?

I access the VPS by IP, so I am not worried about URL access as such, I just need email to be sent from

Can anybody provide me with any advice, I am new to VPS's...

Thanks a lot


share|improve this question
do you have ssh and is it postfix mail? – Jacob Feb 14 '11 at 12:57
Yes and Yes. I have full access to the VPS (including physical) – KingyCronus Feb 14 '11 at 13:36
up vote 1 down vote accepted

instructions here Also be sure to have a PTR record for the IP and setup a SPF record to help with spam catchers. You should run the IP through a RBL checker also and make sure its clean. I like MX tool boxes tool here

share|improve this answer
Jacob, thank you for the quick response. I have followed the first set of instructions and it has certainly changed the contents of the email headers, which was one of my key hopes. I have checked the RBL and I am clean on that front. I need to sort out PTR and SPF still but so far so good. Thank you for the quick and accurate help. – KingyCronus Feb 14 '11 at 13:21
no problem, I suggest highly\ doing a PTR and SPF also as they can help greatly. – Jacob Feb 14 '11 at 13:37

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.