On Tue, Dec 30, 2025 at 09:39:33AM -0500, Wietse Venema via Postfix-users wrote: > Chris Green via Postfix-users: > > I'm running postfix 3.10 on a Debian 13 system, it's mostly pretty > > standard except that I'm using dnsmasq for local (i.e. LAN) DNS. > > > > Everything else seems to get the right address for my server that runs > > postfix:- > > > > chris@q957$ hostname > > q957 > > chris@q957$ hostname -f > > q957.zbmc.eu > > chris@q957$ dnsdomainname > > zbmc.eu > > chris@q957$ > > chris@q957$ more /etc/hosts > > 127.0.0.1 localhost > > 127.0.1.1 q957.zbmc.eu q957 > > > > But postfix seems to be using q957.localdomain:- > > Postfix uses none of the above. > > Instead, Postfix gets the name from the kernel using the get_hostname() > system library function. Postfix appends $mydomain (default: > "localdomain") if the kernel name is not qualified. > > > (It's handy if I don't have to set myhostname as the main.cf file will > > then wor on other servers on my LAN) > > Consider one or more of the following: > > - Set the fully-qualified hostname in /etc/hostname, /etc/rc.conf > or whatever is used at boot time to set the kernel hostname. Works > on Linux, *BSD, and other OSes. > > - Set mydomain in main.cf, assuming that this will be the same > for the other servers. > Thanks Wietse, setting mydomain will work nicely. (I seem to remember there is some good reason somwhere else in the system for not setting /etc/hostname to a FQDN).
-- Chris Green _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
