On Tue, Dec 30, 2025 at 02:16:09PM +0000, Chris Green via Postfix-users wrote:

> My main.cf has myhostname commented out which leaves postfix to work
> it out for itself, should I revert to setting myhostname explicitly?

Well, what you should definitely set explicitly is "myorigin", which
determines the domain parts of unqualified addresses.  You would
generally also explicitly set "mydomain", especially, if like me, you
prefer the historical "append_at_mydomain = yes", rather than its new
default value "no".

The value of "myhostname" can be less important, but my advice is to set
that explicitly also.  A Postfix system should know what email addresses
it is responsible for inbound and outbound.  These should not change
unexpectedly.

> 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.

I don't recommend "dnsmasq" for servers, use "unbound" or similar.

>     chris@q957$ hostname
>     q957

Many prefer fully-qualified system hostnames, I'm inclined to recommend
that also for an email server.

-- 
    Viktor.  🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to