Mail relay: launch and a domain move need no click; a non-public copy neither enrols nor sends by itself

The copy rule now goes by direction. A public site that finds another host's connection in its database
(its development address after launch, its old domain after a move) enrols by itself. A site that says it
is not public - IAPL_NOINDEX=1, or a host in the new mail.relay.developmentHosts - and holds another host's
connection is a copy of that site's data: it neither enrols nor sends until "Connect again", also when it
has a token of its own (production's database copied back onto the development address). The consent is
stored with the copy (acceptedHosts), so the next fresh copy waits again.

- mail.relay.otherHosts: 'auto' (default) | 'wait' | 'enrol' | list of the site's own hosts
- mail.relay.developmentHosts, siteIsNonPublic() exported
- the copy refusal ends when its reason does (no cool-down; the panel recomputes it on every read)
- doctor: info for a public site whose database knows another host (the launched site, or a copy that
  forgot IAPL_NOINDEX)
- contract copy 1.7.1 (wording only)
- docs, AGENT.md, skills, changelog draft

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 00:46:16 +01:00
co-authored by Claude Fable 5.2
parent acfcf72c03
commit 49927205bb
30 changed files with 443 additions and 119 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ export const integrationsTexts = defineTexts({
mailRelayRefusedHost: `This site has no public address yet ({{host}}). ${IWSN} works once the site runs on its domain.`,
mailRelayRefusedNoHost: 'The site does not know its own address. Ask your administrator.',
mailRelayRefusedOther: `${IWSN} answered: {{message}}`,
mailRelayRefusedOtherHost: 'The data comes from another site ({{host}}), so this site did not connect by itself. Press "Connect again" if it should send e-mails.',
mailRelayRefusedOtherHost: 'The data comes from another site ({{host}}), so this copy does not send e-mails by itself. Press "Connect again" if it should.',
mailRelayRefusedSetup: `${IWSN} is not fully set up on this site. Ask your administrator.`,
mailRelayRefusedToken: `The access key of this site is no longer valid. Ask your administrator for a new one.`,
mailRelayRepliesTo: 'Replies go to {{address}}.',
@@ -154,7 +154,7 @@ export const integrationsTexts = defineTexts({
mailRelayRefusedHost: `Witryna nie ma jeszcze publicznego adresu ({{host}}). ${IWSN} zadziała, gdy witryna będzie dostępna pod swoją domeną.`,
mailRelayRefusedNoHost: 'Witryna nie zna własnego adresu. Zapytaj administratora.',
mailRelayRefusedOther: `${IWSN} odpowiedział: {{message}}`,
mailRelayRefusedOtherHost: 'Dane pochodzą z innej witryny ({{host}}), więc ta witryna nie połączyła się sama. Kliknij „Połącz ponownie”, jeśli ma wysyłać e-maile.',
mailRelayRefusedOtherHost: 'Dane pochodzą z innej witryny ({{host}}), więc ta kopia nie wysyła e-maili sama. Kliknij „Połącz ponownie”, jeśli ma je wysyłać.',
mailRelayRefusedSetup: `${IWSN} nie jest w pełni skonfigurowany w tej witrynie. Zapytaj administratora.`,
mailRelayRefusedToken: `Klucz dostępu tej witryny stracił ważność. Poproś administratora o nowy.`,
mailRelayRepliesTo: 'Odpowiedzi trafiają na adres {{address}}.',