dcelasun wrote:
1) What else should I set it? I mean I have several domains there and should I set it to something that's not a domain? That would cause problems with spam blacklists because I send mail from these domains. Any suggestions?
The hostname needn't be related to mail -- use mailname (or some derivative if more than one domain).
Quote:
3) This seems like an ugly workaround, if there's an alternative I'd like to go with that.
Creating a second virtual host, redirecting to the first is the most reliable option (though I'd be interested if others have a more developed opinion). To paraphrase a faq at
NFS, using both the bare domain and the www version without redirects creates issues such as:
- Noncanonical URLs for your site. It is desirable to have one URL for each page, for purposes of bookmarking, etc. Having multiple valid URLs for the same page makes your site less popular in rankings and for search engines.
- Potentially less reliable. DNS CNAME records cannot be used in this situation. You can put in a couple of A records, but this is still not as effective for load balancing and fault tolerance as doing it the "right" way.
- It becomes hopelessly confusing if you have (or might ever have) more than one web site under the domain.
- See also http://no-www.org
Quote:
Now, I've changed my hostname to something that doesn't make sense, like "whatever.com".
From your example, it seems as if you're trying to use a FQDN as a hostname, but surely this isn't the case (?)
Glad to hear it's all working though
