Martin Gregorie:
Have you set the 'internal_networks' configuration parameter (in local.cf)? If not, try that first.
Thanks, but I don’t think this helps here. I don’t know what I could add to internal_networks that would somehow change the behaviour. The problem is with how milters for SpamAssassin operate.