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

When web apps on my VPS use the PHP built-in mail function, some domains (like bounce emails back. /var/log/mail.log reveals:

550 [PERMFAIL] requires valid sender domain (in reply to RCPT TO command)

Basically the MAIL FROM line is something like <user@myhost> when it should be <>, so AT&T's mail server doesn't like it.

I'm not entirely sure if my /etc/hostname file needs to be myhost or Any time I try to change it to, upon reboot it reverts back to myhost.

I'm at a loss here.


Apparently /etc/hostname (according to Google searches) should be just the hostname, not the FQDN. If I type hostname --fqdn, then I get the FQDN.

share|improve this question

Well, that was a fast self-solution!

The myorigin line in /etc/postfix/ was set to /etc/hostname. I commented out that line so it defaults to $myhostname which is set to my FQDN. All is well.

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.