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.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]