Viktor Dukhovni: > > > On Apr 19, 2017, at 12:16 PM, Marat Khalili <m...@rqc.ru> wrote: > > > > I don't want to complain right away, but the proper fix would be > > to obtain actual FQDN regardless of system default for hostname. > > There's no magic, the FQDN has to come from some stable source. > As already explained, DNS resolution is not such a source. > > If all the hosts in question have a common domain, you can get > an FQDN for "myhostname" by setting "mydomain", which will then > be appended to the short hostname. > > So you can include the domain in the hostname of the system, or > you can tell Postfix what domain to append by setting "mydomain". > > Your choice. We should stop here. Nothing new and useful is > likely to be said in this thread beyond this point.
Perhaps one note: the criticial setting is myorigin as that determines the default return address of email that is sent out. The other names, myhostname and mydomain, should not matter if you send all outbound email through a stable relay host (this will usually require some form of authentication; you can use SASL over TLS (see http://www.postfix.org/SASL_README.html), use a VPN, or SSH port forwarding.) Wietse