NXP-5970: Improve logging of some mail errors