The
myhostname parameter specifies the fully-qualified domain
name of the machine running the Postfix system. $
myhostname
appears as the default value in many other Postfix configuration
parameters.
By default,
myhostname is set to the local machine name. If
your local machine name is not in fully-qualified domain name form,
or if you run Postfix on a virtual interface, you will have to
specify the fully-qualified domain name that the mail system should
use.
Alternatively, if you specify
mydomain in main.cf, then Postfix
will use its value to generate a fully-qualified default value
for the
myhostname parameter.
Examples (specify only one of the following):
/etc/postfix/main.cf:
myhostname = host.local.domain (machine name is not FQDN)
myhostname = host.virtual.domain (virtual interface)
myhostname = virtual.domain (virtual interface)