Images broken in emails due to Discourse being behind a private firewall

I updated the url format and the avatars in emails are still trying to download the avatar image from my server rather than discourse.