Files
Ilia Ross 0cf6654fd9 Fix Postfix localhost destination after hostname domain change
- When the system hostname domain changes, update `localhost.<old-domain>` in Postfix `mydestination` to `localhost.<new-domain>`.

- This sits alongside the existing hostname/FQDN updates for Postfix destinations.

Previous behavior:

`save_dns.cgi` only updated Postfix `mydestination` entries that exactly matched:

- the old short hostname, like `host`
- the old FQDN, like `host.old-domain.test`

It did **not** update:

- `localhost.old-domain.test`

So if you changed:

```text
host.old-domain.test
```

to:

```text
host.new-domain.test
```

Postfix could become:

```text
mydestination = host.new-domain.test, host, localhost.old-domain.test
```

After this hunk, it also updates that localhost domain entry:

```text
localhost.old-domain.test
```

to:

```text
localhost.new-domain.test
```
2026-06-20 15:33:22 +02:00
..
2026-06-20 15:27:28 +02:00
2021-09-10 18:00:16 -07:00
2020-12-24 13:07:55 +01:00
2021-05-30 15:44:30 -07:00
2020-12-28 14:30:39 -08:00
2021-02-06 00:10:54 -08:00
2025-02-24 15:29:00 -08:00
2020-04-23 15:21:20 +02:00