Thanks very much. I had tried adding "-o content_filter=smtp-amavis:[127.0.0.1]:10024" to master.cf but only reloaded postfix. I removed it when it didn't work.
Are you sure about the 10024? That is the standard Amavis port. If you use the same port for externally inbound emails, they will be falsely declared as originating.
