When I run the command
hostname (on Ubuntu 10.04 LTS Server) it returns 'mail.mydomain.com'
When I run
hostname -f I get 'mail' as a response.
These seem backwards to me, shouldn't
hostname -f return the FQDN? Where did I misconfigure this?
There are probably other ways to do it; that's just how I have my system configured (and it seems to work).