mail_on_failure: comply with RFC3834 §5.2