Viktor Dukhovni via Postfix-users:
> On Thu, Jun 06, 2024 at 04:01:06PM -0400, Wietse Venema via Postfix-users
> wrote:
> > GDS via Postfix-users:
> > > Hello, I am seeing hundreds of lines like the one below in my mail.log
> > > from this specific IP address, which belongs to Google.
> > > Jun 5 19:09:32 arthemis postfix/error[86771]: 5D9D148296D:
> > > to=<[email protected]>, orig_to=<root@localhost>, relay=none,
> > > delay=4099, delays=4099/0.02/0/0, dsn=4.4.1, status=deferred (delivery
> > > temporarily suspended: connect to localhost.com[74.125.224.72]:25:
> > > Connection timed out)
> > >
> >
> > Maybe you have "myhostname = something.com" and Postfix infers $mydomain
> > from that.
>
> Indeed, when "mydomain" is not explicitly specified, one label is
> dropped even if only two were present in $myhostname.
>
> $ postconf -o myhostname=foo.com mydomain
> mydomain = com
>
> which, in combination with "append_dot_mydomain = yes", would match the
> OP's report/observations.
The problem is fixed by adopting the 10-year old "new" default
setting "append_dot_mydomain = no", or by setting the compatibility_level
to a value > 1.
> It might be reasonable to infer "mydomain = $myhostname" when the latter
> has two or fewer labels.
There are top-level domains with more than 2 components.
Doing this "correctly" (there can be TLDs with more than 2 components)
would require a domain suffix list (with the registrar portions of
domain names).
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]