Imported thumbnails have incorrect URL

The easiest way is to use the Cache Image plugin, which ‘sideloads’ images in your posts that are from other domains.

I’ve had mixed results, mainly because it seems to not work well for thousands of posts and images – if your site is smaller you may have better results.