refined for mail delivery errors