Postfix configuration hostname poor format?

Thomas Schlabomas asked:

Please help. I keep getting “relay host configuration problem.” I think this is because I’m not setting up myhostname and mydomain correctly in But I don’t think my host name will work. I think I’m supposed to insert my machine’s host name there, and it is in the format of Can someone help me to figure out if I need to change my hostname or do something else?

Here is the problem from my maillog:

Jan 29 14:57:04 ip-192-0-2-0 postfix/smtp[27740]: warning: relayhost configuration problem
Jan 29 14:57:04 ip-192-0-2-0 postfix/smtp[27740]: 6141BB9707F: to=<>, relay=none, delay=0.03, delays=0.02/0.01/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for type=A: Host not found) is GoDaddy’s relay mail server, which I’m trying to set up postfix to send mails through. To do this, in I have:

relayhost = []:587

My answer:

There’s no such host as You’ve gotten invalid information from GoDaddy or somewhere. Ask them to give you the correct hostname.

I would guess it will be and that you put it in backward. That is a valid host.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.