This is resolved by deleting the Mail account on macOS, then adding it back.
Apparently macOS Mail.app must cache these settings at account creation time. The correct settings are: > mail_location = mdbox:/private/var/mail/tld.hostname.mail/%Ln/mdbox:LAYOUT=fs > namespace inbox { > … > separator = / > … > }