Ensure the url is changed when the domain is updated
Merge pull request #5946 from lucasmichot/4.2-mailgun-domain

[4.2] Mailgun : ensure url is always updated when the domain is set
Merge branch '4.2'